SA-MP Forums Archive
[FilterScript] Vehicle Parachute - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Vehicle Parachute (/showthread.php?tid=629346)

Pages: 1 2


Re: Vehicle Parachute - AbyssMorgan - 28.02.2017

[REMOVED]


Re: Vehicle Parachute - AbyssMorgan - 17.05.2017

Update v1.1.0:

- Added air control (Tilt in the direction you want to fly).

- Remove Vehicle Parachute after using SetPlayerPos

- Added function:
PHP код:
SetVehicleParachuteKey(key); 
- Added language config:
PHP код:
#define VP_LANG_01    "~g~Parachute has been thrown"
#define VP_LANG_02    "~g~Parachute has been opened"
#define VP_LANG_03    "~g~Cannot use parachute"
#include <VehPara> 



Re: Vehicle Parachute - Stones - 17.05.2017

I honestly love the stuff you bring out. Keep it up with these epic releases.


Re: Vehicle Parachute - Pottus - 17.05.2017

I know what it is like when you write a lot of shit and getting it to work takes a bit of time then you look back and say "why the fuck did I do that like that?" how about these updates in school they teach about lowest common factors it applies vigorously to any coding

Код:
stock ToggleVehicleParachute(vehicleid,bool:toggle){

	for(new i = 0; i < 3; i++) {
		if(IsValidDynamicObject(VehicleParachuteObject[vehicleid][i])) DestroyDynamicObject(VehicleParachuteObject[vehicleid][i]);
		VehicleParachuteObject[vehicleid][i] = INVALID_STREAMER_ID;
	}
Код:
stock StartVehicleParachuteAction(playerid){
	TogglePlayerUsingVehPara(playerid,1);

	new vid = GetPlayerVehicleID(playerid);
	
	for(new i = 0; i < MAX_PARA_OBJECTS; i++) {
	    if(IsValidDynamicObject(VehicleParachuteObject[vid][i])) {
			DestroyDynamicObject(VehicleParachuteObject[vid][i]);
			if(i == 0)
			    CreateDynamicObject(18849,0.0,0.0,-6000.0,0.0,0.0,0.0,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
			else
			    DestroyDynamicObject(VehicleParachuteObject[vid][i]);
		}
	}



Re: Vehicle Parachute - AbyssMorgan - 18.05.2017

Quote:
Originally Posted by Pottus
Посмотреть сообщение
I know what it is like when you write a lot of shit and getting it to work takes a bit of time then you look back and say "why the fuck did I do that like that?" how about these updates in school they teach about lowest common factors it applies vigorously to any coding

Код:
stock ToggleVehicleParachute(vehicleid,bool:toggle){

	for(new i = 0; i < 3; i++) {
		if(IsValidDynamicObject(VehicleParachuteObject[vehicleid][i])) DestroyDynamicObject(VehicleParachuteObject[vehicleid][i]);
		VehicleParachuteObject[vehicleid][i] = INVALID_STREAMER_ID;
	}
Код:
stock StartVehicleParachuteAction(playerid){
	TogglePlayerUsingVehPara(playerid,1);

	new vid = GetPlayerVehicleID(playerid);
	
	for(new i = 0; i < MAX_PARA_OBJECTS; i++) {
	    if(IsValidDynamicObject(VehicleParachuteObject[vid][i])) {
			DestroyDynamicObject(VehicleParachuteObject[vid][i]);
			if(i == 0)
			    CreateDynamicObject(18849,0.0,0.0,-6000.0,0.0,0.0,0.0,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
			else
			    DestroyDynamicObject(VehicleParachuteObject[vid][i]);
		}
	}
Thank you for your attention, I corrected some code :P


Re: Vehicle Parachute - Oxygenated - 18.05.2017

Wow amazing work might be useful to a lot of players


Re: Vehicle Parachute - [G]am3r - 18.05.2017

Nice Filterscript, keep it up.


Re: Vehicle Parachute - Lucille - 19.05.2017

Not bad


Re: Vehicle Parachute - Azhar - 23.05.2017

woooow amazing work Man keep it up
Good Job :P