01.10.2015, 14:04
Quote:
CMD:admins(playerid) { // #pragma unused params new bool:IsAnyAdminConnected = false; new bigstring[1024] = "{ffff70}", string[128]; ForMaxPlayer(i) { new Name[24]; GetPlayerName(i,Name,24); if(IsPlayerAdmin(i) || Sav[Admin][i] > 0) { format(string, sizeof(string), "{00FF00}%s (%d) - [ {FFFF00}RCON {00FF00}]\n", Name, i); strcat(bigstring, string); IsAnyAdminConnected = true; } else if(Sav[Admin][i] > 1 || IsPlayerAdmin(i)) { new lvl[256]; if(Sav[Admin][i] == 1) lvl = "{FF0000} LVL1"; else if(Sav[Admin][i] == 2) lvl = "{FF0000} LVL2"; else if(Sav[Admin][i] == 3) lvl = "{FF0000} LVL3"; else if(Sav[Admin][i]== 4) lvl = "{FF0000} LVL4"; else if(Sav[Admin][i] == 5) lvl = "{FF0000} LVL5"; format(string, sizeof(string), "{00FF00}%s (%d) - [ %s ]\n", Name, i, GetAdmin(i)); strcat(bigstring, string); IsAnyAdminConnected = true; } else if(IsPlayerAdmin(playerid) || Sav[Admin][i] > 1) { new lvl[256]; if(Sav[Admin][i] == 1) lvl = "{FF0000} LVL1"; else if(Sav[Admin][i] == 2) lvl = "{FF0000} LVL2"; else if(Sav[Admin][i] == 3) lvl = "{FF0000} LVL3"; else if(Sav[Admin][i]== 4) lvl = "{FF0000} LVL4"; else if(Sav[Admin][i] == 5) lvl = "{FF0000} LVL5"; format(string, sizeof(string), "{00FF00}%s (%d) - [ %s + {FF0000}RCON {00FF00}]\n", Name, i, GetAdmin(i)); strcat(bigstring, string); IsAnyAdminConnected = true; } } } } if(IsAnyAdminConnected == false) SendClientMessage(playerid,COLOR_RED,"[ ! ]{ffffff} 0 Admins Olnine"); else ShowPlayerDialog(playerid, Dialog_NoEffect, DIALOG_STYLE_MSGBOX, "{ff0000}Admins", bigstring, "ok", ""); return 1; } |
same scm,dialog dont show...