06.01.2011, 03:41
pawn Код:
forward Haz_Timer(playerid);
public Haz_Timer(playerid)
{
new veh = GetPlayerVehicleID(playerid);
SetVehicleParamsEx(veh,engine,0,alarm,doors,bonnet,boot,objective);
}
dcmd_hazards(playerid, params[])
{
#pragma unused params
if(IsPlayerInAnyVehicle(playerid))
{
new veh = GetPlayerVehicleID(playerid);
SetTimer("Haz_Timer", 500, false);
SetVehicleParamsEx(veh,engine,1,alarm,doors,bonnet,boot,objective);
return 1;
}
return 0;
}
How do i get the timer "Haz_Timer" to repeat so that i get flashing lights. i type /hazards and the lights come on then go off which is what its meant to do but how do i repeat that?