[Ajuda] OnDialogResponse
#5

Tente.
PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if (
dialogid == ArmasADM)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerWeapon(playerid19999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu um Soco Inglкs!");
                }
            if(
listitem == 1)
            {
                
GivePlayerWeapon(playerid29999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu um Taco de Golf!");
            }
            if(
listitem == 2)
            {
                
GivePlayerWeapon(playerid39999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu um Cassetete!");
            }
            if(
listitem == 3)
            {
                
GivePlayerWeapon(playerid69999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu uma Pб!");
            }
            if(
listitem == 4)
            {
                
GivePlayerWeapon(playerid79999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu um Taco de Sinuca!");
            }
            if(
listitem == 5)
            {
                
GivePlayerWeapon(playerid59999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu um Taco de Bйisebol!");
            }
            if(
listitem == 6)
            {
                
GivePlayerWeapon(playerid89999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu uma Katana!");
            }
            if(
listitem == 7)
            {
                
GivePlayerWeapon(playerid109999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu um Dildo Roxo!");
            }
            if(
listitem == 8)
            {
                
GivePlayerWeapon(playerid119999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu um Dildo!");
            }
            if(
listitem == 9)
            {
                
GivePlayerWeapon(playerid129999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu um Vibrador Branco!");
            }
            if(
listitem == 10)
            {
                
GivePlayerWeapon(playerid139999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu um Vibrador Pretiado!");
            }
            if(
listitem == 11)
            {
                
GivePlayerWeapon(playerid149999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu um Buque de Flores!");
            }
            if(
listitem == 12)
            {
                
GivePlayerWeapon(playerid49999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu uma Faca!");
            }
            if(
listitem == 13)
            {
                
GivePlayerWeapon(playerid229999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu uma 9mm!");
            }
            if(
listitem == 14)
            {
                
GivePlayerWeapon(playerid239999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu uma 9mm com Silкnciador!");
            }
            if(
listitem == 15)
            {
                
GivePlayerWeapon(playerid249999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu uma Desert Eagle!");
            }
            if(
listitem == 16)
            {
                
GivePlayerWeapon(playerid259999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu uma Escopeta Normal!");
            }
            if(
listitem == 17)
            {
                
GivePlayerWeapon(playerid279999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu uma Escopeta de Combate!");
            }
            if(
listitem == 18)
            {
                
GivePlayerWeapon(playerid299999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu uma MP5!");
            }
            if(
listitem == 19)
            {
                
GivePlayerWeapon(playerid309999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu uma AK-47!");
            }
            if(
listitem == 20)
            {
                
GivePlayerWeapon(playerid319999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu uma M4!");
            }
            if(
listitem == 21)
            {
                
GivePlayerWeapon(playerid339999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu um Rifle!");
            }
            if(
listitem == 22)
            {
                
GivePlayerWeapon(playerid1650);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu uma Granada!");
            }
            if(
listitem == 23)
            {
                
GivePlayerWeapon(playerid439999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu uma Cвmera!");
            }
            if(
listitem == 24)
            {
                
GivePlayerWeapon(playerid469999);
                
SendClientMessage(playerid0xFCFCFCAA"{05B69C}OpenServ- Parabйns vocк recebeu um Para-quedas!");
            }
            return 
1;
        }
    }

Reply


Messages In This Thread
OnDialogResponse - by Dimbalada - 26.01.2018, 22:28
Re: OnDialogResponse - by iLordGG - 26.01.2018, 22:36
Re: OnDialogResponse - by Dimbalada - 26.01.2018, 22:38
Re: OnDialogResponse - by Lovejoy - 26.01.2018, 22:46
Re: OnDialogResponse - by NelsonC - 26.01.2018, 22:47
Re: OnDialogResponse - by Dimbalada - 26.01.2018, 22:51

Forum Jump:


Users browsing this thread: 1 Guest(s)