dialog help
#2

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch (dialogid)
    {
        case CLS1:
        {
            if (response)
            {
                switch (listitem)
                {
                    case 0: GivePlayerWeapon(playerid,31,500);
                    case 1: GivePlayerWeapon(playerid,25,250);
                }
            }
            return 1;
        }
    }
    return 0;
}
After selecting a list item, it will close the dialog and give the weapon.
Reply


Messages In This Thread
dialog help - by Ben_Leto - 28.02.2014, 12:04
Re: dialog help - by Konstantinos - 28.02.2014, 12:23
Re: dialog help - by Ben_Leto - 28.02.2014, 13:11

Forum Jump:


Users browsing this thread: 1 Guest(s)