[ajuda] /admins
#6

Tente isto:
pawn Код:
if(strcmp(cmd, "/admins", true) == 0)
{
    new count = 0;
    new ,strin[150];
    new pname[MAX_PLAYER_NAME];
    foreach(Player, i){
        if(logged[i] == 1) {
            if(PlayerInfo[i][pAdmin] >= 1) {
             //   PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
                GetPlayerName(i, pname, MAX_PLAYER_NAME);
                new tstr[100];
                format(tstr, sizeof(tstr), "Administrador: %s id:%d - Nнvel: %d\n",pname,i,PlayerInfo[i][pAdmin]);
                strcat(strin, tstr);
                count++;
            }
        }
    }
    ShowPlayerDialog(playerid, 7327, DIALOG_STYLE_MSGBOX, "Administradores\n\n", strin, "Fechar", "");
    if(count == 0) {
        PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
        strcat(str,"{FFA500}Nenhum administrador ativo.");
        ShowPlayerDialog(playerid, 1973, DIALOG_STYLE_MSGBOX, "Administradores\n\n", str, "Fechar", "");
    }
    return 1;
}
Reply


Messages In This Thread
[ajuda] /admins - by Victor_Souz4 - 17.04.2012, 01:29
Re: [ajuda] /admins - by ViniBorn - 17.04.2012, 01:32
Re: [ajuda] /admins - by Victor_Souz4 - 17.04.2012, 01:35
Re: [ajuda] /admins - by ViniBorn - 17.04.2012, 01:39
Re: [ajuda] /admins - by Victor_Souz4 - 17.04.2012, 01:40
Re: [ajuda] /admins - by zSuYaNw - 17.04.2012, 01:42

Forum Jump:


Users browsing this thread: 1 Guest(s)