SA-MP Forums Archive
Turn off the 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: Turn off the engine (/showthread.php?tid=304096)



Turn off the engine - Fredden1993 - 16.12.2011

I have a basic engine system but when I shut it down it only freeze the screen and the lights and the engine is still on. How do I turn the vehicle completely off?


Re: Turn off the engine - [O.z]Caroline - 17.12.2011

pawn Код:
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,0,lights,alarm,doors,bonnet,boot,objective);