02.11.2011, 15:41
se matem:
pawn Код:
new Aremaz[200];
for(new id = 0; id < MAX_PLAYERS; ++id)
{
if(IsPlayerConnected(id))
{
if(arrayPlayer[id][PLevel] >= 1 && arrayPlayer[id][PLevel] <= 4)
{
switch(arrayPlayer[id][PLevel])
{
case 1:admins = "Moderador";
case 2:admins = "Sub-Admin";
case 3:admins = "Admin";
case 4:admins = "Master";
}
GetPlayerName(id, nome, sizeof(nome));
format(string, sizeof(string), "\"%s\" (%d) = %s\n", nome, id, admins);
strcat(Aremaz, string);
AON++;
}
}
}
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, " Admins:", Aremaz,"Ok","");