SA-MP Forums Archive
[HELP] engine of all vehicles 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)
+--- Thread: [HELP] engine of all vehicles off (/showthread.php?tid=470512)



[HELP] engine of all vehicles off - Luca12 - 18.10.2013

Hello how can I make when I start my gamemode that then all cars(vehicles) be off I mean on engine and lights I ahev something like that but when I enter it turn on engine and lights? Thanks


Re: [HELP] engine of all vehicles off - Misiur - 18.10.2013

https://sampwiki.blast.hk/wiki/ManualVehicleEngineAndLights


Re: [HELP] engine of all vehicles off - Luca12 - 18.10.2013

this is not what I looking for I looking for something like this under but for some reason It doesn't work

pawn Код:
for(new i=1;i<MAX_VOZILA;i++)
    {
        new engine, lights, alarm, doors, bonnet, boot, objective;
        GetVehicleParamsEx(i, engine, lights, alarm, doors, bonnet, boot, objective);
        SetVehicleParamsEx(i,0,0,0,0,0,0,0);
    }



Re: [HELP] engine of all vehicles off - Misiur - 18.10.2013

When you use that function I sent you link to, the engine and lights are by default turned off. Additionally if you don't use it, the SetVehicleParamsEx won't work as intended.


Re: [HELP] engine of all vehicles off - DanishHaq - 18.10.2013

pawn Код:
public OnVehicleSpawn(vehicleid)
{
    new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(vehicleid,0,0,0,0,0,0,0);
    return 1;
}



Re: [HELP] engine of all vehicles off - Jankingston - 18.10.2013

and if u bave further probs...use this.


Re: [HELP] engine of all vehicles off - Luca12 - 18.10.2013

yes what danishHaq posted I already have that


Re: [HELP] engine of all vehicles off - Luca12 - 19.10.2013

I try everything but it isn't work I enter in my server sit in the car and the car engine is on and light also.