21.06.2014, 15:07
pawn Код:
stock AdminLevel(playerid)
{
new danniel[20];
if(PlayerDados[playerid][Helper] == true) danniel = "[Ajudante]";
if(PlayerDados[playerid][Admin] == 1) danniel = "[Colaborador]";
if(PlayerDados[playerid][Admin] == 2) danniel = "[Moderador]";
if(PlayerDados[playerid][Admin] == 3) danniel = "[Coordenador]";
if(PlayerDados[playerid][Admin] == 4) danniel = "[Sub-Dono]";
if(PlayerDados[playerid][Admin] == 5) danniel = "[Dono]";
return 1;
}
CMD:admins(playerid)
{
new string[128];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerDados[i][Admin] > 0)
{
strcat(string," %s - %s", pName(playerid), AdminLevel);
ShowPlayerDialog(playerid, ADMINS, DIALOG_STYLE_MSGBOX, "Administradores", stg, "Fechar", "" );
}
}
return 1;
}