Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Created by νєтι¢υѕ. For Bay City Community.
- // As you may notice their not much difference between this script and the flip script. If you want to add a custom item that repaired the vehicle. Then you would have to go into more detail.
- private ["_numberone", "_numbertwo", "_vehicleselect", "_NamePlayer", "_veh"];
- _numberone = _this select 0;
- _numbertwo = _this select 1;
- _vehicleselect = nearestObjects [_numbertwo, ["Car", "Air", "Ship"], 5];
- _NamePlayer = name player;
- if (count _vehicleselect > 0) then {
- _veh = (_vehicleselect select 0);
- };
- if (!isNil "_veh") then {
- if ({alive _x} count crew _veh == 0) then {
- hintSilent format ["%1: Vehicle is being repaired", _NamePlayer];
- player playMoveNow "AinvPknlMstpSnonWnonDnon_medic_1";
- sleep 4;
- hintSilent format ["%1: Vehicle repaired", _NamePlayer];
- _veh setDamage 0;
- } else {
- hintSilent format ["%1: People in the vehicle!", _NamePlayer];
- };
- } else {
- hintSilent format ["%1: Their is no vehicle in range!", _NamePlayer];
- };
- // TO ADD!: This script is run locally. You would have to implement the script into a public var or whatever you want it to do to run on other PC's
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement