Disable all vehicle engines ongamemodeinit - 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: Disable all vehicle engines ongamemodeinit (
/showthread.php?tid=324919)
Disable all vehicle engines ongamemodeinit -
lewismichaelbbc - 11.03.2012
Hi, i have this code:
pawn Код:
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, toggle, lights, alarm, doors, bonnet, boot, objective);
How can I make it so 'vehicleid' searches for every car in the server and turns off the engine?
Thanks
Re: Disable all vehicle engines ongamemodeinit -
Reklez - 11.03.2012
pawn Код:
ManualVehicleEngineAndLights();
put it ongamemodeinit
Re: Disable all vehicle engines ongamemodeinit -
lewismichaelbbc - 11.03.2012
that doesnt stop the engine of any of my cars
do i need to put it at the start or end of ongamemodeinit?
Thanks
Re: Disable all vehicle engines ongamemodeinit -
Alexy_Dramon - 11.03.2012
huh it's working for me but can you tell me how i turn the engine On to start Drive haha
thanks {+rep}