[FilterScript] Vehicle Parachute
#21

[REMOVED]
Reply
#22

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

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

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]);
		}
	}
Reply
#25

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

Wow amazing work might be useful to a lot of players
Reply
#27

Nice Filterscript, keep it up.
Reply
#28

Not bad
Reply
#29

woooow amazing work Man keep it up
Good Job :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)