Advertisement
TheGamingChief

Untitled

Jul 25th, 2016
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. call fnc_AddRadiosToNonLethalWeapons;
  2. sleep 1;
  3. _weapons = weapons player - nonlethalweapons;
  4. _mags = magazines player;
  5. _holder = createVehicle ["weaponholder", getPosATL player, [], 0, "CAN_COLLIDE" ];
  6. 0 cutText["Your weapons have been removed.","PLAIN"];
  7.  
  8. if (count _weapons > 0) then
  9. {
  10. {player removeWeapon _x} forEach _weapons};
  11.  
  12. if (count _mags > 0) then
  13. {
  14. {player removeMagazine _x} forEach _mags};
  15.  
  16. {
  17. _holder addWeaponCargoGlobal [_x,1];
  18. }forEach _weapons;
  19. {
  20. _holder addMagazineCargoGlobal [_x,1];
  21. }forEach _mags;
  22.  
  23. if ((count(HolsterArr select 0) >= 1)) then {
  24. private ["_i","_c","_class","_amount","_a79tmp"];
  25. _a79tmp = + (HolsterArr);
  26. for [{_i = 0}, {_i < count(_a79tmp select 0)}, {_i = _i + 1}] do {
  27. _class = (_a79tmp select 0) select _i;
  28. _holder addWeaponCargoGlobal [_class,1];
  29. HolsterArr = [];
  30. RL_PrimHWep = "empty";
  31. RL_PrimHolstered = false;
  32. RL_PH = false;
  33. };
  34. };
  35.  
  36. _Pistol = (saveWeaponPistol select 0);
  37. _holder addWeaponCargoGlobal [_Pistol,1];
  38. player removeAction unholsterPistol;
  39. saveWeaponPistol set [1,false];
  40. holsterPistol = player addAction ["Holster Pistol","pistolControl.sqf",[true]];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement