20.05.2014, 23:57
Quote:
Create a PVar, looped through a timer.
Once the timer is done, Delete the Pvar. And in the command simply check if it equals 1, and if it doesn't then allow the command to go through. Because if it does equal 1, it means the PVar hasn't been deleted yet so it's been less then 1 minute. |
pawn Code:
UsedCmd[playerid] = gettime();
// Then check if 1 minute has passed or not
if(gettime() - UsedCmd[playerid] < 60)
{
// 1 Minute didn't pass
}
else
{
// 1 minute passed
}