Advertisement
DarkSilencer

Untitled

Feb 14th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1.  
  2. private["_currentweapons","_currentmags"];
  3.  
  4.  
  5. if ((side player == civilian) && (player distance (getMarkerPos "police_hq_1") < 100)) then {
  6. hint "You have entered a restricted area, your guns and ammo have been removed and stored in a safe area";
  7. _currentweapons = weapons player;
  8. _currentmags = magazines player;
  9.  
  10. {
  11. copDetectorCase addWeaponCargoGlobal [_x, 1];
  12. } forEach _currentweapons;
  13.  
  14. {
  15. copDetectorCase addMagazineCargoGlobal [_x, 1];
  16. } forEach _currentmags;
  17.  
  18. removeAllWeapons player;
  19. } else {
  20.  
  21. if ((side player == civilian) && (player distance (getMarkerPos "cop_spawn_5_1") < 100)) then {
  22.  
  23. hint "You have entered a restricted area, your guns and ammo have been removed and stored in a safe area";
  24. _currentweapons = weapons player;
  25. _currentmags = magazines player;
  26.  
  27. {
  28. sheriffDetectorCase addWeaponCargoGlobal [_x, 1];
  29. } forEach _currentweapons;
  30.  
  31. {
  32. sheriffDetectorCase addMagazineCargoGlobal [_x, 1];
  33. } forEach _currentmags;
  34.  
  35. removeAllWeapons player;
  36. };
  37. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement