Timer Repeat
#1

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;
}
Hi,
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?
Reply


Messages In This Thread
Timer Repeat - by wilko1995 - 06.01.2011, 03:41
Re: Timer Repeat - by Krx17 - 06.01.2011, 03:46
Re: Timer Repeat - by wilko1995 - 06.01.2011, 03:53
Re: Timer Repeat - by Retardedwolf - 06.01.2011, 04:10
Re: Timer Repeat - by Whizion - 06.01.2011, 04:16

Forum Jump:


Users browsing this thread: 1 Guest(s)