help with dialog
#6

This is only to show you how you can do it.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_GUN)
    {
        if(response)
        {
            if(listitem == 0)
            {
                if(GetPlayerMoney(playerid) < 1000)
                {
                    SendClientMessage(playerid, -1, "You don't have enough money.");
                    return 1;
                }
                else
                {
                    GivePlayerMoney(playerid, -1000);
                    GivePlayerWeapon(playerid, 24, 100);
                }
Reply


Messages In This Thread
help with dialog - by icko202 - 18.04.2013, 18:06
Re: help with dialog - by MP2 - 18.04.2013, 18:17
Re: help with dialog - by z3r0w1zard - 18.04.2013, 18:17
Re: help with dialog - by MP2 - 18.04.2013, 18:19
Re: help with dialog - by icko202 - 18.04.2013, 18:27
Re: help with dialog - by Don_Cage - 18.04.2013, 20:44

Forum Jump:


Users browsing this thread: 1 Guest(s)