SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 19/09/2010, 01:58 PM   #1
Face9000
Banned
 
Join Date: Jan 2010
Location: Pigland
Posts: 3,351
Reputation: 190
Default /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
Face9000 is offline  
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  
Old 19/09/2010, 02:07 PM   #3
Face9000
Banned
 
Join Date: Jan 2010
Location: Pigland
Posts: 3,351
Reputation: 190
Default Re: /clearchat command for admins?

Thanks
Face9000 is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help for command /admins ScripterU Help Archive 1 08/09/2010 09:06 PM
Clearchat Ihsan_Cingisiz Help Archive 6 04/06/2010 08:58 AM
command /admins MrLeNy Help Archive 4 16/12/2009 05:46 PM
/Cd & /ClearChat _System_ Help Archive 3 07/04/2009 12:36 PM


All times are GMT. The time now is 06:13 PM.


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