[Ajuda] Ajuda com os Dialogs_Box
#3

Vai usando as response, exemplo:

pawn Код:
ShowPlayerDialog(playerid, DialogComprar, DIALOG_STYLE_LIST, "Comprar Online", "Armas\nColete", "Ok", "Cancelar");

//OnDialogResponse

if (dialogid == DialogComprar)
{
    if (response)
    {
        if (listitem == 0)
            ShowPlayerDialog(playerid, DialogComprarArma, DIALOG_STYLE_LIST, "Selecione a Arma", "Minigun", "Comprar", "Cancelar");
    }
}

if (dialogid == DialogComprarArma)
{
    if (response)
    {
        if (listitem == 0)
        {
            if (GetPlayerMoney(playerid) < 100000) return 0;
            GivePlayerMoney(playerid, -100000);
            GivePlayerWeapon(playerid, 38, 500);
        }
    }
}
Й so ir adicionando conforme suas necessidades
Reply


Messages In This Thread
Ajuda com os Dialogs_Box - by VictorNascimento - 13.08.2013, 21:49
Re: Ajuda com os Dialogs_Box - by Don_Speed - 13.08.2013, 22:01
Re: Ajuda com os Dialogs_Box - by Juniiro3 - 13.08.2013, 22:03
Re: Ajuda com os Dialogs_Box - by VictorNascimento - 13.08.2013, 22:05
Re: Ajuda com os Dialogs_Box - by VictorNascimento - 13.08.2013, 22:07

Forum Jump:


Users browsing this thread: 1 Guest(s)