SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Help Archive (https://forum.sa-mp.com/forumdisplay.php?f=89)
-   -   /clearchat command for admins? (https://forum.sa-mp.com/showthread.php?t=177814)

Face9000 19/09/2010 01:58 PM

/clearchat command for admins?
 
Hi all,someone have the command /clearchat working only for admins?

Example.

If i say /clearchat,the chat will be cleared..

Thanks :D

[XST]O_x 19/09/2010 02:03 PM

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;
}

Face9000 19/09/2010 02:07 PM

Re: /clearchat command for admins?
 
Thanks :D


All times are GMT. The time now is 12:38 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.