Advertisement
aeroson

one machine execute, all players loose all their radios

Dec 13th, 2016
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1.  
  2. [{
  3.  
  4. {
  5. private _classname = _x;
  6. private _isClassnameRadio = false;
  7. if(!isNil{TFAR_fnc_isPrototypeRadio}) then {
  8. _isClassnameRadio = _classname call TFAR_fnc_isPrototypeRadio;
  9. };
  10.  
  11. {
  12. if(_x == _classname || {(_isClassnameRadio && {[_x, _classname] call TFAR_fnc_isSameRadio})}) then {
  13. player unassignItem _x;
  14. player removeItem _x;
  15. }
  16. } forEach assignedItems player;
  17.  
  18. {
  19. if(_x == _classname || {(_isClassnameRadio && {[_x, _classname] call TFAR_fnc_isSameRadio})}) then {
  20. player removeItem _x;
  21. }
  22. } forEach (uniformItems player) + (vestItems player) + (backpackItems player);
  23.  
  24. } forEach ["tf_anprc152","tf_anprc148jem","tf_fadak","tf_rf7800str","tf_anprc154","tf_pnr1000a","tf_microdagr"];
  25.  
  26. },"BIS_fnc_spawn",true] call BIS_fnc_MP;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement