03.06.2013, 17:22
If you want to show player how long they have to wait, try this;
pawn Код:
SetTimerEx("ReportTimer", 1000, false, "ii", playerid, 25); // In your report command, 25 secs
forward ReportTimer(playerid, seconds);
public ReportTimer(playerid, seconds)
{
if(!IsPlayerConnected(playerid)) return 1; // If player left server, no need to keep running this timer..
ReportTime[playerid] = seconds; // This is how many seconds player have to wait b4 report again
if(seconds != 0) SetTimerEx("ReportTimer", 1000, false, "ii", playerid, seconds-1); // 1 sec timer, that decreases
}