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