Quantcast
Channel: SA-MP Forums - Filterscripts
Viewing all articles
Browse latest Browse all 595

[FilterScript] Vehicle Parachute

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

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

Download:
VehPara.inc GitHub / Abyss Morgan Website
3DTryg.inc GitHub / Abyss Morgan Website Thread
ColAndreas Plugin Thread

Instalation:
PHP Code:

#include <SAM/3DTryg>
#include <VehPara> 

Functions:
PHP Code:

bool:IsPlayerUsingVehPara(playerid);
bool:IsToggleVehicleParachute(vehicleid);
ToggleVehicleParachute(vehicleid,bool:toggle); 

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;


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

Viewing all articles
Browse latest Browse all 595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>