[Ajuda] Dialog
#8

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 2492.4126,-1681.5120,13.3375))
        if(newkeys & KEY_ACTION) // Coloque a tecla que quiser
            ShowPlayerDialog(playerid, Dialog, DIALOG_STYLE_LIST2, "{FFFFFF}» {FF4F00}Lojinha DPS {FFFFFF}« ", "xTudo\nxBurge\nCachorro Quente", "Selecionar", "Cancelar");

    return true;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == Dialog)
    {
        switch(listitem)
        {
            case 0:
            {
                //XTudo
            }
            case 1:
            {
                //XBurger
            }
            case 2:
            {
                //Cachorro quente
            }
        }
    }
    return true;
}
Reply


Messages In This Thread
[Ajuda] Dialog - by Oakley_TwOPaCk - 16.03.2012, 01:07
Re: [Ajuda] Dialog - by Abravanel - 16.03.2012, 01:12
Re: [Ajuda] Dialog - by Lucas_Alemao - 16.03.2012, 01:18
Re: [Ajuda] Dialog - by Oakley_TwOPaCk - 16.03.2012, 01:20
Re: [Ajuda] Dialog - by Oakley_TwOPaCk - 16.03.2012, 01:46
Re: [Ajuda] Dialog - by ViniBorn - 16.03.2012, 02:12
Re: [Ajuda] Dialog - by Oakley_TwOPaCk - 16.03.2012, 02:40
Re: [Ajuda] Dialog - by ViniBorn - 16.03.2012, 03:09
Re: [Ajuda] Dialog - by Oakley_TwOPaCk - 16.03.2012, 04:00
Re: [Ajuda] Dialog - by @Riichard - 16.03.2012, 17:29

Forum Jump:


Users browsing this thread: 1 Guest(s)