Need help: Dialog List more menu 1+ rep
#1

Hello can you help me.

How can i add more menus to Dialog_List like if i whant to spawn a car like a bullet it are a fast car so it will be placed in " Fast cars " Like that.
...... Or.


There can be ( Slow cars ) ( Fast cars ) ( Heavy cars ) and then i select Fast cars will a new Dialog_list come up and i can select bullet.

Hope you can help me
Reply
#2

pawn Код:
if(dialogid == 99991)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0:
                {
                    new Float:x, Float:y, Float:z, Float:r;
                    GetPlayerPos(playerid, x, y, z);
                    GetPlayerFacingAngle(playerid, r);
                    CreateVehicle(411, x, y, z, r, 0, 0, -1);
                    SendClientMessage(playerid, -1, "You spawned a Infernus(411).");
                }
            }
        }
    }
This is a simple one with a infernus, case 0 is the first line of the dialog, you can seperate lines with \n
Reply
#3

I get a error
PHP код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
" Blank Filterscript by your name here");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
#else
#endif
public OnGameModeInit()
{
    
// Don't use these lines if it's a filterscript
    
SetGameModeText("Blank Script");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000);
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
     if(
strcmp(cmdtext,"/lspdlocker",true)==0)
{
    
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Shop List","Cadet ","Purchase","Exit");
       return 
1;
}
    return 
0;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == 99991)
    {
        if(
response)
        {
            switch(
listitem)
            {
                case 
0:
                {
        if(
GetPlayerMoney(playerid) <59) return SendClientMessage(playerid,0xAA3333AA"Nothing");
        new 
Float:pArmour;
        
SendClientMessage(playerid,0xFFFFFFAA,"You taked the cadet skin on.");
        
SetPlayerArmour(playeridpArmour+100);
        
SetPlayerHealth(playerid100);
        
SetPlayerSkin(playerid71);
        
GivePlayerWeapon(playerid24150);
        
GivePlayerWeapon(playerid30);
        }
    }
    return 
1;
}
    return 
0// You MUST return 0 here! Just like OnPlayerCommandText.

Reply
#4

There's filterscripts similar to this around... Clicky Clicky!
Reply
#5

I will make my own
Reply
#6

check your inbox canip
Reply
#7

check your inbox canip
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)