25.09.2011, 06:25
pawn Код:
CMD:admins(playerid, params[])
{
new contaadm[MAX_PLAYERS];
for(new i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerName(i,NomeP,MAX_PLAYER_NAME);
if(PlayerInfo[i][pLevel] >= 1)
{
contaadm ++;
if(contaadm[i] == 0) return ShowPlayerDialog(playerid,9,DIALOG_STYLE_MSGBOX,"Admins","{FF0000}Nгo Temos Nenhum Administrador Online!\nCaso Ver Algum Cheaters Denuncie\nEm Nossa Comunidade\nhttp://hunterserver.6te.net","Ok","");
if(contaadm[i] > 1)
{
new string[100];
strcat(string, "{80FF00}%s [ID:{FFFF00}%d{80FF00}] Level:{FFFF00}%d\n",NomeP,i,PlayerInfo[i][pLevel]);
strcat(string, "{80FF00}%s [ID:{FFFF00}%d{80FF00}] Level:{FFFF00}%d\n",NomeP,i,PlayerInfo[i][pLevel]);
}
if(contaadm[i] == 1)
{
new string[100];
strcat(string, "{80FF00}%s [ID:{FFFF00}%d{80FF00}] Level:{FFFF00}%d",NomeP,i,PlayerInfo[i][pLevel]);
}
ShowPlayerDialog(playerid,10,DIALOG_STYLE_MSGBOX,"Admins",string,"OK","");
}
}
return 1;
}