[FilterScript] Vehicle Parachute
#1

Hello, I would like to present you the Vehicle Parachute Script

Video:
https://www.youtube.com/watch?v=TrxYkMeBtsU

Download:
VehPara.inc
3DTryg.inc Thread
ColAndreas Plugin

Installation:
PHP Code:
#include <ColAndreas>
#include <3DTryg>
#include <VehPara> 
Functions:
PHP Code:
bool:IsPlayerUsingVehPara(playerid);
bool:IsToggleVehicleParachute(vehicleid);
ToggleVehicleParachute(vehicleid,bool:toggle);
SetVehicleParachuteKey(key); 
Callbacks:
PHP Code:
OnVehicleParachuteThrown(playerid,vehicleid);
OnVehicleParachuteOpened(playerid,vehicleid);
OnVehicleParachuteOpenFail(playerid,vehicleid); 
Activation:
PHP Code:
Open/thrown parachute 
Example Code:
PHP Code:
CMD:vehpara(playerid){
    new 
vid GetPlayerVehicleID(playerid);
    if(
IsToggleVehicleParachute(vid)) return SendClientMessage(playerid,0xCC0000FF,"Your vehicle already has a parachute");
    if(!
IsVehicleFlag(GetVehicleFlags(vid),VF_STREET)) return SendClientMessage(playerid,0xCC0000FF,"For this vehicle can not be mounted parachute");
    
    
ToggleVehicleParachute(vid,true);
    return 
1;
}
//Callbacks:
public OnVehicleParachuteThrown(playerid,vehicleid){
    
GameTextForPlayer(playerid,"~g~Parachute has been thrown",2500,3);
    return 
1;
}
public 
OnVehicleParachuteOpened(playerid,vehicleid){
    
GameTextForPlayer(playerid,"~g~Parachute has been opened",2500,3);
    return 
1;
}
public 
OnVehicleParachuteOpenFail(playerid,vehicleid){
    
GameTextForPlayer(playerid,"~g~Cannot use parachute",2500,3);
    return 
1;

Notice:
Filterscript not exist because filterscripts have limits.
This has been replaced by include, having automatic installation, efficient GameMode/FilterScript.


Non-Registered Users:
Bug Report
Reply


Messages In This Thread
Vehicle Parachute - by AbyssMorgan - 25.02.2017, 11:08
Re: Vehicle Parachute - by RyderX - 25.02.2017, 11:30
Re: Vehicle Parachute - by Bolex_ - 25.02.2017, 11:35
Respuesta: Vehicle Parachute - by Whyd - 25.02.2017, 11:36
Re: Vehicle Parachute - by AbyssMorgan - 25.02.2017, 12:32
Re: Vehicle Parachute - by Pottus - 25.02.2017, 13:41
Re: Vehicle Parachute - by ISmokezU - 25.02.2017, 14:03
Re: Vehicle Parachute - by AbyssMorgan - 25.02.2017, 14:08
Re: Vehicle Parachute - by 4D1L - 25.02.2017, 14:16
Re: Vehicle Parachute - by binsieunhan123 - 26.02.2017, 08:30
Re: Vehicle Parachute - by XBrianX - 26.02.2017, 13:59
Respuesta: Vehicle Parachute - by Gles - 27.02.2017, 19:23
Re: Vehicle Parachute - by Henrik96 - 27.02.2017, 23:00
Re: Vehicle Parachute - by Pottus - 27.02.2017, 23:06
Re: Vehicle Parachute - by Celson - 28.02.2017, 01:35
Re: Vehicle Parachute - by Damian - 28.02.2017, 01:43
Re: Vehicle Parachute - by Janpatrick22 - 28.02.2017, 01:52
Re: Vehicle Parachute - by Gammix - 28.02.2017, 02:03
Re: Vehicle Parachute - by Hansrutger - 28.02.2017, 02:20
Re: Vehicle Parachute - by Crayder - 28.02.2017, 03:02
Re: Vehicle Parachute - by AbyssMorgan - 28.02.2017, 05:47
Re: Vehicle Parachute - by AbyssMorgan - 17.05.2017, 21:29
Re: Vehicle Parachute - by Stones - 17.05.2017, 21:44
Re: Vehicle Parachute - by Pottus - 17.05.2017, 22:39
Re: Vehicle Parachute - by AbyssMorgan - 18.05.2017, 06:07
Re: Vehicle Parachute - by Oxygenated - 18.05.2017, 17:13
Re: Vehicle Parachute - by [G]am3r - 18.05.2017, 17:42
Re: Vehicle Parachute - by Lucille - 19.05.2017, 05:43
Re: Vehicle Parachute - by Azhar - 23.05.2017, 14:19

Forum Jump:


Users browsing this thread: 4 Guest(s)