19.03.2013, 12:17
Yes or do it like that:
Код:
#define COOLDOW_CMD 60000 new LastTick[MAX_PLAYERS]; COMMAND:test(playerid, params[]) { new tick = GetTickCount(); if((LastTick[playerid] + COOLDOWN_CMD) >= tick) { return SCM(playerid, -1, "Please wait a bit before using this cmd again!"); } // end of the cmd: LastTick[playerid] = tick; }