12.11.2013, 21:42
pawn Код:
forward Lighs(); // put this at top of your code (below macros)
OnGameModeInit()
{
SetTimer("Lights",1000,1);
}
public Lights()
{
new engine,lights,alarm,doors,bonnet,boot,objective;
for(new i = 0;i<MAX_VEHICLES;i++)
{
GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
if(lights == false)
{
SetVehicleParamsEx(i,engine,true,alarm,doors,bonnet,boot,objective);
}
else if(lights == true)
{
SetVehicleParamsEx(i,engine,false,alarm,doors,bonnet,boot,objective);
}
}
}