Help scripting
#4

Try this:

pawn Код:
if(dialogid == DIALOG_WEAPONS)
{
    if(!response) return 1;
    if(response) // If they clicked 'Select' or double-clicked a weapon
    {
        // Give them the weapon
        switch(listitem)
        {
            case 0: GivePlayerWeapon(playerid, WEAPON_DEAGLE, 14); // Give them a desert eagle
            case 1: GivePlayerWeapon(playerid, WEAPON_AK47, 120); // Give them an AK-47
            case 2: GivePlayerWeapon(playerid, WEAPON_SHOTGSPA, 28); // Give them a Combat Shotgun
        }
    }
    return SendClientMessage(playerid,-1,""); // We handled a dialog, so return 1. Just like OnPlayerCommandText.
}
Reply


Messages In This Thread
Help scripting - by ProduitToxic - 25.01.2014, 15:58
Re: Help scripting - by Dignity - 25.01.2014, 15:59
Re : Help scripting - by ProduitToxic - 25.01.2014, 16:03
Re: Help scripting - by Dignity - 25.01.2014, 16:07
Re : Help scripting - by ProduitToxic - 25.01.2014, 16:10
Re: Help scripting - by Dignity - 25.01.2014, 16:13
Re : Help scripting - by ProduitToxic - 25.01.2014, 16:16
Re : Help scripting - by ProduitToxic - 25.01.2014, 17:26
Re : Help scripting - by ProduitToxic - 25.01.2014, 18:59
Re : Help scripting - by ProduitToxic - 25.01.2014, 19:57

Forum Jump:


Users browsing this thread: 1 Guest(s)