Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. sleep 0.1;
  2. while {true} do {
  3. sleep 5;
  4. if (player distance aidstation1 > 30) then {
  5. if ("ACE_Medkit" in (magazines player)) then {
  6. player removeMagazine "ACE_Medkit";
  7. hintSilent "Your not allowed to take medkits outside the wire!I'm taking yours away";
  8. };
  9. _has_rack = [player] call ACE_fnc_HasRuck;
  10. if (_has_rack) then {
  11. _MagazinesList = [player] call ACE_fnc_RuckMagazinesList;
  12. {
  13. // hint format["Name %1", _x select 0];
  14. _x = _x select 0;
  15. if (_x == "ACE_Medkit") then {
  16. [player, "MAG", "ACE_Medkit"] call ACE_fnc_RemoveGear;
  17. hintSilent "Your not allowed to take medkits outside the wire!I'm taking yours away";
  18. };
  19. } forEach _MagazinesList;
  20. };
  21. };
  22. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement