Advertisement
Veticus

Arma 3* Lock/Unlock System {Public}

Apr 26th, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. // 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.
  2. private ["_veh", "_AcceptVehicle", "_NamePlayer"];
  3. _veh = _this select 1;
  4. _AcceptVehicle = nearestObjects [_veh, ["Car", "Air", "Ship"], 5];
  5. _NamePlayer = name player;
  6. if (count _AcceptVehicle > 0) then {
  7. _veh = (_AcceptVehicle select 0);
  8. };
  9. if (!isNil "_veh") then {
  10. if ((locked _veh) == 2) then {
  11. _veh lock false;
  12. hintSilent parseText format ["<t color = '#2E9AFE'>%1:</t> <t color = '#FFFFFF'>Vehicle Unlocked</t>", _NamePlayer];
  13. } else {
  14. _veh lock true;
  15. hintSilent parseText format ["<t color = '#2E9AFE'>%1:</t> <t color = '#FFFFFF'>Vehicle Locked</t>", _NamePlayer];
  16. };
  17. } else {
  18. hintSilent parseText format ["<t color = '#2E9AFE'>%1:</t> <t color = '#FFFFFF'>No vehicle in range</t>", _NamePlayer];
  19. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement