Problem with Dialog Spoof
#5

Use this DialogResponse

pawn Код:
else if(dialogid == 10253)
    {
        if(response) switch(listitem)
        {
            case 0: // CAL Uniforms
            {
                SetPVarInt(playerid, "dialog", RRMENU);
                ShowPlayerDialogEx(playerid, RRMENUSKIN, DIALOG_STYLE_LIST, "Rapid Skins", "Mechanic\nMechanic 2\nMechanic 3", "Select", "Cancel");
            }
            case 1: // CAL Weapons
            {
                SetPVarInt(playerid, "dialog", RRMENU);
                ShowPlayerDialogEx(playerid, RRMENUWEP, DIALOG_STYLE_LIST, "Rapid Equipment","Shovel\nFire Extinguisher\nCamera", "Purchase", "Cancel");
            }
            case 2: // NG Heal
            {
                SetPlayerHealth(playerid, 100);
            }
            case 3:
            {
                SetPlayerArmour(playerid, 100);
            }
            case 4: // Mechanic
            {
                SetPVarInt(playerid, "dialog", RRMENU);
                ShowPlayerDialogEx(playerid, 7485, DIALOG_STYLE_LIST, "Mechanic Job", "Job Slot 1\nJob Slot 2", "Proceed", "Cancel");
            }
        }
    }
    else if(dialogid == 10255)
    {
        if(response)
        {
            if(listitem == 0) // LSPD Uniforms
            {
                SetPlayerSkin(playerid, 50);
                PlayerInfo[playerid][pSkin] = 50;
            }
            if(listitem == 1) //LSPD Uniforms
            {
                SetPlayerSkin(playerid, 8);
                PlayerInfo[playerid][pSkin] = 8;
            }
            if(listitem == 2) // LSPD Uniforms
            {
                SetPlayerSkin(playerid, 42);
                PlayerInfo[playerid][pSkin] = 42;
            }
        }
    }
    else if(dialogid == 10254)
    {
        if(response)
        {
            if(listitem == 0)
            {
                GivePlayerValidWeapon(playerid, 6, 1);
            }
            if(listitem == 1)
            {
                GivePlayerValidWeapon(playerid, 42, 999999);
            }
            if(listitem == 2)
            {
                GivePlayerValidWeapon(playerid, 43, 99999);
            }
        }
    }
Reply


Messages In This Thread
Problem with Dialog Spoof - by cedizon - 19.05.2014, 04:38
Re: Problem with Dialog Spoof - by jihadmeneer - 19.05.2014, 08:19
Re: Problem with Dialog Spoof - by cedizon - 20.05.2014, 00:56
Re: Problem with Dialog Spoof - by cedizon - 20.05.2014, 01:04
Re: Problem with Dialog Spoof - by denom - 20.05.2014, 04:48
Re: Problem with Dialog Spoof - by jihadmeneer - 20.05.2014, 05:42
Re: Problem with Dialog Spoof - by cedizon - 20.05.2014, 06:38

Forum Jump:


Users browsing this thread: 1 Guest(s)