Uptime for debug

ShadowFaith

New Member
Currently I am trying to get uptime on my debug monitor but I honestly have no idea what I'm doing....
What I currently have:
fnc_debug = {
private ["_kills","_killsH","_killsB","_humanity","_headShots","_vehname","_crew","_crew2","_crew3","_crew4","_crew5","_crew6","_crew7","_crew8","_crew9"];
debugMonitor = true;
while {debugMonitor} 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' font='Bitstream' align='center' color='#FFFFFF'>Teamspeak 99.8.178.195</t><br/><br/>
<t size='1' font='Bitstream' align='left' color='#EEC900'>Blood Left:</t><t size='1' font='Bitstream' align='right' color='#FFFFFF'>%2</t><br/>
<t size='1' font='Bitstream' align='left' color='#EEC900'>Humanity:</t><t size='1'font='Bitstream' align='right' color='#FFFFFF'>%3</t><br/>
<t size='1' font='Bitstream' align='left' color='#EEC900'>Murders:</t><t size='1'font='Bitstream' align='right' color='#FFFFFF'>%4</t><br/>
<t size='1' font='Bitstream' align='left' color='#EEC900'>Bandits Killed:</t><t size='1'font='Bitstream' align='right' color='#FFFFFF'>%5</t><br/>
<t size='1' font='Bitstream' align='left' color='#EEC900'>Zombies Killed:</t><t size='1'font='Bitstream' align='right' color='#FFFFFF'>%6</t><br/>
<t size='1' font='Bitstream' align='left' color='#EEC900'>Headshots:</t><t size='1'font='Bitstream' align='right' color='#FFFFFF'>%7</t><br/>
<t size='1' font='Bitstream' align='left' color='#EEC900'>Fps:</t><t size='1'font='Bitstream' align='right' color='#FFFFFF'>%8</t><br/>
<t size='1' font='Bitstream' align='center' color='#0080C0'>http://vcreloaded.enjin.com/</t><br/>",
dayz_skilllevel,
r_player_blood,
round _humanity,
_killsH,
_killsB,
_kills,
_headShots,
round diag_FPS
];
sleep 1;
};
};

[] spawn fnc_debug;
 
in _time = (round(180

180 = time in minutes that the server will be running
180/60(1 hour) = 3 hours

this is my debug to help you
Code:
while {debugMonitor} do
{
    _time = (round(180-(serverTime)/60));
    _hours = (floor(_time/60));
    _minutes = (_time - (_hours * 60));
   
    switch(_minutes) do
    {
        case 9: {_minutes = "09"};
        case 8: {_minutes = "08"};
        case 7: {_minutes = "07"};
        case 6: {_minutes = "06"};
        case 5: {_minutes = "05"};
        case 4: {_minutes = "04"};
        case 3: {_minutes = "03"};
        case 2: {_minutes = "02"};
        case 1: {_minutes = "01"};
        case 0: {_minutes = "00"};
    };
   
    // You can delete the server website here line (entire line) if you want
    // You can also delete the entire TeamSpeak IP line if you want
    hintSilent parseText format ["
        <t size='1.25' font='Bitstream' align='center' color='#5882FA'>Bigode Brasileiro</t><br/>
        <t size='0.95' font='Bitstream' align='left' color='#FFBF00'></t><t size='0.95 'font='Bitstream' align='right'></t><br/>
        <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Jogadores Online: </t><t size='0.95 'font='Bitstream' align='right'>%1</t><br/>
        <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Herois Mortos: </t><t size='0.95' font='Bitstream' align='right'>%3</t><br/>
        <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Bandidos Mortos: </t><t size='0.95' font='Bitstream' align='right'>%4</t><br/>
        <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Zombies Mortos: </t><t size='0.95' font='Bitstream' align='right'>%2</t><br/>
        <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Humanidade: </t><t size='0.95' font='Bitstream' align='right'>%6</t><br/>
        <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Sangue: </t><t size='0.95' font='Bitstream' align='right'>%5</t><br/>
        <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>FPS: </t><t size='0.95' font='Bitstream' align='right'>%7</t><br/>
        <t size='0.95' font='Bitstream' align='left' color='#FFBF00'></t><t size='0.95 'font='Bitstream' align='right'></t><br/>
        <t size='1.15' font='Bitstream'align='center' color='#09C400'>Server reinicia em %8:%9</t><br/><br/>
        <t size='1.15' font='Bitstream'align='center' color='#FFF600'>Aperte INSERT para esconder</t><br/>",
           
        (count playableUnits),
        (player getVariable['zombieKills', 0]),
        (player getVariable['humanKills', 0]),
        (player getVariable['banditKills', 0]),
        (player getVariable['USEC_BloodQty', r_player_blood]),
        (player getVariable['humanity', 0]),
        (round diag_fps),
        _hours,
        _minutes
    ];
   
    //Don't modify below this line
    sleep 1;
};
 
Back
Top