Advertisement
corbuhh

dzgm change

Oct 19th, 2014
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. while {fnc_adminESPicons == 1} do
  2. {
  3. {
  4. _pid = getPlayerUID _x;
  5. if (_pid != "") then
  6. {
  7. _plist = units group _x;
  8. _unitCount = count _plist;
  9. if (_unitCount == 1) then {
  10. _name = name _x;
  11. _veh = vehicle _x;
  12. _type = typeOf _veh;
  13.  
  14. if (_name == "") then {_name = _type;};
  15. _pos = (positionCameraToWorld [0,0,0]);
  16. _posU = getPos _veh;
  17. _dist = round(_pos distance _posU);
  18.  
  19. if (_x == _veh) then
  20. {
  21. _show = format ["%1 (%2m)",_name,_dist];
  22. _clr = _color_bluefor_plr;
  23. }
  24. else
  25. {
  26. _crewnames = [];
  27. {
  28. _crewnames = _crewnames + [name _x];
  29. } forEach crew _veh;
  30.  
  31. _show = format ["%1 (%2m) - %3",_crewnames,_dist,_type];
  32. _clr = _color_orange;
  33. };
  34.  
  35. if (getPlayerUID player in PV_SuperLevel_List) then
  36. {
  37. if (_pid in (PV_LowLevel_List+PV_NormalLevel_List+PV_SuperLevel_List)) then {_clr = _color_list};
  38. }
  39. else
  40. {
  41. if (_pid in (PV_LowLevel_List+PV_NormalLevel_List)) then {_clr = _color_list};
  42. };
  43. _grp = group _x;
  44. clearGroupIcons _grp;
  45. _grp addGroupIcon ["x_art"];
  46. _grp setGroupIconParams [_clr, _show, 1, true];
  47. } else {
  48. _grp = group _x;
  49. _leader = leader _grp;
  50. _memberNames = [];
  51. {_memberNames = _memberNames + [name _x];} count _plist;
  52. _memberNames = _memberNames - [name _leader];
  53. _show = format ["%1 Leader of group: %2",(name _leader),_memberNames];
  54. _clr = _color_orange;
  55.  
  56. clearGroupIcons _grp;
  57. _grp addGroupIcon ["x_art"];
  58. _grp setGroupIconParams [_clr, _show, 1, true];
  59. };
  60. };
  61. } forEach playableUnits;
  62. uiSleep 1;
  63. };
  64. {clearGroupIcons group _x;} forEach playableUnits;
  65. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement