03.10.2012, 16:47
Tenta aн
pawn Код:
CMD:admins(playerid,params[])
{
new Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nome,MAX_PLAYER_NAME);
new String[128], String2[512], Nomear[24], bool:Found;
for(new i; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pAdmin] > 0)
{
switch(PlayerInfo[i][pAdmin])
{
case 1: Nomear = "Moderador Global";
case 2: Nomear = "Administrador";
case 3: Nomear = "Admin De Confianзa";
case 4: Nomear = "Master";
case 5: Nomear = "Dono";
}
format(String,sizeof(String),"{FF0000}Nick: {FFFFFF}%s {FF0000}ID: {FFFFFF}%d {FF0000}Rank: {FFFFFF}%s\n",Nome(i),i,Nomear);
strcat(String2,String,sizeof(String2));
Found = true;
}
}
if(!Found)
{
format(String,sizeof(String),"{FF0000}Nenhum(a) Administrador(a) Online!");
Msg(playerid, ROSA,String);
}
//else
//ShowPlayerDialog
return 1;
}