[Ajuda] Criar dialog comando /admins
#3

pawn Код:
CMD:admins(playerid)
{
    new String[128], String2[128], adm[10];
    if(HaveAdminsOnline())
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(Player[i][admin] >= 1)
            {
                switch(Player[i][admin])
                {
                    case 1: adm = "Nнvel 1";
                    case 2: adm = "Nнvel 2";
                    case 3: adm = "Nнvel 3";
                    case 10: adm = "Nнvel 10";
                    case 11: adm = "Nнvel 11";
                }
               
                format(String,sizeof(String),"ID: %d - Nick: %s - %s\\n",i,GetName(i),Player[i][admin],adm); strcat(String2, String);
            }
        }
        ShowPlayerDialog(playerid, 55+2, DIALOG_STYLE_MSGBOX, "Administradores",String2,"Fechar", "");
    }
    else ShowPlayerDialog(playerid, 55+3, DIALOG_STYLE_MSGBOX, "Administradores","Nenhum admin online\nCaso veja xiters tira uma print (F8) e poste em nosso forum.","Fechar", "");
    return 1;
}
Reply


Messages In This Thread
Criar dialog comando /admins - by viniciussantos664 - 12.07.2015, 14:54
Re: Criar dialog comando /admins - by JonathanFeitosa - 12.07.2015, 15:00
Re: Criar dialog comando /admins - by s4kuL - 12.07.2015, 15:19
Re: Criar dialog comando /admins - by viniciussantos664 - 12.07.2015, 16:13
Re: Criar dialog comando /admins - by humildadeforever - 12.07.2015, 16:37

Forum Jump:


Users browsing this thread: 2 Guest(s)