predator1981
New Member
Please help, I cant get my Debug monitor to toggle on/off.
Anyone have any ideas?
Anyone have any ideas?
Code:
waitUntil {sleep 1;(!isNil "PVDZ_plr_LoginRecord")};
waitUntil {sleep 1;(!isNil 'dayz_Totalzedscheck') || (!isNil 'dayz_locationCheck') || (!isNil 'dayzplayerlogin') || (!isNil 'dayz_animalcheck')};
showChat = true;
if (isNil "custom_monitor") then {custom_monitor = true;} else {custom_monitor = !custom_monitor;};
fnc_debug = {
custom_monitor = true;
while {custom_monitor} do
{
_logo = "images\SOSlogo.paa";
_nearestCity = nearestLocations [getPos player, ["NameCityCapital","NameCity","NameVillage","NameLocal"],650];
_textCity = "Wilderness";
if (count _nearestCity > 0) then {_textCity = text (_nearestCity select 0)};
_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
["
<img size='6' image='%9'/><br/>
<t size='1.5'font='Bitstream'align='center'color='#DDDDDD'>----------------------</t><br/>
<t size='1'font='Bitstream'align='left'>Location:</t><t size='1' font='Bitstream'align='right'color='#FF0000'>%10</t><br/>
<t size='1'font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#FF0000'>%1</t><br/>
<t size='1'font='Bitstream'align='left'>Humanity:</t><t size='1'font='Bitstream'align='right'color='#FF0000'>%2</t><br/>
<t size='1'font='Bitstream'align='left'>Murders:</t><t size='1'font='Bitstream'align='right'color='#FF0000'>%3</t><br/>
<t size='1'font='Bitstream'align='left'>Bandits Killed:</t><t size='1'font='Bitstream'align='right'color='#FF0000'>%4</t><br/>
<t size='1'font='Bitstream'align='left'>Zombies Killed:</t><t size='1'font='Bitstream'align='right'color='#FF0000'>%5</t><br/>
<t size='1'font='Bitstream'align='left'>Headshots:</t><t size='1'font='Bitstream'align='right'color='#FF0000'>%6</t><br/>
<t size='1'font='Bitstream'align='left'>Survived:</t><t size='1'font='Bitstream'align='right'color='#FF0000'>%7 Dayz</t>
<t size='1.5'font='Bitstream'align='center'color='#DDDDDD'>----------------------</t><br/>
<t size='1'font='Bitstream'align='center'color='#FF0000'>Restart in %8 minutes!</t>
<t size='1.5'font='Bitstream'align='center'color='#DDDDDD'>----------------------</t><br/>
<t size='0.85' font='Bitstream' align='center'>Use F5 to Toggle</t><br/>
",r_player_blood,round _humanity,_killsH,_killsB,_kills,_headShots,(dayz_Survived),(239-(round(serverTime/60))),_logo,_textCity
];
sleep 5;
};
};
[] spawn fnc_debug;