/clearchat command for admins? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /clearchat command for admins? (
/showthread.php?tid=177814)
/clearchat command for admins? -
Face9000 - 19.09.2010
Hi all,someone have the command /clearchat working only for admins?
Example.
If i say /clearchat,the chat will be cleared..
Thanks
Re: /clearchat command for admins? -
[XST]O_x - 19.09.2010
pawn Код:
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;
}
Re: /clearchat command for admins? -
Face9000 - 19.09.2010
Thanks