SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 05/10/2010, 11:01 PM   #1
nicoud
Little Clucker
 
nicoud's Avatar
 
Join Date: Sep 2010
Location: Canada, Ontario
Posts: 35
Reputation: 0
Question jetpack

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
nicoud is offline  
Old 05/10/2010, 11:07 PM   #2
Las Venturas CNR
Gangsta
 
Join Date: Feb 2010
Posts: 535
Reputation: 42
Default Re: jetpack

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
);
Las Venturas CNR is offline  
Old 05/10/2010, 11:14 PM   #3
nicoud
Little Clucker
 
nicoud's Avatar
 
Join Date: Sep 2010
Location: Canada, Ontario
Posts: 35
Reputation: 0
Default Re: jetpack

tyvm i am very greatful
nicoud is offline  
Old 05/10/2010, 11:17 PM   #4
Las Venturas CNR
Gangsta
 
Join Date: Feb 2010
Posts: 535
Reputation: 42
Default Re: jetpack

Quote:
Originally Posted by nicoud View Post
tyvm i am very greatful

Yeah, no problem.
Las Venturas CNR is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
jetpack makogemata Help Archive 1 17/11/2009 07:04 PM
jetpack help tommy5933 Help Archive 2 08/07/2009 11:54 PM
Jetpack FreeSoul Help Archive 2 09/05/2009 09:23 AM


All times are GMT. The time now is 07:08 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.