Want a little help (reward : +1 rep)
#2

pawn Код:
// Show the dialog when using the commands:
// so for example: lsa

dcmd_lsa(playerid, params[]) {
    #pragma unused params
    ShowPlayerDialog( playerid, DIALOGID3+40, DIALOG_STYLE_LIST, "Vehicle Types", "nBikes\nConvertibles\nIndustrial\nLowriders\nOff Road\nPublic Service Vehicles\nSaloons\nSport Vehicles\nStation Wagons", "Select", "Cancel" );  
}

// then when a player chose a vehicle, teleport them (use OnDialogResponse)

public OnDialogResponse(playerid, dialogid, ...) {
    if(dialogid == DIALOGID3+40) {
        if(response) {
            // teleport them
        }
    }
}
DO this for all three teleports
Reply


Messages In This Thread
Want a little help (reward : +1 rep) - by XGTDM - 12.03.2012, 12:39
Re: Want a little help (reward : +1 rep) - by Sinner - 12.03.2012, 12:50
Re: Want a little help (reward : +1 rep) - by XGTDM - 12.03.2012, 12:56

Forum Jump:


Users browsing this thread: 3 Guest(s)