04.07.2013, 10:56
I have /report How can make it so they have to wait 30 seconds before reporting again? Will put some code if I need.
new pReportTick[MAX_PLAYERS];
CMD:report(playerid, params[])
{
if(GetTickCount() - pReportTick[playerid] < 30*1000 && pReportTick[playerid] != 0)
{
//Error message goes here (Wait 30 seconds)
return 1;
}
//Report code goes here
pReportTick[playerid] = GetTickCount();
return 1;
}