[Ajuda] Como Setar Prof
#6

PHP код:
#include <a_samp>
#include <zcmd>

#define DIALOG_EMPREGOS 100
#define PROF_CANTOR 10

enum pInfo {
    
Profissao
}

new 
PlayerInfo[MAX_PLAYERS][pInfo];

public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == DIALOG_EMPREGOS)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                if(
PlayerInfo[playerid][Profissao] != PROF_CANTOR)
                {
                    
PlayerInfo[playerid][Profissao] = PROF_CANTOR;
                    
SendClientMessage(playerid0x00FF80AA"Parabйns: Agora vocк й um cantor!");
                    return 
1;
                }

            }
            if(
listitem == 1)
            {

            }
            if(
listitem == 2)
            {

            }
            if(
listitem == 3)
            {

            }
            if(
listitem == 4)
            {

            }
        }
    }
    return 
1;
}

CMD:empregos(playerid)
{
    
ShowPlayerDialog(playeridDIALOG_EMPREGOSDIALOG_STYLE_LIST,"Empregos","Cantor\nTexte2\nTexte3\nTexte4","Aceitar","Fechar");
    return 
1;

Reply


Messages In This Thread
Como Setar Prof - by Matei123 - 05.09.2015, 16:23
Re: Como Setar Prof - by ipsLuan - 05.09.2015, 19:42
Re: Como Setar Prof - by Matei123 - 05.09.2015, 20:36
Re: Como Setar Prof - by [BOPE]Seu._.Madruga - 06.09.2015, 15:26
Re: Como Setar Prof - by Matei123 - 07.09.2015, 00:24
Re: Como Setar Prof - by [BOPE]Seu._.Madruga - 07.09.2015, 00:53

Forum Jump:


Users browsing this thread: 1 Guest(s)