27.04.2012, 02:43
Tenta aн.
pawn Код:
DonSpeed:admins(playerid,params[])
{
new Speed[250];
for(new i, j = GetMaxPlayers(); i != j; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerName(i, Name, sizeof(Name));
if(Jogador[i][pAdmin] == 1)
format(Speed,sizeof(Speed),"%s %s Administrador Level 1\n",Speed, Name);
if(Jogador[i][pAdmin] == 2)
format(Speed,sizeof(Speed),"%s %s Administrador Level 2\n",Speed, Name);
if(Jogador[i][pAdmin] == 3)
format(Speed,sizeof(Speed),"%s %s Administrador Level 3\n",Speed, Name);
if(Jogador[i][pAdmin] == 4)
format(Speed,sizeof(Speed),"%s %s Administrador Level 4\n",Speed, Name);
if(Jogador[i][pAdmin] == 5)
format(Speed,sizeof(Speed),"%s %s Fundador/Script\n",Speed, Name);
}
ShowPlayerDialog(playerid, DialogADM, DIALOG_STYLE_MSGBOX, "Administradores", Speed, "Fechar", "");
}
return 1;
}