View Single Post
Old 19/09/2010, 02:03 PM   #2
[XST]O_x
High-roller
 
[XST]O_x's Avatar
 
Join Date: Aug 2009
Posts: 1,962
Reputation: 94
Default Re: /clearchat command for admins?

pawn Code:
if(strcmp(cmdtext,"/clearchat",true) == 0)
{
    if(IsPlayerAdmin(playerid))
    {
        for(new i = 0; i < 120; i++)
        {
            SendClientMessage(i,0x00," ");
        }
    }
    else return SendClientMessage(playerid,COLOR_RED,"ERROR: You are not an administrator!");
    return 1;
}
[XST]O_x is offline