Passenger can start engine - 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)
+--- Thread: Passenger can start engine (
/showthread.php?tid=320587)
Passenger can start engine -
fabriziobondi - 23.02.2012
Problem: Passenger can switch on or switch off the engine.
Request: I would that only the driver can do this. Someone have a solution? Thank you.
Re: Passenger can start engine -
IceCube! - 23.02.2012
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClinetMessage(playerid, COLOR, "Error: You must be the driver to start the engine");
Use this or post your code.