Guest User

Untitled

a guest
Dec 16th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. if (!(local player)) exitWith {};
  2.  
  3. _weps = [player] call ACE_fnc_RuckWeaponsList;
  4. _count = if (player hasWeapon "EvMoney") then {1} else {0};
  5.  
  6. {
  7.     _type = _x select 0;
  8.     if (_type == "EvMoney") exitWith
  9.     {
  10.         _count = (_x select 1);
  11.         _weps = _weps - [_x];
  12.         player setvariable ["ACE_RuckWepContents", _weps];
  13.     };
  14. } forEach _weps;
  15.  
  16. if (_count > 0) then
  17. {
  18.     ["CUL_money", [_count]] call CBA_fnc_globalEvent;
  19. };
Add Comment
Please, Sign In to add comment