dcmd_admins(playerid,params[]){ #pragma unused params new count = 0; new string[128]; new ChangeColor; SendClientMessage(playerid, green, \" \"); SendClientMessage(playerid, green, \"______[RA]______ | Jelenlévõ rendõrök/adminok | ______[RA]______\");SendClientMessage(playerid, green, \" \");for(new i = 0; i < MAX_PLAYERS; i++){ if (IsPlayerConnected(i)) { if(AccInfo[Level] >= 1 && AccInfo[Hide] == 0) { if(AccInfo[Level] > 5) { AdmRank = \"Tulaj Helyettes\"; ChangeColor = Color_Professional_Admin; } if(IsPlayerAdmin(i)) { AdmRank = \"Tulaj\"; ChangeColor = Color_RCON_Administrator; } else { switch(AccInfo[Level]) { case 1: { AdmRank = \"Kadét\"; ChangeColor = Color_Basic_Moderator; } case 2: { AdmRank = \"Rendõrtiszt\"; ChangeColor = Color_Moderator; } case 3: { AdmRank = \"Parancsnok\"; ChangeColor = Color_Master_Moderator; } case 4: { AdmRank = \"Rendõrfõnök\"; ChangeColor = Color_Administrator; } case 5: { AdmRank = \"Sheriff\"; ChangeColor = Color_Master_Administrator; } } } switch(AccInfo[OnDuty]) { case 0: AdmDuty = \"Szolgálatban!\"; case 1: AdmDuty = \"Szolgálaton kívül!\"; } format(string, 128, \"Szint: %d - %s (Id:%i) | %s | %s\",AccInfo[Level], PlayerName2(i),i,AdmRank,AdmDuty); SendClientMessage(playerid, ChangeColor, string); count++; } }}if (count == 0)SendClientMessage(playerid,red,\"Nincs rendõr/admin a szerveren!\");SendClientMessage(playerid, green, \"________________________________________________________________\");return 1;}
dcmd_admins(playerid,params[]){ #pragma unused params new count = 0; new string[128]; new ChangeColor;SendClientMessage(playerid, green, \" \");for(new i = 0; i < MAX_PLAYERS; i++){ if (IsPlayerConnected(i)) { if(AccInfo[Level] >= 1 && AccInfo[Hide] == 0) { if(AccInfo[Level] > 5) { AdmRank = \"Tulaj Helyettes\"; ChangeColor = Color_Professional_Admin; } if(IsPlayerAdmin(i)) { AdmRank = \"Tulaj\"; ChangeColor = Color_RCON_Administrator; } else { switch(AccInfo[Level]) { case 1: { AdmRank = \"Kadét\"; ChangeColor = Color_Basic_Moderator; } case 2: { AdmRank = \"Rendõrtiszt\"; ChangeColor = Color_Moderator; } case 3: { AdmRank = \"Parancsnok\"; ChangeColor = Color_Master_Moderator; } case 4: { AdmRank = \"Rendõrfõnök\"; ChangeColor = Color_Administrator; } case 5: { AdmRank = \"Sheriff\"; ChangeColor = Color_Master_Administrator; } } } switch(AccInfo[OnDuty]) { case 0: AdmDuty = \"Szolgálatban!\"; case 1: AdmDuty = \"Szolgálaton kívül!\"; } format(string, 128, \"Szint: %d - %s (Id:%i) | %s | %s\\n\",AccInfo[Level], PlayerName2(i),i,AdmRank,AdmDuty); ShowPlayerDialog(playerid,4444,DIALOG_STYLE_MSGBOX,\"Jelenlévõ rendõrök/adminok\",string,\"Bezár\",\"\"); count++; } }}return 1;}
dialogosan jöjjön be és a szintek is ott legyen és,hogy hanyas szintûek[/quote]Ezt csinálja.