Timer for clearing chat
#1

Okay, Well I have a clearchat command. And I wanted it to say "The chat will be cleared in 5 seconds" if an admin types /clearchat and five seconds later it will spam empty lines

Код:
command(clearchat, playerid, params[])
{
	#pragma unused params
	if(Player[playerid][AdminLevel] >= 4)
	{
	SendClientMessageToAll(LIGHTRED, "The chat will be cleared in 5 seconds");

	    for(new i = 0; i < 200; i++)
	    {
	        SendClientMessageToAll(GREY, "                    ");
	    }
	}

	return 1;
}
Reply


Messages In This Thread
Timer for clearing chat - by patfay - 09.02.2011, 19:43
Re: Timer for clearing chat - by xRyder - 09.02.2011, 19:48
Re: Timer for clearing chat - by Ash. - 09.02.2011, 19:50
Re: Timer for clearing chat - by patfay - 09.02.2011, 21:45

Forum Jump:


Users browsing this thread: 1 Guest(s)