SA-MP Forums Archive
adding cars to buy on the zGaming roleplay script. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: adding cars to buy on the zGaming roleplay script. (/showthread.php?tid=365465)



adding cars to buy on the zGaming roleplay script. - Zach7 - 03.08.2012

I ve looked but can find the part of the script that shows the vehicles to buy because I want to add more.


Re: adding cars to buy on the zGaming roleplay script. - oblexive - 03.08.2012

I had a quick look through it and theres a few parts that control whats going on with the dealership.
under: stock ShowDialog(playerid, dialogid)
pawn Код:
case 10: // Dealership Main
        {
            ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "Choose a category", "Bikes\nNormal Vehicles\nLowriders\nOff-Road Vehicles\nSport Vehicles", "Choose", "Cancel");
        }
This is when you type /buycar I believe. This then brings up:
under: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
pawn Код:
else if(dialogid == 10) // Dealership main
    {
        if(response)
        {
            switch(listitem)
            {
                case 0: ShowDialog(playerid, 11); // Bikes
                case 1: ShowDialog(playerid, 12); // Normal Vehicles
                case 2: ShowDialog(playerid, 21); // Lowriders
                case 3: ShowDialog(playerid, 13); // Off-Road Vehicles
                case 4: ShowDialog(playerid, 14); // Sport Vehicles
            }
        }
    }
Which in turn brings up the dialogs followed directly under.
This should give you enough info on what is going on


Re: adding cars to buy on the zGaming roleplay script. - Zach7 - 03.08.2012

Quote:
Originally Posted by oblexive
Посмотреть сообщение
I had a quick look through it and theres a few parts that control whats going on with the dealership.
under: stock ShowDialog(playerid, dialogid)
pawn Код:
case 10: // Dealership Main
        {
            ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "Choose a category", "Bikes\nNormal Vehicles\nLowriders\nOff-Road Vehicles\nSport Vehicles", "Choose", "Cancel");
        }
This is when you type /buycar I believe. This then brings up:
pawn Код:
else if(dialogid == 10) // Dealership main
    {
        if(response)
        {
            switch(listitem)
            {
                case 0: ShowDialog(playerid, 11); // Bikes
                case 1: ShowDialog(playerid, 12); // Normal Vehicles
                case 2: ShowDialog(playerid, 21); // Lowriders
                case 3: ShowDialog(playerid, 13); // Off-Road Vehicles
                case 4: ShowDialog(playerid, 14); // Sport Vehicles
            }
        }
    }
Which in turn brings up the dialogs followed directly under.
This should give you enough info on what is going on
Thank you I can add the cars thank you.


Re: adding cars to buy on the zGaming roleplay script. - oblexive - 03.08.2012

No worries Feels good to finally be helping others! Even if it is small stuff. Hehe.