SA-MP Forums Archive
Car needing to /start - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Car needing to /start (/showthread.php?tid=151366)



Car needing to /start - iLcke - 30.05.2010

When a player enters a vehicle, how would it work?
When they get in any vehicle, tells them to "/start", but, if the vehicle is running? How would this all work?


Re: Car needing to /start - oNx - 30.05.2010

you use a variable right when the engine is runing the variable checks for the vehicle ID and gives a value of 1 for on or 0 for off
so when player enter the vehicle it will check for that value and see if engine is on nothing happens and if engine is 0 = off
it will do the action and message for /start