01.04.2014, 16:36
Something like this, on top of script:
when player use command:
on the last line:
Код:
new commandcd[MAX_PLAYERS];
Код:
if(commandcd[playerid] == 1) return SendClientMessage(playerid, -1, "Wait 20 mins."); commandcd[playerid] = 1; SetTimerEx("command", 1000*60*20, false, "i", playerid);
Код:
forward command(playerid); public command(playerid) { commandcd[playerid] = 0; return 1; }