OnPlayerCommandPerformed - Read Commands
#1

This seem like it's not working

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[])
{
    new str[128];
    if(sInfo[ReadCmds] == 1)
    {
        format(str, sizeof(str), "*** %s(ID:%d) : '%s'", GetName(playerid), playerid, cmdtext);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(pInfo[i][Admin] >= 1)
                {
                    SendClientMessage(i, COLOR_GREY, str);
                }
            }
        }
    }
    return 1;
}
And plus. It makes the other scripts OnPlayerCommandText, OnPlayerCommandPerformed conflict.
Example i've error message when player enter a non-exist command it will show a message.
But when i added this code. It just doesn't said the error message.

Please help me.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)