28.06.2012, 02:02
Place this on top of your code
Place this on OnPlayerText for example
Place this somewhere in your GM/FS
pawn Код:
forward Cooldown(playerid);
new bool:UsedChat[MAX_PLAYERS] = false;
pawn Код:
if(UsedChat[playerid]) return SendClientMessage(playerid, 0xFFFFFF, "You have used the chat, wait 6 seconds.");
UsedChat[playerid] = true;
SetTimerEx("Cooldown", 6000, false, "i", playerid);
pawn Код:
public Cooldown(playerid)
{
UsedChat[playerid] = false;
return 1;
}