Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _closeprox = _tvMid tvAdd [[],"--Close proximity (500m)--"];
- _onfoot = _tvMid tvAdd [[],"--On foot--"];
- _inveh = _tvMid tvAdd [[],"--In vehicle--"];
- _dead = _tvMid tvAdd [[],"--Dead--"];
- _tvMid tvSetColor [[_closeprox], [1,0,0,1]];
- _tvMid tvSetColor [[_onfoot], [1,0,0,1]];
- _tvMid tvSetColor [[_inveh], [1,0,0,1]];
- _tvMid tvSetColor [[_dead], [1,0,0,1]];
- {
- _name = name _x;
- _dist = player distance _x;
- if (vehicle _x == _x) then {
- _playerOnFoot = 1;
- } else {
- _playerOnFoot = 0;
- };
- if (alive player) then {
- _playerIsAlive = 1;
- } else {
- _playerIsAlive = 0;
- };
- if (_dist < 500) then {
- _tvMid tvAdd [[_closeprox],_name];
- };
- if (_playerOnFoot == 1) then {
- _tvMid tvAdd [[_onFoot],_name];
- } else {
- _tvMid tvAdd [[_inveh],_name];
- };
- if (_playerIsAlive == 0) then {
- _tvMid tvAdd [[_dead],_name];
- };
- } forEach allUnits;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement