SA-MP Forums Archive
car lights during day - 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: car lights during day (/showthread.php?tid=349785)



car lights during day - Visio - 10.06.2012

how can i eneble car lights during day?


Re: car lights during day - Calgon - 10.06.2012

Try adding this in to OnGameModeInit:

pawn Код:
ManualVehicleEngineAndLights();



Re: car lights during day - Visio - 10.06.2012

if i will add that i need to typ /engine to open the engine?


Re: car lights during day - MP2 - 10.06.2012

Yes.


Re: car lights during day - Visio - 10.06.2012

i can add that without a /engine command?
the engine to autostart?


Re: car lights during day - MP2 - 10.06.2012

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == 2) // Entered vehicle as driver
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        // Turn engine on here for 'vehicleid'
    }
    return 1;
}



Re: car lights during day - JaKe Elite - 10.06.2012

Check if player enter the vehicle (You will need to use OnPlayerStateChange) then use SetVehicleParamsEx to turn on the engine I can't code it I'm current in mobile


Respuesta: car lights during day - admantis - 10.06.2012

I think if you set the world weather to 2, all the sirens and lights will work on daytime too.