19.09.2010, 12:58
Hi all,someone have the command /clearchat working only for admins?
Example.
If i say /clearchat,the chat will be cleared..
Thanks
Example.
If i say /clearchat,the chat will be cleared..
Thanks
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;
}