[Ajuda]Uma Duvida
#8

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_MUDAR_FACCAO)
    {
        if(response)
        {
            if(listitem)
            {
                SetPlayerTeam(playerid, cv);
                OnPlayerSpawn(playerid);
                SetPlayerSkin(playerid, 47);
            }
            else if(listitem == 1)
            {
                SetPlayerTeam(playerid, tcc);
                OnPlayerSpawn(playerid);
                SetPlayerSkin(playerid, 105);
            }
            else if(listitem == 2)
            {
                SetPlayerTeam(playerid, tcp);
                OnPlayerSpawn(playerid);
                SetPlayerSkin(playerid, 107);
            }
            else if(listitem == 3)
            {
                SetPlayerTeam(playerid, ada);
                OnPlayerSpawn(playerid);
                SetPlayerSkin(playerid, 102);
            }
            else if(listitem == 4)
            {
                SetPlayerTeam(playerid, pcc);
                OnPlayerSpawn(playerid);
                SetPlayerSkin(playerid, 109);
            }
            else if(listitem == 5)
            {
                SetPlayerTeam(playerid, pcp);
                OnPlayerSpawn(playerid);
                SetPlayerSkin(playerid, 109);
            }
            SetPlayerHealth(playerid, 0);
        }
    }
    else if(dialogid == DIALOG_ESCOLHE_FACCAO)
    {
        if(response)
        {
            if(listitem)
            {
                SetPlayerTeam(playerid, cv);
                OnPlayerSpawn(playerid);
                SetPlayerSkin(playerid, 47);
            }
            else if(listitem == 1)
            {
                SetPlayerTeam(playerid, tcc);
                OnPlayerSpawn(playerid);
                SetPlayerSkin(playerid, 105);
            }
            else if(listitem == 2)
            {
                SetPlayerTeam(playerid, tcp);
                OnPlayerSpawn(playerid);
                SetPlayerSkin(playerid, 107);
            }
            else if(listitem == 3)
            {
                SetPlayerTeam(playerid, ada);
                OnPlayerSpawn(playerid);
                SetPlayerSkin(playerid, 102);
            }
            else if(listitem == 4)
            {
                SetPlayerTeam(playerid, pcc);
                OnPlayerSpawn(playerid);
                SetPlayerSkin(playerid, 109);
            }
            else if(listitem == 5)
            {
                SetPlayerTeam(playerid, pcp);
                OnPlayerSpawn(playerid);
                SetPlayerSkin(playerid, 109);
            }
        }
    }
    return 1;
}
eu botei isso msm assim ta dando indo pra escolhe o boneco me ajuda pf.
Reply


Messages In This Thread
[Ajuda]Uma Duvida - by ygor - 03.06.2011, 15:31
Re: [DUVIDA]Uma Duvida - by Bruno Pereira - 03.06.2011, 15:40
AW: [DUVIDA]Uma Duvida - by Miqueias Barros - 03.06.2011, 19:14
Re: AW: [DUVIDA]Uma Duvida - by TheGarfield - 03.06.2011, 19:23
Re: [Ajuda]Uma Duvida - by ygor - 03.06.2011, 22:34
Re: [Ajuda]Uma Duvida - by Bruno Pereira - 03.06.2011, 22:38
Re: [Ajuda]Uma Duvida - by Shadoww5 - 03.06.2011, 22:39
Re: [Ajuda]Uma Duvida - by ygor - 03.06.2011, 23:19
Re: [Ajuda]Uma Duvida - by Shadoww5 - 03.06.2011, 23:34
Re: [Ajuda]Uma Duvida - by steki. - 03.06.2011, 23:38

Forum Jump:


Users browsing this thread: 1 Guest(s)