Dialog help
#6

I've tested and worked at me


PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(!
strcmp(cmdtext"/shop"true))
    {
        
ShowPlayerDialog(playerid,99,DIALOG_STYLE_LIST,"Shop","\tVehicles\n\tWeapons","Select""Cancel");
        
SendClientMessage(playerid,red,"If the shop doesn't pop up, it is unavaible for this mission!");
        return 
1;
    }
    return 
0;

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == 99
    { 
        if(
response
        { 
            if(
listitem == 0
            { 
                
ShowPlayerDialog(playerid,99+1,DIALOG_STYLE_LIST,"Vehicles","\tSultan $ 20.000\n\tNew Maverick $ 25.000n\tNRG-500 $ 11.000n\tSanchez $ 10.000\r\n\tSpeeder $ 17.000\r\n\tSquallo $ 17.000","Select""Cancel"); 
            } 
            if(
listitem == 1
            { 
                    
ShowPlayerDialog(playerid,99+2,DIALOG_STYLE_LIST,"Weapons","Knife $ 200\n\tDesert Eagle $ 12.000\n\tSawn-offs $ 25.000\n\tSMG $ 15.000\n\tM4 $ 24.000","Select""Cancel"); 
        } 
        return 
1
    } 
    return 
1

Reply


Messages In This Thread
Dialog help - by geerdinho8 - 01.01.2012, 22:50
Re: Dialog help - by Bogdan1992 - 01.01.2012, 22:56
Re: Dialog help - by geerdinho8 - 01.01.2012, 23:14
Re: Dialog help - by Bogdan1992 - 01.01.2012, 23:17
Re: Dialog help - by geerdinho8 - 01.01.2012, 23:21
Re: Dialog help - by Bogdan1992 - 01.01.2012, 23:24
Re: Dialog help - by geerdinho8 - 01.01.2012, 23:34
Re: Dialog help - by geerdinho8 - 02.01.2012, 01:09
Re: Dialog help - by Gh05t_ - 02.01.2012, 01:26
Re: Dialog help - by geerdinho8 - 02.01.2012, 11:47

Forum Jump:


Users browsing this thread: 1 Guest(s)