Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- admin_esp_eh = addMissionEventHandler ['Draw3D', {
- {
- if (!isNull _x) then {
- if (vehicle _x != cameraOn) then {
- _name = (name _x);
- _pos = (_x modelToWorld ((_x selectionPosition 'neck') vectorAdd [0,0,0.25]));
- if ((cameraOn distance _x) <= 1500) then {
- _color = [0,0.27,0.84,1];
- if (side _x == opfor) then {
- _color = [0.9,0.11,0,1];
- };
- if (side _x == civilian) then {
- _color = [0.4, 0, 0.4, 1];
- };
- if (side _x == independent) then {
- _color = [0, 0.8, 0.2, 1];
- };
- drawIcon3D ['', _color, _pos, 0, 0, 0, (format ['%1 (%2m)', _name, (round(cameraOn distance _x))]), 1.5, 0.03, 'PuristaLight','center',true];
- };
- };
- };
- } foreach allPlayers;
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement