17.10.2017, 00:41
Tentei colocar o /admins na Dialog, mas sу tб mostrando o ultimo admin conectado e nгo todos online.
aqui estб o cуdigo.
Alguйm ajuda ?
aqui estб o cуdigo.
Код:
CMD:admins(playerid)
{
new file[60], Count;
each(Players->new i)
{
if(Player[i][pLogged])
{
if(Player[i][pAdmin] != 0)
{
new s[128];
new format_string[128];
Count++;
format(file, sizeof(file), CONTAS, GetPlayerNameEx(i));
if(Player[i][pAdmin] > 3)
{
//SendFormattedMessage(playerid, -1, "%d. {%06x}%s {FFFFFF}(%s) Funзгo: (%s)", VBCount, GetPlayerColor(i) >>> 8, GetPlayerNameEx(i), AccountName(i), DOF2_GetString(file, "FunзгoGM"));
strcat(s, "Nome\tCargo\tReports Lidos\tFunзгo\n");
format(format_string, 128, "%d. {%06x}%s {FFFFFF}\t(%s)\t - \t(%s)", Count, GetPlayerColor(i) >>> 8, GetPlayerNameEx(i), AccountName(i), DOF2_GetString(file, "FunзгoGM"));
strcat(s, format_string);
ShowPlayerDialog(playerid, 998, DIALOG_STYLE_TABLIST_HEADERS, "Admins Online", s, "Fechar", "");
}
if(Player[i][pAdmin] <= 3)
{
strcat(s, "Nome\tCargo\tReports Lidos\tFunзгo\n");
format(format_string, sizeof format_string, "%d. {%06x}%s {FFFFFF}\t(%s) \t(%d)\t -", Count, GetPlayerColor(i) >>> 8,GetPlayerNameEx(i), AccountName(i), Player[i][Reportslidos]);
strcat(s, format_string);
ShowPlayerDialog(playerid, 998, DIALOG_STYLE_TABLIST_HEADERS, "Admins Online", s, "Fechar", "");
}
}
}
}
if(Count == 0) SendClientMessage(playerid, TEXTO, "Nгo hб administradores online!");
return true;
}

