Timer for clearing chat
#3

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

    return 1;


public CCT()
{
     for(new i = 0; i < 200; i++)
     {
          SendClientMessageToAll(GREY, " ");
     }
}
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)