Jump to content

Recommended Posts

This is what i have right now, But if i try to remove the otherlines my server crashes.

 

 

disableSerialization;

 
AsReMixhud_Control = true;
 
while {true} do
{
 
1000 cutRsc ["AsReMixhud","PLAIN"];
 
_wpui = uiNameSpace getVariable "AsReMixhud";
    _vitals = _wpui displayCtrl 4900;
_Player = player;
 
ZombieKills = _Player getVariable["zombieKills",0];
Money        = _Player getVariable["cashMoney",0];
Hero_Kills = _Player getVariable["humanKills",0];
    Bank_Balance = _Player getVariable["bankMoney",0];
Bandit_Kills = _Player getVariable["banditKills",0];
Humanity    = _Player getVariable["humanity",0];
Blood        = _Player getVariable["USEC_BloodQty",12000];
Fps        = (round diag_fps);
 
_stime = 0;
if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;};
_hours = (_stime/60/60);
_hours = toArray (str _hours);
_hours resize 1;
_hours = toString _hours;
_hours = compile _hours;
_hours = call  _hours;
_minutes = floor(_stime/60);
_minutes2 = ((_minutes - (_hours*60)) min 60) max 0;if (_minutes2 < 10) then {_minutes2 = format ['0%1',_minutes2];};
 
if(Humanity >= 5000) then { Humanity_Icon = "<img size='0.9' image='Scripts\Player_Hud\icons\HeroHumanity.paa'/>"; };
if((Humanity >= 200) && (Humanity <= 4999)) then { Humanity_Icon = "<img size='0.9' image='Scripts\Player_Hud\icons\CivHumanity.paa'/>"; };
if(Humanity <= 199) then { Humanity_Icon = "<img size='0.9' image='Scripts\Player_Hud\icons\BanditHumanity.paa'/>"; };
 
_vitals ctrlSetStructuredText parseText format 
["
<t size='0.8' align='right'>~~~~~ Stats ~~~~~</t><br/>
<t size='0.9'> %1 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Health.paa'/><br/> 
<t size='0.9'> %2 %3 </t><br/> 
<t size='0.9'> %4 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Money.paa'/><br/>
<t size='0.9'> %5 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Bank.paa'/><br/>
<t size='0.9'> %6 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\HeroKills.paa'/><br/> 
<t size='0.9'> %7 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\BanditKills.paa'/><br/>
<t size='0.9'> %8 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\ZombieKills.paa'/><br/>
<t size='0.9'> %9h %10min </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Uptime.paa'/><br/>
<t size='0.9'> %11 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Fps.paa'/><br/>
<t size='0.8' align='right'>~~~~~~~~~~~~~~~~~</t><br/>",
Blood,
[Humanity] call BIS_fnc_numberText,
Humanity_Icon,
[Money] call BIS_fnc_numberText,
[bank_Balance] call BIS_fnc_numberText,
Hero_Kills,
Bandit_Kills,
Zombiekills,
_hours,
_minutes2,
Fps
];
_vitals ctrlCommit 0;
    sleep 1.5;
};
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...