02.11.2017, 20:46
PHP код:
CMD:administradores(playerid)
{
new string[180], ANivel[20], Nenhum, nAdmin[MAX_PLAYER_NAME];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(Player[i][Administrador] > 0)
{
GetPlayerName(i, nAdmin, 24);
if(Player[i][Administrador] == 1) ANivel = "Ajudante";
if(Player[i][Administrador] == 2) ANivel = "Moderador";
if(Player[i][Administrador] == 3) ANivel = "Administrador";
if(Player[i][Administrador] == 4) ANivel = "Programador";
if(Player[i][AdminOnline] == true) AdminOnline = "Conectado";
format(string, sizeof(string), "{FFFFFF}Nome\tNнvel\tStatus\n%s\t%s\s%s", nAdmin, ANivel, AdminOnline);
ShowPlayerDialog(playerid, DIALOG_ADMIN, DIALOG_STYLE_TABLIST_HEADERS, "{FF0000}Administradores", string, "{FFFFFF}Fechar", "");
Nenhum++;
}
}
if(Nenhum == 0)
{
ShowPlayerDialog(playerid, DIALOG_NOADMIN, DIALOG_STYLE_MSGBOX, "{FF0000}Administradores", "{FF0000}Nгo hб administradores(a) online", "{FFFFFF}Fechar", ""
}
return 1;
}