Timer
#2

Using an array and SetTimerEx function.
pawn Code:
//on top
new CommandUsed[MAX_PLAYERS];
forward CommandDelay(playerid);

//On command...
CommandUsed[playerid] = 1;
SetTimerEx("CommandDelay",3600000, false, "i", playerid);
if(CommandUsed[playerid] == 1) reuturn //SendClient...

//somewhere else
public CommandDelay(playerid)
{
CommandUsed[playerid] = 0;
return 1;
}
Reply


Messages In This Thread
Timer - by Steven82 - 27.03.2010, 21:37
Re: Timer - by Zimon95 - 27.03.2010, 21:43
Re: Timer - by Steven82 - 27.03.2010, 21:45

Forum Jump:


Users browsing this thread: 2 Guest(s)