09.05.2015, 14:58
Код:
new robtimer[MAX_PLAYERS]; new robplay[MAX_PLAYERS]; forward RobTimers(playerid); public RobTimers(playerid) { SendClientMessage(playerid, -1, "ROBINFO: You're now can use the cmd '/robbank' again"); robtimer[playerid] = 0; } CMD:robbank(playerid,params[]) { if(robtimer[playerid] == 1) return SendClientMessage(playerid, -1,"ERROR: You can use this command once every 30 minutes!"); // bla bla bla robtimer[playerid] = 1; robplay[playerid] = SetTimerEx("RobTimers", // input for the minutes, false, "d", playerid); return 1; }