[Ajuda]Uma Duvida
#9

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == DIALOG_MUDAR_FACCAO)
    {
        if(
response)
        {
            if(
listitem)
            {
                
SetPlayerTeam(playeridcv);
                
Spawn(playerid);
                
SetPlayerSkin(playerid47);
            }
            else if(
listitem == 1)
            {
                
SetPlayerTeam(playeridtcc);
                
Spawn(playerid);
                
SetPlayerSkin(playerid105);
            }
            else if(
listitem == 2)
            {
                
SetPlayerTeam(playeridtcp);
                
Spawn(playerid);
                
SetPlayerSkin(playerid107);
            }
            else if(
listitem == 3)
            {
                
SetPlayerTeam(playeridada);
                
Spawn(playerid);
                
SetPlayerSkin(playerid102);
            }
            else if(
listitem == 4)
            {
                
SetPlayerTeam(playeridpcc);
                
Spawn(playerid);
                
SetPlayerSkin(playerid109);
            }
            else if(
listitem == 5)
            {
                
SetPlayerTeam(playeridpcp);
                
Spawn(playerid);
                
SetPlayerSkin(playerid109);
            }
            
SetPlayerHealth(playerid0);
        }
    }
    else if(
dialogid == DIALOG_ESCOLHE_FACCAO)
    {
        if(
response)
        {
            if(
listitem)
            {
                
SetPlayerTeam(playeridcv);
                
Spawn(playerid);
                
SetPlayerSkin(playerid47);
            }
            else if(
listitem == 1)
            {
                
SetPlayerTeam(playeridtcc);
                
Spawn(playerid);
                
SetPlayerSkin(playerid105);
            }
            else if(
listitem == 2)
            {
                
SetPlayerTeam(playeridtcp);
                
Spawn(playerid);
                
SetPlayerSkin(playerid107);
            }
            else if(
listitem == 3)
            {
                
SetPlayerTeam(playeridada);
                
Spawn(playerid);
                
SetPlayerSkin(playerid102);
            }
            else if(
listitem == 4)
            {
                
SetPlayerTeam(playeridpcc);
                
Spawn(playerid);
                
SetPlayerSkin(playerid109);
            }
            else if(
listitem == 5)
            {
                
SetPlayerTeam(playeridpcp);
                
Spawn(playerid);
                
SetPlayerSkin(playerid109);
            }
        }
    }
    return 
1;

Nгo sei se irб fazer muita diferenзa, mas tenta.
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)