12.05.2018, 01:00
Tente desta forma:
PHP Code:
CMD:admins(playerid)
{
new String[30],
Nome[24],
string[100],
AdminList[100];
for(new i; i <= GetPlayerPoolSize(); ++i)
{
if(IsPlayerConnected(i))
{
if(Player[playerid][Admin] == 1) String = "Administrador";
else if(Player[playerid][Gerente] == 2) String = "Gerente";
else String = "Fundador";
GetPlayerName(i,Nome,24);
format(string,sizeof(string),"%s %s[%d]",String,Nome,i);
strcat(AdminList,string);
}
}
if (strlen(AdminList) > 0)
ShowPlayerDialog(playerid, 2345,DIALOG_STYLE_MSGBOX, "# Administraзгo",AdminList,"Fechar",#);
else
SendClientMessage(playerid, 0xff0000ff,"[x] Nгo hб membros da administraзгo online no momento!");
return 1;
}