NighthawkXL
New Member
I've been wracking my brain over the last few hours trying to fix our server's debug monitor restart counter...
Here's the code I'm using...
The server restarts every 4 hours starting at 12:00 AM what do I need to set
to get it to sync up? I'm restarting via TCAdmin's scheduler, the server is UTC-8:00 but I don't know what time zone HFBServer's admin panel is using.
Here's the code I'm using...
Code:
waitUntil {alive player};
while {true} do
{
_kills = player getVariable["zombieKills",0];
_killsH = player getVariable["humanKills",0];
_killsB = player getVariable["banditKills",0];
_humanity = player getVariable["humanity",0];
hintSilent parseText format ["
<t size='0.95' font='Bitstream'align='center' color='#D60000'>-={SE}=- DayZ</t><br/>
<t size='1.15' font='Bitstream'align='center' color='#5882FA'>Survived %2 Days</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Players Online: </t><t size='0.95 'font='Bitstream' align='right'>%3</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='0.95' font='Bitstream' align='right'>%4</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='0.95' font='Bitstream' align='right'>%5</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Zombies Killed: </t><t size='0.95' font='Bitstream' align='right'>%6</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Humanity: </t><t size='0.95' font='Bitstream' align='right'>%7</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Blood: </t><t size='0.95' font='Bitstream' align='right'>%8</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>FPS: </t><t size='0.95' font='Bitstream' align='right'>%9</t><br/>
<t size='1.15' font='Bitstream'align='center' color='#5882FA'>Restart in %10 Minutes</t><br/>",
dayz_playerName,(dayz_Survived),(count playableUnits),_killsH,_killsB,_kills,round _humanity,r_player_blood,(round diag_fps),(round(240-(serverTime) / 60))
];
sleep 1;
};
The server restarts every 4 hours starting at 12:00 AM what do I need to set
Code:
(round(240-(serverTime) / 60))