18.12.2016, 20:42
Tente isso.
PHP код:
CMD:admins(playerid, params[])
{
new string[200],pName[24];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(aInfo[i][Admin] == 1 || aInfo[i][Moderador] == 1 || aInfo[i][Ajudante] == 1 || aInfo[i][AdminL] == 1)
{
GetPlayerName(i,pName,24);
format(string, 200, "{FFFFFF}%s%s[%d] (%d)\n",string,pName,i,aInfo[i][AdminL]);
}
}
ShowPlayerDialog(playerid, DIALOG_ADMINS, DIALOG_STYLE_MSGBOX, "Administradores online:", s, "Fechar", "");
return 1;
}