jetpack
#1

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
Reply
#2

pawn 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:     SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK
);
Reply
#3

tyvm i am very greatful
Reply
#4

Quote:
Originally Posted by nicoud
View Post
tyvm i am very greatful
Yeah, no problem.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)