Question help: Chat
#2

Place this on top of your code
pawn Код:
forward Cooldown(playerid);
new bool:UsedChat[MAX_PLAYERS] = false;
Place this on OnPlayerText for example
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);
Place this somewhere in your GM/FS
pawn Код:
public Cooldown(playerid)
{
    UsedChat[playerid] = false;
    return 1;
}
Reply


Messages In This Thread
Question help: Chat - Solved - by Speed++ - 28.06.2012, 01:58
Re: Question help: Chat - by Makaveli93 - 28.06.2012, 02:02
Re: Question help: Chat - by Speed++ - 28.06.2012, 02:16
Re: Question help: Chat - by Makaveli93 - 28.06.2012, 02:22
Re: Question help: Chat - by Speed++ - 28.06.2012, 02:23
Re: Question help: Chat - by JaTochNietDan - 28.06.2012, 02:37
Re: Question help: Chat - by Speed++ - 28.06.2012, 02:40
Re: Question help: Chat - by Makaveli93 - 28.06.2012, 02:52

Forum Jump:


Users browsing this thread: 2 Guest(s)