05.10.2010, 23:01
how can i put a jet pack in a dialog command. i tried putting it under GivePlayerWeapon but it didnt work i searched it but didnt find ant thing and tried some commands but still didnt work plz help.
Code:
if(dialogid ==4) { if (response == 1) { switch(listitem) { case 0: SetPlayerHealth(selected_id[playerid],999999999); case 1: SetPlayerHealth(selected_id[playerid],100); case 2: RepairVehicle(GetPlayerVehicleID(selected_id[playerid])); case 3: ShowPlayerDialog(playerid,5,1,"Spawn a Vehicle","Please fill in your vehicle Name","Spawn","Back"); case 4: AddVehicleComponent(GetPlayerVehicleID(selected_id[playerid]),1010); case 5: GivePlayerWeapon(selected_id[playerid],38,999); case 6: Jetpack goes here