/report timer
#3

Don't use a timer for something banal like this; add this at the top in the body of the command:
pawn Код:
static
    lastReport[MAX_PLAYERS]; // note: static! That is very important

if((gettime() - lastReport[playerid]) < 60)
    return SendClientMessage(playerid, COLOR_RED, "Please wait at least 60 seconds.");

lastReport[playerid] = gettime();
Reply


Messages In This Thread
/report timer - by Dripac - 21.02.2012, 20:52
Re: /report timer - by mitchboy - 21.02.2012, 21:26
Re: /report timer - by Vince - 21.02.2012, 21:40
Re: /report timer - by mitchboy - 21.02.2012, 21:41

Forum Jump:


Users browsing this thread: 1 Guest(s)