02.09.2010, 13:42
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:
now where would I put this now that ZCMD doesnt use OnPlayerCommandText?
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;
}