+- 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: Checking if Engine is off (/showthread.php?tid=206355)
Re: Checking if Engine is off - psoftware - 03.01.2011
pawn Код:
new engine,lights,alarm,doors,bonnet,boot,objective; new vid = GetPlayerVehicleID(playerid); GetVehicleParamsEx(vid ,engine,lights,alarm,doors,bonnet,boot,objective); if(engine==1) { //Engine is on } else { //Engine is off } return1; }