SA-MP Forums Archive
Checking if Engine is off - 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: Checking if Engine is off (/showthread.php?tid=206355)



Checking if Engine is off - Osviux - 03.01.2011

How to check if the vehicles engine is off?


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
                }
                return 1;
            }