a little help with a dialog
#2

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_WEAPONS)
    {
        if(response == 0)
        {
            SendClientMessage(playerid,COLOR_YELLOW,"You Have Canceled The Dialog");
        }
        else if(listitem == 0)
        {
            GivePlayerWeapon(playerid, WEAPON_DEAGLE, 14);
        }
      /*else if(listitem == 1)
        {
            GivePlayerWeapon(playerid, weaponid/weaponname, ammo);
        }*/

    }
    return 1;
}
try this
Reply


Messages In This Thread
a little help with a dialog - by San1 - 06.08.2012, 04:56
Re: a little help with a dialog - by Devilxz97 - 06.08.2012, 05:27

Forum Jump:


Users browsing this thread: 1 Guest(s)