ReportTime
#4

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
}
Reply


Messages In This Thread
ReportTime - by Necip - 03.06.2013, 16:56
Re: ReportTime - by Richie© - 03.06.2013, 17:11
Re: ReportTime - by Necip - 03.06.2013, 17:21
Re: ReportTime - by Richie© - 03.06.2013, 17:22
Re: ReportTime - by Pottus - 03.06.2013, 17:43
Re: ReportTime - by Necip - 03.06.2013, 17:48
Re: ReportTime - by Richie© - 03.06.2013, 17:51
Re: ReportTime - by Pottus - 03.06.2013, 17:52
Re: ReportTime - by Necip - 03.06.2013, 18:05
Re: ReportTime - by Scenario - 03.06.2013, 18:11

Forum Jump:


Users browsing this thread: 1 Guest(s)