SA-MP Forums Archive
Help with lights. - 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 with lights. (/showthread.php?tid=592230)



Help with lights. - itachi - 22.10.2015

I want hel with vehicle light...

if player in vehicle = light on (day,night)
and left ALT light off...


Re: Help with lights. - ATGOggy - 22.10.2015

PHP код:
public OnPlayerEnterVehicle(playeridvehicleidbool:ispassenger)
{
     new 
hourminute;
     
GetPlayerTime(playeridhourminute);
     if(
hour>19 || hour<5)
     {
          new 
enginelightsalarmdoorsbonnetbootobjective;
          
GetVehicleParamsEx(vehicleidenginelightsalarmdoorsbonnetbootobjective);
          
SetVehicleParamsEx(vehicleidengine1alarmdoorsbonnetbootobjective);
    }
    return 
1;




Re: Help with lights. - itachi - 22.10.2015

thank