Clearchat command for all and player only
#2

Hello!

PHP код:
CMD:clearchatall(playeridparams[])
{
    if (
PlayerData[playerid][pAdmin] < 5)
        return 
SendErrorMessage(playerid"You cannot use this command.");
    for (new 
020++) {
        
SendClientMessageToAll(-1"");
    }
    return 
1;
}
CMD:clearchat(playeridparams[])
{
    for (new 
020++) {
        
SendClientMessage(playerid,-1"");
    }
    return 
1;

It is enough if you write 20 instead of 100 because you can have maximal 20 rows in your chat.

The mistake was that you forgot the "playerid" parameter.


- Mencent
Reply


Messages In This Thread
Clearchat command for all and player only - by whando - 25.07.2015, 21:58
AW: Clearchat command for all and player only - by Mencent - 25.07.2015, 22:00
Re : Clearchat command for all and player only - by Terrorizt - 25.07.2015, 22:00
Re: Clearchat command for all and player only - by iMFear - 25.07.2015, 22:00
Re: Clearchat command for all and player only - by whando - 25.07.2015, 22:02

Forum Jump:


Users browsing this thread: 2 Guest(s)