25.02.2017, 11:08
(
Last edited by AbyssMorgan; 08/10/2019 at 05:12 PM.
Reason: Update v1.2.0
)
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:
Functions:
Callbacks:
Activation:
Example Code:
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
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>
PHP Code:
bool:IsPlayerUsingVehPara(playerid);
bool:IsToggleVehicleParachute(vehicleid);
ToggleVehicleParachute(vehicleid,bool:toggle);
SetVehicleParachuteKey(key);
PHP Code:
OnVehicleParachuteThrown(playerid,vehicleid);
OnVehicleParachuteOpened(playerid,vehicleid);
OnVehicleParachuteOpenFail(playerid,vehicleid);
PHP Code:
H - Open/thrown parachute
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;
}
Filterscript not exist because filterscripts have limits.
This has been replaced by include, having automatic installation, efficient GameMode/FilterScript.
Non-Registered Users:
Bug Report