SA-MP Forums Archive
How to switch lights on/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: How to switch lights on/off?? (/showthread.php?tid=219040)



How to switch lights on/off?? - CoaPsyFactor - 31.01.2011

Hi there,

I'm making a fs, and i don't know how to turn on lights, when i turn them on, they does not flash until i get out of the car, if anyone can help me, please do it. . .thanks


Re: How to switch lights on/off?? - CoaPsyFactor - 31.01.2011

Sloved


Re: How to switch lights on/off?? - Steven Paul - 31.01.2011

Код:
if (playerState == PLAYER_STATE_PASSENGER)
{
     GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
     SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
}