0 Üye ve 1 Ziyaretçi konuyu incelemekte.
if (getPedOccupiedVehicleSeat(source) == 0) then
yaptım fakat gene olmuyor addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Drop) then setElementPosition (localPlayer, 1509.1999511719, -1827.3000488281, 2516) if isPedInVehicle(localPlayer) then if getPedOccupiedVehicleSeat(localPlayer) > 0 then outputChatBox ("Drop'a ışınlanmak için aracın şöförü olmalısın.", 0, 110, 255) return false end local arac = getPedOccupiedVehicle(localPlayer) setElementPosition (arac , 1509.1999511719, -1827.3000488281, 2516) end endend)
KodaddEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Drop) then setElementPosition (localPlayer, 1509.1999511719, -1827.3000488281, 2516) if not isPedInVehicle(localPlayer) then if getPedOccupiedVehicleSeat(localPlayer) > 0 then outputChatBox ("Drop'a ışınlanmak için aracın şöförü olmalısın.", 0, 110, 255) return false end local arac = getPedOccupiedVehicle(localPlayer) setElementPosition (arac , 1509.1999511719, -1827.3000488281, 2516) end endend)Bu şekilde olması lazım
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Drop) then setElementPosition (localPlayer, 1509.1999511719, -1827.3000488281, 2516) if not isPedInVehicle(localPlayer) then if getPedOccupiedVehicleSeat(localPlayer) > 0 then outputChatBox ("Drop'a ışınlanmak için aracın şöförü olmalısın.", 0, 110, 255) return false end local arac = getPedOccupiedVehicle(localPlayer) setElementPosition (arac , 1509.1999511719, -1827.3000488281, 2516) end endend)
HAYIR BAK ŞÖYLE DİYELİM SENLE AYNI ARAÇTAYIZ BEN SÜRÜCÜYÜM SEN BENİM YANIMDASIN SEN BANA TROLÜNE ARABAMI DROPA FUARA CEKİYORSUN BENİM AMACIM BU YANIMA OTURAN KİŞİ /fuar veya /drop yazdıgı zaman arabamı ışınlayamasınDESİNKİ CHATTA "BU ARACI ISINLAYABİLMEK İÇİN SÜRÜCÜ OLMANIZ GEREKİYOR"
EVET AYNEN ÖYLE
local pozisyon = { { 1496.2152099609, -1818.568359375, 2516.1452636719 }, { 1478.4383544922, -1833.5574951172, 2516.1452636719 }, { 1509.1999511719, -1827.3000488281, 2516.14 }, }function dropkomut(player) if getElementData(player, "ArabaEtkinlik") == true then return false end if getElementData(player, "Gorevde") then return false end local vehicle = getPedOccupiedVehicle(player) local isinla = math.random ( #pozisyon ) if vehicle then if getPedOccupiedVehicleSeat(player) == 0 then setElementVelocity(vehicle,0,0,0) setElementPosition(vehicle, unpack(pozisyon[isinla]) ) outputChatBox("Drop alanına ışınlandın.", player, 255, 0, 0) else outputChatBox ("Drop'a ışınlanmak için aracın şöförü olmalısın.", player, 255, 0, 0) end else setElementPosition(player, unpack(pozisyon[isinla]) ) outputChatBox("Drop alanına ışınlandın.", player, 255, 0, 0) endendaddCommandHandler("drop", dropkomut)
kardeşim sc başarılı fakat şöyle bir sorun var dropa araç giremesin diye kod yazdıydım bu seferde altımdaki aracı siliyor
kardeşim benim tek istedigim şey yanındaki kişi hiçbir şekilde aracı ışınlayamasın bide çok sagolasın yardımcı oldugun ıcın <3 araç sürücüsü ise istedigi her yere ışınlasın benim mevzu yanında oturan kişiler aracı ışınlayamasın