27.03.2010, 21:37
How to put a command on a timer so you can only do it every hour?
//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;
}