Little question about yTimers.
#5

Quote:
Originally Posted by Norn
Посмотреть сообщение
pawn Код:
new ReportCheck[MAX_PLAYERS]; // Global
// Inside report command:
new current_time =  gettime();
if(!ReportCheck[playerid] || ReportCheck[playerid] >= current_time + 15) {
ReportCheck[playerid] = current_time;
// The report code in here
}
else {
// Send message telling the user that he has to wait 15 seconds.
}

Thank you that helped me alot ++ rep.
Reply


Messages In This Thread
Little question about yTimers. - by moadi - 10.11.2011, 22:37
Re: Little question about yTimers. - by Norn - 10.11.2011, 22:39
Re: Little question about yTimers. - by moadi - 10.11.2011, 22:45
Re: Little question about yTimers. - by Norn - 10.11.2011, 22:50
Re: Little question about yTimers. - by moadi - 10.11.2011, 23:01
Re: Little question about yTimers. - by moadi - 10.11.2011, 23:12
Re: Little question about yTimers. - by Norn - 10.11.2011, 23:13
Re: Little question about yTimers. - by moadi - 10.11.2011, 23:15
Re: Little question about yTimers. - by Norn - 10.11.2011, 23:18
Re: Little question about yTimers. - by moadi - 10.11.2011, 23:20

Forum Jump:


Users browsing this thread: 2 Guest(s)