CMD:admins(playerid, params[]){if(PlayerInfo[playerid][AdminLevel] >= 2){ SendCommandToAdmins(playerid,\"/admins\");new count = 0;new AdminString[1500];for(new i = 0; i < MAX_PLAYERS; i++){ if (IsPlayerConnected(i)) { if(PlayerInfo[AdminLevel] >= 0) { if(IsPlayerAdmin(i)) { AdmRank = \"{FF0000}RCON {FFFFFF}Adminisztrátor\"; } else { switch(PlayerInfo[AdminLevel]) { case 1: { AdmRank = \"{00FF00}Trial {FFFFFF}Admin\"; } case 2: { AdmRank = \"{FFFFFF}Basic {FF0000}Moderátor\"; } case 3: { AdmRank = \"{FF0000}Moderátor\"; } case 4: { AdmRank = \"Master {FF0000}Moderátor\"; } case 5: { AdmRank = \"{FFFFFF}Adminisztrátor\"; } case 6: { AdmRank = \"{FF0000}Mester {FFFFFF}Adminisztrátor\"; } case 7: { AdmRank = \"{00FF00}Profi {FFFFFF}Adminisztrátor\"; } case 8: { AdmRank = \"{0000FF}Szerver {FFFFFF}Mapper\"; } case 9: { AdmRank = \"{0000FF}Szerver {FF00FF}Beta Tester\"; } case 10: { AdmRank = \"{0000FF}Szerver {00FF00}Owner\"; } } } new file[300]; new name[MAX_PLAYER_NAME]; GetPlayerName(i, name, sizeof(name)); format(file,sizeof(file),\"nAdmin/Users/%s.ini\",name); PlayerInfo[AdminLevel] = dini_Int(file, \"AdminLevel\"); format(AdminString, sizeof(AdminString), \"%s{FF00FF}Szint: {FF0000}%d {FF00FF}- {00FF00}%s (Id:{FF0000}%i{00FF00}) {FF00FF}| %s \\n\",AdminString, PlayerInfo[AdminLevel], PlayerName2(i),i,AdmRank); ShowPlayerDialog(playerid, DIALOG_ADMINS, DIALOG_STYLE_MSGBOX, \"[!]Online Adminok[!]:\", AdminString, \"OK\", \"\"); count++; } }}if (count == 0){ ShowPlayerDialog(playerid, DIALOG_ADMINS, DIALOG_STYLE_MSGBOX, \"[!]Online Adminok[!]:\", \"Jelenleg nincsen fent admin!\", \"OK\", \"\");}}else return SendClientMessage(playerid, COLOR_RED, \"[HIBA]:Túl kicsi az admin szinted!\");return 1;}
CMD:admins(playerid, params[]){ SendCommandToAdmins(playerid,\"/admins\"); new count = 0; new AdminString[1500]; for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if(PlayerInfo[AdminLevel] >= 0) { if(IsPlayerAdmin(i)) { AdmRank = \"{FF0000}RCON {FFFFFF}Adminisztrátor\"; } else { switch(PlayerInfo[AdminLevel]) { case 1: { AdmRank = \"{00FF00}Trial {FFFFFF}Admin\"; } case 2: { AdmRank = \"{FFFFFF}Basic {FF0000}Moderátor\"; } case 3: { AdmRank = \"{FF0000}Moderátor\"; } case 4: { AdmRank = \"Master {FF0000}Moderátor\"; } case 5: { AdmRank = \"{FFFFFF}Adminisztrátor\"; } case 6: { AdmRank = \"{FF0000}Mester {FFFFFF}Adminisztrátor\"; } case 7: { AdmRank = \"{00FF00}Profi {FFFFFF}Adminisztrátor\"; } case 8: { AdmRank = \"{0000FF}Szerver {FFFFFF}Mapper\"; } case 9: { AdmRank = \"{0000FF}Szerver {FF00FF}Beta Tester\"; } case 10: { AdmRank = \"{0000FF}Szerver {00FF00}Owner\"; } } } new file[300]; new name[MAX_PLAYER_NAME]; GetPlayerName(i, name, sizeof(name)); format(file,sizeof(file),\"nAdmin/Users/%s.ini\",name); PlayerInfo[AdminLevel] = dini_Int(file, \"AdminLevel\"); format(AdminString, sizeof(AdminString), \"%s{FF00FF}Szint: {FF0000}%d {FF00FF}- {00FF00}%s (Id:{FF0000}%i{00FF00}) {FF00FF}| %s \\n\",AdminString, PlayerInfo[AdminLevel], PlayerName2(i),i,AdmRank); ShowPlayerDialog(playerid, DIALOG_ADMINS, DIALOG_STYLE_MSGBOX, \"[!]Online Adminok[!]:\", AdminString, \"OK\", \"\"); count++; } } } if (count == 0) { ShowPlayerDialog(playerid, DIALOG_ADMINS, DIALOG_STYLE_MSGBOX, \"[!]Online Adminok[!]:\", \"Jelenleg nincsen fent admin!\", \"OK\", \"\"); } } return 1;}