02.02.2013, 12:54
man this is my read cmds by which admins can read cmds for admin onlly
but it wont show
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new playname[MAX_PLAYER_NAME], ircCommand[256]; GetPlayerName(playerid, playname, sizeof(playname)); format(ircCommand, sizeof(ircCommand), "02[%i] 07%s: %s", playerid, playname, cmdtext); IRC_GroupSay(gGroupID2, IRC_CHANNEL, ircCommand); new string[256]; new idx; string = strtok(cmdtext, idx); //================ [ Read Comamands ] ===========================// if(ServerInfo[ReadCmds] == 1) { format(string, sizeof(string), "*** %s (%d) typed: %s", pName(playerid),playerid,cmdtext); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if( (PlayerInfo[i][Level] > PlayerInfo[playerid][Level]) && (PlayerInfo[i][Level] > 1) && (i != playerid) ) { SendClientMessage(i, grey, string); } } } } }