hekp with chat
#2

Код:
// 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;
}
I'm guessing you ment something like this?
Reply


Messages In This Thread
hekp with chat - by _ReloadeD_ - 05.04.2009, 08:55
Re: hekp with chat - by dre$tA - 05.04.2009, 10:16

Forum Jump:


Users browsing this thread: 1 Guest(s)