Advertisement
BenBlackFyre

Arma 3 Map ESP

Mar 6th, 2018
1,066
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   oiuyabwd = [];
  2.                      heijticjeh = [];
  3.                      if (isnil "oiahbwd0oawd") then {
  4.                          oiahbwd0oawd = 0;
  5.                      };
  6.                      if (oiahbwd0oawd == 0) then {
  7.                          oiahbwd0oawd = 1;
  8.                          hint "Players locations on the Map have been added.";
  9.                      } else {
  10.                          oiahbwd0oawd = 0;
  11.                          hint "Players locations on the Map have been removed.";
  12.                      };
  13.                      while {
  14.                          oiahbwd0oawd == 1
  15.                      }
  16.                      do {
  17.                          {
  18.                              if ((vehicle _x isKindOf "LandVehicle") || (vehicle _x isKindOf "Air") || (vehicle _x isKindOf "Ship")) then {
  19.                                  if (count(crew vehicle _x) > 0) then {
  20.                                      {
  21.                                          if (!(_x in oiuyabwd) and(alive _x) and(getPlayerUID _x != "")) then {
  22.                                              private["_pos", "_l44", "_l45"];
  23.                                              _l45 = vehicle _x;
  24.                                              _pos = visiblePosition _x;
  25.                                              _l44 = createMarkerLocal[format["CRW%1%2", _pos select 0, _pos select 1], [(_pos select 0) + 20, _pos select 1, 0]];
  26.                                              _l8 = (gettext(configFile >> 'CfgVehicles' >> (typeof vehicle _x) >> 'displayName'));
  27.                                              _l44 setMarkerTextLocal format['%1---%2---%3m', name _x, _l8, round(_x distance player)];
  28.                                              _l44 setMarkerTypeLocal "mil_dot";
  29.                                              if ((side _x == side player) and(side _x != resistance)) then {
  30.                                                  _l44 setMarkerColorLocal "ColorBlue";
  31.                                              } else {
  32.                                                  _l44 setMarkerColorLocal "ColorRed";
  33.                                              };
  34.                                              _l44 setMarkerSizeLocal[1, 1];
  35.                                              oiuyabwd set[count oiuyabwd, _x];
  36.                                              [_x, _l44, _l45] spawn {
  37.                                                  private["_l46", "_l47", "_l48"];
  38.                                                  _l46 = _this select 0;
  39.                                                  _l47 = _this select 1;
  40.                                                  while {
  41.                                                      (oiahbwd0oawd == 1) and(alive _l46) and(vehicle _l46 != _l46) and(getPlayerUID _l46 != "")
  42.                                                  }
  43.                                                  do {
  44.                                                      _l48 = ((crew vehicle _l46) find _l46);
  45.                                                      _l47 setMarkerPosLocal([(visiblePosition _l46 select 0) + 20, (visiblePosition _l46 select 1) - (25 + _l48 * 20), 0]);
  46.                                                      sleep 0.01;
  47.                                                  };
  48.                                                  deleteMarkerLocal _l47;
  49.                                                  if (_l46 in oiuyabwd) then {
  50.                                                      oiuyabwd set[(oiuyabwd find _l46), -1];
  51.                                                      oiuyabwd = oiuyabwd - [-1];
  52.                                                  };
  53.                                                  true;
  54.                                              };
  55.                                          };
  56.                                      }
  57.                                      forEach crew vehicle _x;
  58.                                  };
  59.                              } else {
  60.                                  if (!(_x in heijticjeh) and(vehicle _x == _x) and(getPlayerUID _x != "")) then {
  61.                                      private["_pos", "_l44"];
  62.                                      _pos = visiblePosition _x;
  63.                                      _l44 = createMarkerLocal[format["PLR%1%2", _pos select 0, _pos select 1], [(_pos select 0) + 20, _pos select 1, 0]];
  64.                                      _l44 setMarkerTypeLocal "mil_dot";
  65.                                      _l44 setMarkerSizeLocal[1, 1];
  66.                                      if ((side _x == side player) and(side _x != resistance)) then {
  67.                                          _l44 setMarkerColorLocal "ColorRed";
  68.                                      } else {
  69.                                          _l44 setMarkerColorLocal "ColorRedAlpha";
  70.                                      };
  71.                                      _l44 setMarkerTextLocal format["%1---%2", name _x, round(_x distance player)];
  72.                                      if (_x == player) then {
  73.                                          _l44 setMarkerColorLocal "ColorGreen";
  74.                                      };
  75.                                      heijticjeh set[count heijticjeh, _x];
  76.                                      [_x, _l44] spawn {
  77.                                          private["_l46", "_l47"];
  78.                                          _l46 = _this select 0;
  79.                                          _l47 = _this select 1;
  80.                                          while {
  81.                                              (oiahbwd0oawd == 1) and(alive _l46) and(vehicle _l46 == _l46) and(getPlayerUID _l46 != "")
  82.                                          }
  83.                                          do {
  84.                                              _l47 setMarkerPosLocal([visiblePosition _l46 select 0, visiblePosition _l46 select 1, 0]);
  85.                                              sleep 0.01;
  86.                                          };
  87.                                          deleteMarkerLocal _l47;
  88.                                          if (_l46 in heijticjeh) then {
  89.                                              heijticjeh set[(heijticjeh find _l46), -1];
  90.                                              heijticjeh = heijticjeh - [-1];
  91.                                          };
  92.                                          true;
  93.                                      };
  94.                                  };
  95.                              };
  96.                          }
  97.                          forEach playableUnits;
  98.                          sleep 0.3;
  99.                      }; {
  100.                          _l44 = str _x;
  101.                          deleteMarkerLocal _l44;
  102.                      }
  103.                  forEach playableUnits;
  104.                  
  105.             if (isnil "piajbwdawd" ) then {piajbwdawd=0};
  106.  
  107.             if (piajbwdawd==0) then
  108.             {
  109.                 hint "Adding Vehicle Markers";
  110.                 piajbwdawd=1;
  111.                     VL = vehicles;
  112.                     j = count VL;
  113.                     i = 0;
  114.                 boiawd = true;
  115.  
  116.             while {boiawd} do
  117.                 {
  118.                     VL = vehicles;
  119.                     j = count VL;
  120.                     i = 0;
  121.  
  122.                         for "i" from 0 to j do
  123.                     {
  124.                         veh = VL select i;
  125.                             deleteMarkerLocal ("VM"+ (str i));
  126.                         mk2 = "VM" + (str i);
  127.                         mk2 = createMarkerLocal [mk2,getPos veh];
  128.                         mk2 setMarkerTypeLocal "waypoint";
  129.                         mk2 setMarkerPosLocal (getPos veh);
  130.                         mk2 setMarkerColorLocal("ColorGreen");
  131.                         mk2 setMarkerTextLocal format ["%1",typeOf veh];
  132.                     };
  133.                     sleep 0.5;
  134.                 };
  135.             }
  136.             else
  137.             {
  138.                 hint "VM Stopping";
  139.                     i = 0;
  140.                     boiawd = false;
  141.                     piajbwdawd=0;
  142.  
  143.                 for "i" from 0 to j do
  144.                 {
  145.                 veh = VL select i;
  146.                 deleteMarkerLocal ("VM"+ (str i));
  147.                 };
  148.             };
  149.             hint "Vehicle and Player markers added.";
  150.         };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement