17.08.2012, 17:38
Aqui estб o seu comando em dialog
:
Espero ter ajudado
.

pawn Код:
if(!strcmp(cmdtext, "/admins", true))
{
new Count;
new const Ranks[][] =
{
"Helper",
"Moderador",
"Geral",
"Master",
"Dono"
};
new STR[1400];
for(new x = 0, y = GetMaxPlayers(); x != y; x++)
{
if(!IsPlayerConnected(x)) continue;
if(admin[x])
{
new NickName[25];
GetPlayerName(x, NickName, 25);
if(pAdmin[x] >= 1 && pAdmin[x] <= 5)
{
format(STR, 1400, "%s%s (%d) » Administrador [%s]\n", STR, NickName, x, Ranks[pAdmin[x] - 1]);
}
Count++;
}
}
Count || strcat(STR, "Nenhum administrador online.\n");
ShowPlayerDialog(playerid, 500, DIALOG_STYLE_MSGBOX, "Administradores Online", STR, "Fechar", "");
return 1;
}
Espero ter ajudado
