02.08.2012, 12:30
Ai gente ajuda nesse comando aqui, nгo sei se tб certo..
pawn Код:
CMD:admins(playerid, params[])
{
new str[256];
new nomej[MAX_PLAYER_NAME];
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pAdmin] > 0)
{
GetPlayerName(i,nomej,sizeof(nomej));
switch(PlayerInfo[i][pAdmin])
{
case 1:format(str,256,"[Nome: {00A4D6}%s{FFFFFF}] [Level: {00A4D6}1{FFFFFF}] [Admin: {00A4D6}Recrutado{FFFFFF}]",nomej);
case 2:format(str,256,"[Nome: {00A4D6}%s{FFFFFF}] [Level: {00A4D6}2{FFFFFF}] [Admin: {00A4D6}Regular{FFFFFF}]",nomej);
case 3:format(str,256,"[Nome: {00A4D6}%s{FFFFFF}] [Level: {00A4D6}3{FFFFFF}] [Admin: {00A4D6}Experiente{FFFFFF}]",nomej);
case 4:format(str,256,"[Nome: {00A4D6}%s{FFFFFF}] [Level: {00A4D6}4{FFFFFF}] [Admin: {00A4D6}Responsavel{FFFFFF}]",nomej);
case 5:format(str,256,"[Nome: {00A4D6}%s{FFFFFF}] [Level: {00A4D6}5{FFFFFF}] [Diretor {00A4D6}Administrativo{FFFFFF}]",nomej);
}
}
}
return ShowPlayerDialog(playerid,DIALOG_ADMINS,DIALOG_STYLE_MSGBOX,"Administradores:",str,"Fechar","");
return SendClientMessage(playerid,Vermelho,"Administraзгo offline no momento.");
}