player2_dz

Untitled

Apr 13th, 2015
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1.     _p2plyr = player;
  2.     _p2ne = (position _p2plyr) nearEntities 30000;
  3.     _p2totalPlayers = 0;
  4.     _p2within3000 = -1;
  5.     _countedVehs = [];
  6.  
  7.     {
  8.         private["_e"];
  9.         _e = _x;
  10.  
  11.         if (isPlayer _e) then {
  12.             if (!(_e in _countedVehs)) then {
  13.                 _p2totalPlayers = ({alive _x} count (crew _e));
  14.                 if ((((position _p2plyr) distance (position _e)) < 3000)) then {
  15.                     _p2within3000 = _p2within3000 + ({alive _x} count (crew _e));
  16.                 };
  17.             };
  18.         };
  19.        
  20.     } forEach _p2ne;
Advertisement
Add Comment
Please, Sign In to add comment