Dialog Help.
#1

Hey Guys,

help me.
i have this dialog :-

Код:
ShowPlayerDialog(playerid, job, DIALOG_STYLE_LIST, "Life Of Transport - Select Job", "Trucker          -       0\nBus Driver     -     10\nTaxi Driver     -    25\nPilot             -      50", "Select", "Cancel");
and its OnPlayerDialogResponse:-
Код:
if(dialogid == job) //If dialog id is a login dialog
    {//then
        if(!response) return Kick(playerid); //If they clicked the second button "Quit", we will kick them.
        if(response) //if they clicked the first button "Register"
        {//then
            if(listitem == 0)
            {
			  SpawnPlayer(playerid);
              ShowPlayerDialog(playerid, trucker, DIALOG_STYLE_LIST, "Life Of Transport - Trucker Spawn", "Las Venturas Truck Stop\nSan Fierro Truck Stop\nLos Santos Truck Stop", "Select", "Cancel");
            }
            else if(listitem == 1)
            {
              SpawnPlayer(playerid);
              ShowPlayerDialog(playerid, busdriver, DIALOG_STYLE_LIST, "Life Of Transport - Bus Driver Spawn", "Las Venturas Bus Depot\nSan Fierro Bus Depot\nLos Santos Bus Depot", "Select", "Cancel");
            }
            else if(listitem == 2)
            {
              SpawnPlayer(playerid);
              ShowPlayerDialog(playerid, taxidriver, DIALOG_STYLE_LIST, "Life Of Transport - Taxi Driver Spawn", "Las Venturas\nSan Fierro\nLos Santos", "Select", "Cancel");
            }
            else if(listitem == 1)
            {
              SpawnPlayer(playerid);
              ShowPlayerDialog(playerid, pilot, DIALOG_STYLE_LIST, "Life Of Transport - Pilot Spawn", "Las Venturas Airport\nSan Fierro Airport\nLos Santos Airport", "Select", "Cancel");
            }
        }
    }
i want a system that it should check that player have 10 scores to be Bus driver,25 to be Taxi driver and 50 to be Pilot.If they do not have that much score, send them message you need ... Scores to be ...

Please Help me
Reply


Messages In This Thread
Dialog Help. - by Avi Raj - 22.03.2013, 09:02
Re: Dialog Help. - by Faisal_khan - 22.03.2013, 09:24
Re: Dialog Help. - by Avi Raj - 22.03.2013, 09:41
Re: Dialog Help. - by LarzI - 22.03.2013, 09:44
Re: Dialog Help. - by Avi Raj - 22.03.2013, 09:47
Re: Dialog Help. - by LarzI - 22.03.2013, 09:50
Re: Dialog Help. - by Avi Raj - 22.03.2013, 11:00

Forum Jump:


Users browsing this thread: 1 Guest(s)