Weapons
#7

Ok, here. note that first one gets you AK47 and other M4 and the other one Respray as i understanded them.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)// They pressed the first button    
    {
    switch(1)// Checking what dialog we're processing
        {
        case 1:// Our first dialog
            {
            switch(listitem)// Checking which item was chosen
            {
                case 0: // The first listitem
                {
                        GivePlayerWeapon(playerid, 30, 5000);  // AK47
                }
                case 1: // The second listitem
                {
                        GivePlayerWeapon(playerid, 31, 5000); // M4
                }
                case 2: // The third listitem
                {
                        GivePlayerWeapon(playerid, 41, 5000); // RESPRAY
                }        
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Weapons - by DerickClark - 11.02.2013, 21:37
Re: Weapons - by SilverKiller - 11.02.2013, 21:43
Re: Weapons - by DerickClark - 11.02.2013, 21:51
Re: Weapons - by SilverKiller - 11.02.2013, 21:56
Re: Weapons - by DerickClark - 11.02.2013, 21:58
Re: Weapons - by ReVo_ - 11.02.2013, 21:59
Re: Weapons - by SilverKiller - 11.02.2013, 22:03
Re: Weapons - by DerickClark - 11.02.2013, 22:03
Re: Weapons - by SilverKiller - 11.02.2013, 22:05
Re: Weapons - by DerickClark - 11.02.2013, 22:07

Forum Jump:


Users browsing this thread: 1 Guest(s)