02.07.2012, 16:54
Код:
CMD:admins(playerid,params[]) { new A_String[ 150 ], count = 0, AdminPos[ 30 ]; foreach(Player, i) { if( Bit4_Get( AdminLevel, i ) >= 1 || IsPlayerAdmin( i ) ) { if( Bit4_Get( AdminLevel, i ) == 1 ) AdminPos = ""#RED"Newbie Admin"; else if( Bit4_Get( AdminLevel, i ) == 2 ) AdminPos = ""#RED"Moderator"; else if( Bit4_Get( AdminLevel, i ) == 3 ) AdminPos = ""#RED"Administrator"; else if( Bit4_Get( AdminLevel, i ) == 4 ) AdminPos = ""#RED"Head Administrator"; else if( Bit4_Get( AdminLevel, i ) == 5 ) AdminPos = ""#RED"Server Owner"; else if( IsPlayerAdmin( i ) ) AdminPos = ""#RED"RCON Admin"; format( A_String, sizeof( A_String ),"%s"#GREEN"%s[ID:%d] "#YELLOW"- "#BLUE"%s \n", A_String, GetName( i ), i, AdminPos ); ShowPlayerDialog( i, A_D_ON , 0, ""#WHITE"Online Admins", A_String, "OK", "" ); count++; } else if( count == 0 ) { ShowPlayerDialog( i, A_D_ON, 0, "Admins Online", ""WHITE"No Admins Online!", "OK", "" ); } } return 1; }