/clearchat command
#6

Quote:
Originally Posted by JustinAn
Посмотреть сообщение
Do you mean using STRCMP? OnPlayerCommandText? If yes, here ya go.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/clearchat", cmdtext, true, 10) == 0)
    {
        if(IsPlayerAdmin(playerid))
        {
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                SendClientMessageToAll(-1, "");
            }
        }
        else SendClientMessage(playerid, -1, "You are not authorized to use this command !");
        return 1;
    }
    return 0;
}
THANK YOUUUU!!

+REP
Reply


Messages In This Thread
/clearchat command - by RiChArD_A - 10.01.2013, 01:17
Re: /clearchat command - by Glad2BeHere - 10.01.2013, 01:28
Re: /clearchat command - by Threshold - 10.01.2013, 04:30
Respuesta: Re: /clearchat command - by RiChArD_A - 10.01.2013, 22:09
Re: /clearchat command - by JustinAn - 10.01.2013, 22:13
Respuesta: Re: /clearchat command - by RiChArD_A - 10.01.2013, 22:37

Forum Jump:


Users browsing this thread: 1 Guest(s)