dcmd_admins(playerid,params[]){ #pragma unused params new count = 0; new string[128]; new ChangeColor; SendClientMessage(playerid, 0x00ff00ff, \" \"); SendClientMessage(playerid, 0x00ff00ff, \"___________ {ffffff}|- Online Adminok -|{00ff00} ___________\");SendClientMessage(playerid, 0x00ff00ff, \" \");for(new i = 0; i < MAX_PLAYERS; i++){ if (IsPlayerConnected(i)) { if(PlayerInfo[Level] >= 1 && PlayerInfo[Hide] == 0) { if(PlayerInfo[Level] > 5) { AdmRank = \"Professional Admin\"; ChangeColor = Color_Professional_Admin; } if(IsPlayerAdmin(i)) { AdmRank = \"Tulajdonos\"; ChangeColor = Color_RCON_Administrator; } else { switch(PlayerInfo[Level]) { case 1: { AdmRank = \"Kezdõ\"; ChangeColor = Color_Basic_Moderator; } case 2: { AdmRank = \"Moderátor\"; ChangeColor = Color_Moderator; } case 3: { AdmRank = \"Fõ Moderátor\"; ChangeColor = Color_Master_Moderator; } case 4: { AdmRank = \"Adminisztrátor\"; ChangeColor = Color_Administrator; } case 5: { AdmRank = \"Fõadmin\"; ChangeColor = Color_Master_Administrator; } } } format(string, 128, \"Szint: %d - %s (Id:%i) | %s\",PlayerInfo[Level], PlayerName2(i),i,AdmRank); SendClientMessage(playerid, ChangeColor, string); count++; } }}if (count == 0)SendClientMessage(playerid,red,\"Nincs Admin a Szerveren!\");SendClientMessage(playerid, 0xffffffff, \" _______________________________________\");return 1;}
#define DIALOG_ONLINE 3422 //ezt rakd elõre. include-k utándcmd_admins(playerid,params[]){new admin = 0; new str[256]; for(new i;i<MAX_PLAYERS;i++) { format(str,sizeof(str),\"%s{53e024}====================================\\n\\n\", str); if(PlayerInfo[Level] == 1) { format(str,sizeof(str),\"%s{e024c4}[Level 1]%s - Kezdõ\\n\", str, PlayerName2(i)); admin++; } if(PlayerInfo[Level] == 2) { format(str,sizeof(str),\"%s{e024c4}[Level 2]%s - Moderátor\\n\", str, PlayerName2(i)); admin++; } if(PlayerInfo[Level] == 3) { format(str,sizeof(str),\"%s{24e0d0}[Level 3]%s - Fõ Moderátor\\n\", str, PlayerName2(i)); admin++; } if(PlayerInfo[Level] == 4) { format(str,sizeof(str),\"%s{248fe0}[Level 4]%s - Adminisztrátor\\n\", str, PlayerName2(i)); admin++; } if(PlayerInfo[Level] == 5) { format(str,sizeof(str),\"%s{ff0000}[Level 5]%s - Fõadmin\\n\", str, PlayerName2(i)); admin++; } format(str,sizeof(str),\"%s\\n{53e024}====================================\", str); } if(admin >= 1) ShowPlayerDialog(playerid, DIALOG_ONLINE, DIALOG_STYLE_MSGBOX, \"{53e024}Online Adminok\", str, \"Bezár\", \"\"); if(admin == 0) ShowPlayerDialog(playerid,DIALOG_ONLINE, DIALOG_STYLE_MSGBOX,\"{53e024}Online Adminok\",\"{53e024}====================================\\n\\n{ff0000}Nincs online admin a szerveren!\\n\\n{53e024}====================================\",\"Bezár\",\"\"); return 1;}
C:\\Users\\Faludi\\Desktop\\Szerver\\filterscripts\\ladmin4v2HUN.pwn(2808) : warning 213: tag mismatchC:\\Users\\Faludi\\Desktop\\Szerver\\filterscripts\\ladmin4v2HUN.pwn(2808) : error 001: expected token: \"]\", but found \")\"C:\\Users\\Faludi\\Desktop\\Szerver\\filterscripts\\ladmin4v2HUN.pwn(2813) : warning 213: tag mismatchC:\\Users\\Faludi\\Desktop\\Szerver\\filterscripts\\ladmin4v2HUN.pwn(2813) : error 001: expected token: \"]\", but found \")\"C:\\Users\\Faludi\\Desktop\\Szerver\\filterscripts\\ladmin4v2HUN.pwn(2818) : warning 213: tag mismatchC:\\Users\\Faludi\\Desktop\\Szerver\\filterscripts\\ladmin4v2HUN.pwn(2818) : error 001: expected token: \"]\", but found \")\"C:\\Users\\Faludi\\Desktop\\Szerver\\filterscripts\\ladmin4v2HUN.pwn(2823) : warning 213: tag mismatchC:\\Users\\Faludi\\Desktop\\Szerver\\filterscripts\\ladmin4v2HUN.pwn(2823) : error 001: expected token: \"]\", but found \")\"C:\\Users\\Faludi\\Desktop\\Szerver\\filterscripts\\ladmin4v2HUN.pwn(2828) : warning 213: tag mismatchC:\\Users\\Faludi\\Desktop\\Szerver\\filterscripts\\ladmin4v2HUN.pwn(2828) : error 001: expected token: \"]\", but found \")\"C:\\Users\\Faludi\\Desktop\\Szerver\\filterscripts\\ladmin4v2HUN.pwn(2836) : error 017: undefined symbol \"DIALOG_ONLINE\"C:\\Users\\Faludi\\Desktop\\Szerver\\filterscripts\\ladmin4v2HUN.pwn(2838) : error 017: undefined symbol \"DIALOG_ONLINE\"C:\\Users\\Faludi\\Desktop\\Szerver\\filterscripts\\ladmin4v2HUN.pwn(2801) : warning 203: symbol is never used: \"params\"C:\\Users\\Faludi\\Desktop\\Szerver\\filterscripts\\ladmin4v2HUN.pwn(6002) : warning 203: symbol is never used: \"AdmRank\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
C:\\Users\\Faludi\\Desktop\\Szerver\\filterscripts\\ladmin4v2HUN.pwn(2802) : warning 203: symbol is never used: \"params\"C:\\Users\\Faludi\\Desktop\\Szerver\\filterscripts\\ladmin4v2HUN.pwn(6003) : warning 203: symbol is never used: \"AdmRank\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase