Restart Timer on Debug

What's the easiest/cleanest way of adding a restart time to my debug monitor. I saw something along the lines of:
Code:
[180-(ServerTime/60)]
Or something similiar. Wasn't sure if that would work on a debug though.
 
Your going to need to have a block of code like this in your debug monitor

Code:
<t size='1'font='Bitstream'color='#FF8000'>Sotfdayz Server:</t><t size='1'font='Bitstream'color='#00FF00'>  216.172.106.90:2332</t><br/>
            <t size='1'font='Bitstream'color='#FF8000'></t><t size='1'font='Bitstream'color='#FF0000'>TS3:    64.31.13.66:4000</t><br/>
            <t size='1' color='#FFFFFF'>Blood: </t><t size='1' color='#ff0000'>%1</t><br/>
            <t size='1' color='#FFFFFF'>Zombie Kills: </t><t size='1' color='#FFFFFF'>%2</t><br/>
            <t size='1' color='#FFFFFF'>Survivor Kills:</ </t><t size='1' color='#FFFFFF'>%3</t><br/>
            <t size='1' color='#FFFFFF'>Bandits Killed: </t><t size='1' color='#FFFFFF'>%4</t><br/>
            <t size='1' color='#FFFFFF'>Humanity: </t><t size='1' color='#FFFFFF'>%5</t><br/>
            <t size='1' color='#FFFFFF'>Client FPS: </t><t size='1' color='#F2FF00'>%6</t><br/>",
            (_blood),  //%1
            (_killsZ), //%2
            (_killsS), //%3
            (_killsB),  //%4
            (_humanity),  //%5
            (_clientfps), //%6

What your going to do now is add 2 more lines in the above code, okay alright below this line - remember to remove the ", at the end of this this line
Code:
 <t size='1' color='#FFFFFF'>Client FPS: </t><t size='1' color='#F2FF00'>%6</t><br/>",
Add right below that
Code:
<t size='1.10'font='Bitstream'color='#FF8000'>Auto Server Restart In: </t><t size='1'font='Bitstream'color='#00FF00'> %21 Minutes</t><br/>",
Always have the ", on your last block of code or your debug will simply not work. Okay now for the next block of code.
Code:
 (_blood),  //%1
(_killsZ), //%2
(_killsS), //%3
(_killsB),  //%4
(_humanity),  //%5
(_clientfps), //%6
Add this right below _clientfps
Code:
(360-(round(serverTime / 60))),
This is now //%7 so everything should look like this
Code:
<t size='1'font='Bitstream'color='#FF8000'>Sotfdayz Server:</t><t size='1'font='Bitstream'color='#00FF00'>  216.172.106.90:2332</t><br/>
            <t size='1'font='Bitstream'color='#FF8000'></t><t size='1'font='Bitstream'color='#FF0000'>TS3:    64.31.13.66:4000</t><br/>
            <t size='1' color='#FFFFFF'>Blood: </t><t size='1' color='#ff0000'>%1</t><br/>
            <t size='1' color='#FFFFFF'>Zombie Kills: </t><t size='1' color='#FFFFFF'>%2</t><br/>
            <t size='1' color='#FFFFFF'>Survivor Kills:</ </t><t size='1' color='#FFFFFF'>%3</t><br/>
            <t size='1' color='#FFFFFF'>Bandits Killed: </t><t size='1' color='#FFFFFF'>%4</t><br/>
            <t size='1' color='#FFFFFF'>Humanity: </t><t size='1' color='#FFFFFF'>%5</t><br/>
            <t size='1' color='#FFFFFF'>Client FPS: </t><t size='1' color='#F2FF00'>%6</t><br/>
            <t size='1.10'font='Bitstream'color='#FF8000'>Auto Server Restart In: </t><t size='1'font='Bitstream'color='#00FF00'> %21 Minutes</t><br/>",
            (_blood),  //%1
            (_killsZ), //%2
            (_killsS), //%3
            (_killsB),  //%4
            (_humanity),  //%5
            (_clientfps), //%6
            (360-(round(serverTime / 60))), //%7 - 360 being seconds & 60 being 60 minutes a hour
 
Hello,
I am using this as my debug monitor:

Code:
if (isNil "custom_monitor") then {custom_monitor = true;} else {custom_monitor = !custom_monitor;};
 
while {custom_monitor} do
{
    _kills =        player getVariable["zombieKills",0];
    _killsH =        player getVariable["humanKills",0];
    _killsB =        player getVariable["banditKills",0];
    _humanity =        player getVariable["humanity",0];
    _headShots =    player getVariable["headShots",0];
    hintSilent parseText format ["
    <t size='1.20'font='Bitstream'align='center'color='#c9c9c8'>%1</t><br/>
    <t size='1'font='Bitstream'align='center'color='#313131'></t>------------------<br/>
    <t size='1'font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'>%2</t><br/>
    <t size='1'font='Bitstream'align='left'>Humanity:</t><t size='1'font='Bitstream'align='right'>%3</t><br/>
    <t size='1'font='Bitstream'align='left'>Murders:</t><t size='1'font='Bitstream'align='right'>%4</t><br/>
    <t size='1'font='Bitstream'align='left'>Bandits Killed:</t><t size='1'font='Bitstream'align='right'>%5</t><br/>
    <t size='1'font='Bitstream'align='left'>Zombies Killed:</t><t size='1'font='Bitstream'align='right'>%6</t><br/>
    <t size='1'font='Bitstream'align='left'>Headshots:</t><t size='1'font='Bitstream'align='right'>%7</t><br/>
    <t size='1'font='Bitstream'align='center'color='#313131'></t>------------------<br/>
    <t size='1.20' font='Bitstream'align='center'color='#8f8f8f'>TS3: XXXXXXXXXXXX</t><br/><br/>
 
    ",dayz_playerName,r_player_blood,round _humanity,_killsH,_killsB,_kills,_headShots];
sleep 1;
};

Would your solution be fit for my debug monitor as well? Just asking before I break something.

Thanks in advance

EDIT: Restarts being every 2h .
 
This will do for 2 hour restart:

Code:
while {custom_monitor} do
{
    _kills =        player getVariable["zombieKills",0];
    _killsH =        player getVariable["humanKills",0];
    _killsB =        player getVariable["banditKills",0];
    _humanity =        player getVariable["humanity",0];
    _headShots =    player getVariable["headShots",0];
    _tL = ((7200 - time) / 60);
    _tL = round(_tL);
    hintSilent parseText format ["
    <t size='1.20'font='Bitstream'align='center'color='#c9c9c8'>%1</t><br/>
    <t size='1'font='Bitstream'align='center'color='#313131'></t>------------------<br/>
    <t size='1'font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'>%2</t><br/>
    <t size='1'font='Bitstream'align='left'>Humanity:</t><t size='1'font='Bitstream'align='right'>%3</t><br/>
    <t size='1'font='Bitstream'align='left'>Murders:</t><t size='1'font='Bitstream'align='right'>%4</t><br/>
    <t size='1'font='Bitstream'align='left'>Bandits Killed:</t><t size='1'font='Bitstream'align='right'>%5</t><br/>
    <t size='1'font='Bitstream'align='left'>Zombies Killed:</t><t size='1'font='Bitstream'align='right'>%6</t><br/>
    <t size='1'font='Bitstream'align='left'>Headshots:</t><t size='1'font='Bitstream'align='right'>%7</t><br/>
    <t size='1'font='Bitstream'align='left'>Restart:</t><t size='1'font='Bitstream'align='right'>%8min</t><br/>
    <t size='1'font='Bitstream'align='center'color='#313131'></t>------------------<br/>
    <t size='1.20' font='Bitstream'align='center'color='#8f8f8f'>TS3: XXXXXXXXXXXX</t><br/><br/>
 
    ",dayz_playerName,r_player_blood,round _humanity,_killsH,_killsB,_kills,_headShots,(_tL)];
sleep 1;
};

PS.
I didnt make this. All credits should got to CEN.
 
Back
Top