Araba Çalıştırma

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı thekilljoy

  • Yeni Üye
  • *
    • İleti: 8
  • Amatör Scripter
: 03 Ekim 2020, 02:01:12
Öncelikle selamlar, ben roleplay sunucumda, mesela arabaya bindiğimde /arabacalistir yazınca arabanın çalışmasını istiyorum kodu nedir?
 


MTASATURK

Araba Çalıştırma
« : 03 Ekim 2020, 02:01:12 »

Çevrimdışı Aziz

  • Yeni Üye
  • *
    • İleti: 25
Yanıtla #1 : 03 Ekim 2020, 08:14:43
Kod
function motor()
local vehicle = getPedOccupiedVehicle( localPlayer )
if ( vehicle ) and ( getVehicleController( vehicle ) == localPlayer ) then
if ( getVehicleEngineState( vehicle ) ) then
setVehicleEngineState( vehicle, false )
outputChatBox( "Araç motoru artık kapalı!", 0, 255, 0 )
else
setVehicleEngineState( vehicle, true )
outputChatBox( "Araç motoru artık açık!", 0, 255, 0 )
end
end
end
addCommandHandler("arabacalistir",motor)