SA-MP Forums Archive
[BUG] 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [BUG] Lights (/showthread.php?tid=194370)



[BUG] Lights - Johnny_Xayc - 29.11.2010

When Vehicle(don't Boats) in water then vehicle lights don't off or on,if Lights on then they stay on(SetVehicleParamsEx don't work on Lights) similarly when they off...Please Fix it...


p.s. And how to create particles?


Re: [BUG] Lights - Krypton - 29.11.2010

Код:
if(!strcmp(cmdtext, "/lighton", true))
    {
     new engine,lights,alarm,doors,bonnet,boot,objective;
     new vid = GetPlayerVehicleID(playerid);
     GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
     SetVehicleParamsEx(vid,engine,1,alarm,doors,bonnet,boot,objective);
     }
    if(!strcmp(cmdtext, "/lightoff", true))
    {
     new engine,lights,alarm,doors,bonnet,boot,objective;
     new vid = GetPlayerVehicleID(playerid);
     GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
     SetVehicleParamsEx(vid,engine,0,alarm,doors,bonnet,boot,objective);
     return 1;
     }



Re: [BUG] Lights - Retardedwolf - 29.11.2010

Particles are objects.

I don't get you, when vehicles have their lights on when they fall into the water they won't be able to change anymore is that the point you're trying to make?