Help with view all commands! [solved]
#1

Код:
  //================ [ Read Comamands ] ===========================//
   if(ServerInfo[ReadCmds] == 1)
 {
		new string[128];
		format(string, sizeof(string), "[CMD]*** %s (%d) typed: %s", ppName(playerid),playerid,cmdtext);
		for(new q = 0; q < MAX_PLAYERS; q++) {
 		if(IsPlayerConnected(q)) {
 			if( (PlayerInfo[i][pAdmin] >= 5) && (q != playerid) ) {
					SendClientMessage(q, COLOR_GREY, string);
				}
			}
		}
	}
I want this command to makes admins lvl5+ available to see ALL commands player writes..

This code is not working, please help..!!!!!!
Reply
#2

Uhm did you set 'ServerInfo[ReadCmds]' to 1 before trying to read the commands.. ?
Guess 'PlayerInfo[i][pAdmin]' is supposed to be 'PlayerInfo[q][pAdmin]'
Reply
#3

Lol thanks it's working now!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)