Advertisement
Guest User

playerHud.sqf

a guest
Oct 31st, 2014
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. disableSerialization;
  2.  
  3. // player setVariable["AsReMixhud", true];//Variable Show/Hide HUD Support for control player hud
  4.  
  5. AsReMixhud_Control = true; // player getVariable["AsReMixhud",true];
  6.  
  7.  
  8. while {true} do
  9. {
  10. 1000 cutRsc ["AsReMixhud","PLAIN"];
  11. _wpui = uiNameSpace getVariable "AsReMixhud";
  12. _vitals = _wpui displayCtrl 4900;
  13.  
  14. _thePlayer = player;
  15.  
  16. AsReMixhud_zombieKills = _thePlayer getVariable["zombieKills",0];
  17. AsReMixhud_headshots = _thePlayer getVariable["headShots",0];
  18. AsReMixhud_killsH = _thePlayer getVariable["humanKills",0];
  19. _cashMoney = _thePlayer getVariable["cashMoney",0];
  20. _bankMoney = _thePlayer getVariable["bankMoney",0];
  21. AsReMixhud_killsB = _thePlayer getVariable["banditKills",0];
  22. AsReMixhud_humanity = _thePlayer getVariable["humanity",0];
  23. AsReMixhud_zombies = "";
  24. AsReMixhud_zombiesAlive = "";
  25. AsReMixhud_blood = "";
  26. AsReMixhud_pid = "";
  27. AsReMixhud_puid = "";
  28. AsReMixhud_hmnicon = "";
  29. AsReMixhud_svrname = "servertitle";
  30.  
  31. _stime = 0;
  32. if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;};
  33. _hours = (_stime/60/60);
  34. _hours = toArray (str _hours);
  35. _hours resize 1;
  36. _hours = toString _hours;
  37. _hours = compile _hours;
  38. _hours = call _hours;
  39. _minutes = floor(_stime/60);
  40. _minutes2 = ((_minutes - (_hours*60)) min 60) max 0;if (_minutes2 < 10) then {_minutes2 = format ['0%1',_minutes2];};
  41.  
  42. _vitals ctrlSetStructuredText parseText format ["
  43. <t size='0.9'> %2 %5 </t><img size='0.8' align='right' image='custom\playerhud\icons\As_humanity.paa'/> <br/>
  44. <t size='0.9'> %3 </t><img size='0.8' align='right' image='custom\playerhud\icons\dollars.paa'/> <br/>
  45. <t size='0.9'> %13 </t><img size='0.8' align='right' image='custom\playerhud\icons\equip_safe_CA.paa'/> <br/>
  46. <t size='0.9'> %10 </t><img size='0.8' align='right' image='custom\playerhud\icons\As_killh.paa'/> <br/>
  47. <t size='0.9'> %9 </t><img size='0.8' align='right' image='custom\playerhud\icons\As_killb.paa'/> <br/>
  48. <t size='0.9'> %4 </t><img size='0.8' align='right' image='custom\playerhud\icons\As_zkill.paa'/> <br/>
  49. <t size='0.8' align='right'>%11h %12min UPTIME</t><br/>",
  50. AsReMixhud_blood, //1
  51. AsReMixhud_humanity,//2
  52. [_cashMoney] call BIS_fnc_numberText,//3
  53. AsReMixhud_zombiekills,//4
  54. AsReMixhud_hmnicon,//5
  55. name player,//6
  56. AsReMixhud_zombiesAlive,//7
  57. AsReMixhud_zombies,//8
  58. AsReMixhud_killsB,//9
  59. AsReMixhud_killsH,//10
  60. _hours,//11
  61. _minutes2,//12
  62. [_bankMoney] call BIS_fnc_numberText,//13
  63. ];
  64. _vitals ctrlCommit 0;
  65.  
  66. sleep 2;
  67. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement