[Ajuda] ajuda com dialog
#8

Й isso?

PHP Code:
#include "a_samp"
#include "streamer"
new
    
AreaID,
    
PlayerAreaID[MAX_PLAYERS] = {-1, ...};
main() {
    
AreaID CreateDynamicSphere(0.00.03.02.0);
}
public 
OnPlayerEnterDynamicArea(playeridareaid) {
    if (
areaid == AreaID) {
        
PlayerAreaID[playerid] = areaid;
    }
    return 
1;
}
public 
OnPlayerLeaveDynamicArea(playeridareaid) {
    if (
areaid == AreaID) {
        
PlayerAreaID[playerid] = -1;
    }
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[]) {
    if (!
strcmp(cmdtext"/teste"true)) {
        new
            
content[] = "\
                        Item 1\n\
                        Item 2\n\
                        Item 3\n\
                        Item 4\n\
                        "
;
        
ShowPlayerDialog(playerid4430,
            
DIALOG_STYLE_LIST,
            ((
PlayerAreaID[playerid] == -1) ? ("Aviso") : ("Lista de itens")),
            ((
PlayerAreaID[playerid] == -1) ? ("Vocк nгo estб na бrea apropriada.") : (content)),
            ((
PlayerAreaID[playerid] == -1) ? ("Estб bem") : ("Escolher")), "Fechar");
        return 
1;
    }
    return 
0;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[]) {
    if (!
response)
        return 
1;
    if (
dialogid == 4430) {
        if (
PlayerAreaID[playerid] == -1)
            return 
1;
        
printf("Vocк selecionou o item: %i.", (listitem 1));
    }
    return 
1;

Reply


Messages In This Thread
ajuda com dialog - by Feconito - 31.03.2019, 17:09
Re: ajuda com dialog - by Anonymous637 - 31.03.2019, 17:49
Re: ajuda com dialog - by Feconito - 05.04.2019, 16:04
Re: ajuda com dialog - by ipsLuan - 05.04.2019, 16:24
Re: ajuda com dialog - by iAplle - 05.04.2019, 16:57
Re: ajuda com dialog - by 1sbedx - 05.04.2019, 17:00
Re: ajuda com dialog - by Feconito - 05.04.2019, 17:22
Re: ajuda com dialog - by 1sbedx - 05.04.2019, 17:57

Forum Jump:


Users browsing this thread: 1 Guest(s)