ZCMD and OnPlayerCommandText
#1

Okay I know that the OnPlayerCommandText callback is disabled when ZCMD is included but before I swapped over to ZCMD I had this little piece under OnPlayerCommandText it was to show to the owner every command that gets executed. Heres the code:

pawn Code:
new owner;
    owner = PlayerInfo[playerid][Owner] = 1;
    if(playerid != owner)
    {
        new str[128],name[MAX_PLAYER_NAME];
        GetPlayerName(playerid,name,sizeof(name));
        format(str,sizeof(str),"%s(%d):%s",name,playerid,cmdtext);
        SendClientMessage(owner,GREY,str);
    }
    else
    {
        return 1;
    }
now where would I put this now that ZCMD doesnt use OnPlayerCommandText?
Reply


Messages In This Thread
ZCMD and OnPlayerCommandText - by mrcoolballs - 02.09.2010, 13:42
Re: ZCMD and OnPlayerCommandText - by mrcoolballs - 02.09.2010, 14:02
Re: ZCMD and OnPlayerCommandText - by mrcoolballs - 02.09.2010, 14:15
Re: ZCMD and OnPlayerCommandText - by Scenario - 02.09.2010, 14:16
Re: ZCMD and OnPlayerCommandText - by mrcoolballs - 02.09.2010, 14:28
Re: ZCMD and OnPlayerCommandText - by Scenario - 02.09.2010, 14:48

Forum Jump:


Users browsing this thread: 3 Guest(s)