Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Created by νєтι¢υѕ. This is a public source to anyone who wishes to have it. But i will not write a setup tut for this. Just use an addAction.
- private ["_veh", "_AcceptVehicle", "_NamePlayer"];
- _veh = _this select 1;
- _AcceptVehicle = nearestObjects [_veh, ["Car", "Air", "Ship"], 5];
- _NamePlayer = name player;
- if (count _AcceptVehicle > 0) then {
- _veh = (_AcceptVehicle select 0);
- };
- if (!isNil "_veh") then {
- if ((locked _veh) == 2) then {
- _veh lock false;
- hintSilent parseText format ["<t color = '#2E9AFE'>%1:</t> <t color = '#FFFFFF'>Vehicle Unlocked</t>", _NamePlayer];
- } else {
- _veh lock true;
- hintSilent parseText format ["<t color = '#2E9AFE'>%1:</t> <t color = '#FFFFFF'>Vehicle Locked</t>", _NamePlayer];
- };
- } else {
- hintSilent parseText format ["<t color = '#2E9AFE'>%1:</t> <t color = '#FFFFFF'>No vehicle in range</t>", _NamePlayer];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement