11.08.2016, 22:38
Problem is in this public like he is not in script, when player type wrong command he don't get message for wrong command he get default message unknown command and admin can't see what cmd player type??
Word is about that public, this is my whole public in gamemode and filterscripts...
Word is about that public, this is my whole public in gamemode and filterscripts...
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) { if(!success) return SendClientMessage(playerid, 0xCD0000FF, "Invalid command. Please use {FFF8CF}/cmds {CD0000}to list all available commands."); new string[100], name[24]; GetPlayerName(playerid, name, 24); format(string,sizeof(string),"%s[%d] has used command %s",name[playerid],playerid,cmdtext); printf("%s has used command %s", name, cmdtext); for(new i=0;i<MAX_PLAYERS;i++) { if(pInfo[i][pLevel] > 4) SendClientMessage(i,-1,string); } return 1; }