05.04.2009, 10:16
Код:
// On Top Of The Script: new bool:waiting[MAX_PLAYERS]; forward ResetWait(playerid); // public OnPlayerText(playerid, text[]) {// Under OnPlayerText callback if(waiting[playerid] == true) { SendClientMessage(playerid, 0xFF0000AA, "You need to wait 2 seconds between messages."); return 0; } waiting[playerid] = true; SetTimerEx("ResetWait", 2000, 0, "i", playerid); return 1; } // Anywhere public ResetWait(playerid) { waiting[playerid] = false; }