Jump to content

Custom debug monitor


Kisha

Recommended Posts

while {debugMonitor} do
{
 //Modify your debug starting here
	_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        if (player == vehicle player) then
        {
            _pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
        }
            else
        {
            _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        };
hintSilent parseText format ["
	<t size='1,2'	font='Bitstream' align='center' color='#31C300'>Servername</t>
	<img size='4' image='%10'/><br/>
        <t size='1' font='Bitstream' align='left'>Zombies Killed: </t><t color='#31C300' size='1' font='Bitstream' align='right'>%2</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Survivors Killed: </t><t color='#31C300' size='1' font='Bitstream' align='right'>%4</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Bandits Killed: </t><t color='#31C300' size='1' font='Bitstream' align='right'>%5</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>FPS: </t><t color='#31C300' size='1' font='Bitstream' align='right'>%8</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Humanity: </t><t color='#31C300' size='1' font='Bitstream' align='right'>%7</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Blood: </t><t color='#31C300' size='1' font='Bitstream' align='right'>%6</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Restart: </t><t color='#31C300' size='1' font='Bitstream' align='right'>%9 Min</t><br/>
	<t size='1' font='Bitstream' align='center' color='#31C300'>Press INSERT to toggle</t>
	",
        (name player),
        (player getVariable['zombieKills', 0]),
        (player getVariable['headShots', 0]),
        (player getVariable['humanKills', 0]),
        (player getVariable['banditKills', 0]),
        (player getVariable['USEC_BloodQty', r_player_blood]),
        (player getVariable['humanity', 0]),
        (round diag_fps),
        (179-(round(serverTime/60))),
        _pic];
//Don't modify below this line
	sleep 1;
};

 (179-(round(serverTime/60))),  179 = 3 hours

 

debug.sqf

Link to comment
Share on other sites

I've edited my debug by adding to the init.sqf:

if (!isDedicated) then {
    [] execVM "custom_monitor.sqf";
};

When insert is pressed, the old debug pops up for a second until my custom debug refreshes (sleep 1;).
I want to disable the old debug, so I decided to change the compiles.sqf & playerstats.sqf in the dayz_code.pbo then add them to my mission file.

playerstats.sqf isn't being called in the compiles.sqf, what am I doing wrong? The old debug is in game, but it's not being called? O.o

 

CTRL+F doesn't find playerstats.sqf in the compiles.sqf, I'm baffled.

Any help would be appreciated, thank you.

Link to comment
Share on other sites

 

could anyone help me get restart time on my admin debug and fps on my players debug ???

 

admin............................

 

if ((getPlayerUID player) in ["12345678","12345678","12345678","12345678","12345678","12345678","12345678","12345678","12345678","12345678","12345678","12345678","12345678"]) then { 
 
 hintSilent parseText format ["
<t size='0.95' font='Bitstream' align='left' >[%18]</t><t size='0.95' font='Bitstream' align='right'>[FPS: %10]</t><br/>
<t size='0.95' font='Bitstream' align='center' color='#FFBF00'>Survived %7 Days</t><br/>
<t size='0.95' font='Bitstream' align='left' >Players: %8</t><t size='0.95 'font='Bitstream' align='right'>Within 500m: %11</t><br/>
<t size='0.95' font='Bitstream' align='left' >Vehicles:</t><t size='0.95' font='Bitstream'align='right'>%13(%14)</t><br/>
<t size='0.95' font='Bitstream' align='left'>Air: %16</t><t size='0.95' font='Bitstream'align='right'>Sea: %23</t><br/>
<t size='0.95' font='Bitstream' align='left' >All Bikes: %15</t><t size='0.95' font='Bitstream'align='right'>Cars: %17</t><br/>
<t size='0.95' font='Bitstream' align='left' >Zombies (alive/total): </t><t size='0.95' font='Bitstream' align='right'>%20(%19)</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Zombies Killed: </t><t size='0.95' font='Bitstream' align='right'>%2</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Headshots: </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'>Humanity: </t><t size='0.95' font='Bitstream' align='right'>%6</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Blood: </t><t size='0.95' font='Bitstream' align='right'>%9</t><br/>
<t size='0.95' font='Bitstream' align='left' >GPS: %22</t><t size='0.95' font='Bitstream' align='right'>DIR: %24</t><br/>
<t size='0.95'font='Bitstream'align='center' >%21</t><br/>",
(name player),
(player getVariable['zombieKills', 0]), 
(player getVariable['headShots', 0]),
(player getVariable['humanKills', 0]),
(player getVariable['banditKills', 0]),
(player getVariable['humanity', 0]),
(dayz_skilllevel),
(count playableUnits),
r_player_blood,
(round diag_fps),
(({isPlayer _x} count (getPos vehicle player nearEntities [["AllVehicles"], 500]))-1),
viewdistance,
(count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),
count vehicles,
(count([6800, 9200, 0] nearEntities [["Motorcycle"],25000])),
(count([6800, 9200, 0] nearEntities [["Air"],25000])),
(count([6800, 9200, 0] nearEntities [["Car"],25000])),
(gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName')),
(count entities "zZombie_Base"),
({alive _x} count entities "zZombie_Base"),
(getPosASL player),
(mapGridPosition getPos player),
(count([6800, 9200, 0] nearEntities [["Ship"],25000])),
(round(getDir player))
];
 
I tried adding this but I broke it to admin 
 
<t size='1' font='Bitstream' align='center' color='#16DB57'>Restart in %10 minutes</t><br/><br/>
(180-(round(serverTime/60)))
 
player...........................................
 
hintSilent parseText format ["
<t size='1.4' font='Bitstream' align='center' color='#DDDDDD'>Total Calamity DayZ Epoch</t><br/>
<t size='1.15' font='Bitstream' align='center' color='#DDDDDD'>%9 Players Online</t><br/><br/>
<t size='1.25' font='Bitstream' color='#5882FA'>%1</t><br/><br/>
<t size='1.20' font='Bitstream' color='#5882FA'>Survived %7 Days</t><br/><br/>
<t size='1.15' font='Bitstream' align='left'>Zombies Killed: </t><t size='1.15' font='Bitstream' align='right'>%2</t><br/>
<t size='1.15' font='Bitstream' align='left'>Headshots: </t><t size='1.15' font='Bitstream' align='right'>%3</t><br/>
<t size='1.15' font='Bitstream' align='left'>Murders: </t><t size='1.15' font='Bitstream' align='right'>%4</t><br/>
<t size='1.15' font='Bitstream' align='left'>Bandits Killed: </t><t size='1.15' font='Bitstream' align='right'>%5</t><br/><br/>
<t size='1.15' font='Bitstream' align='left'>Humanity: </t><t size='1.15' font='Bitstream' align='right'>%6</t><br/>
<t size='1.15' font='Bitstream' align='left' color='#C70000'>Blood: </t><t size='1.15' font='Bitstream' align='right' color='#C70000'>%8</t><br/><br/>
<t size='1' font='Bitstream' align='center' color='#16DB57'>Restart in %10 minutes</t><br/><br/>
<t size='1' font='Bitstream' align='center' color='#DDDDDD'>NO SIDE VOICE</t><br/>
<t size='1' font='Bitstream' align='center' color='#DDDDDD'>TS roguesgallery.teamspeak3.com password saintpeter</t><br/>",
(name player),
(player getVariable['zombieKills', 0]),
(player getVariable['headShots', 0]),
(player getVariable['humanKills', 0]),
(player getVariable['banditKills', 0]),
(player getVariable['humanity', 0]),
(dayz_Survived),
(r_player_blood),
(count playableUnits),
(180-(round(serverTime/60)))
];};

 

anyone  ???

Link to comment
Share on other sites

<snip>

Enjoy :)

Thanks for this tutorial, I finally got mine working using it. Would I be able to change days survived to minutes/hours survived by changing (dayz_skilllevel) to (dayz_skilllevel)/24 or would I have to define it as a variable, then divide that variable by either 24 or 1440 (hours/minutes)? Sorry, I'm new to doing math in code.

Link to comment
Share on other sites

I've edited my debug by adding to the init.sqf:

if (!isDedicated) then {
    [] execVM "custom_monitor.sqf";
};

When insert is pressed, the old debug pops up for a second until my custom debug refreshes (sleep 1;).

I want to disable the old debug, so I decided to change the compiles.sqf & playerstats.sqf in the dayz_code.pbo then add them to my mission file.

playerstats.sqf isn't being called in the compiles.sqf, what am I doing wrong? The old debug is in game, but it's not being called? O.o

 

CTRL+F doesn't find playerstats.sqf in the compiles.sqf, I'm baffled.

Any help would be appreciated, thank you.

The playerstats.sqf is called in dayz_spaceinterrupt. You need to modify dayz_spaceinterrupt to point to your customized playerstats.sqf

Link to comment
Share on other sites

I used adg's method, and it works great, except for the console spam. Here's the debug menu.

while {debugMonitor} do
{
 //Modify your debug starting here
	_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        if (player == vehicle player) then
        {
            _pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
        }
            else
        {
            _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        };
hintSilent parseText format ["
	<t size='1' font='Bitstream' align='center' color='#669933'>%1</t><br/>
	<img size='4' image='%12'/><br/>
		<t size='1.25' font='Bitstream' align='center' color='#669933'>Whale Gaming</t><br/>
		<t color='#ffffff' size='1' font='Bitstream' align='center'>%10 Players Online</t><br/>
		<t color='#ffffff' size='1' font='Bitstream' align='center'>Survived %9 Hours</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Zombies Killed: </t><t color='#669933' size='1.2' font='Bitstream' align='right'>%2</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Survivors Killed: </t><t color='#669933' size='1' font='Bitstream' align='right'>%4</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Bandits Killed: </t><t color='#669933' size='1' font='Bitstream' align='right'>%5</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>FPS: </t><t color='#669933' size='1' font='Bitstream' align='right'>%8</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Humanity: </t><t color='#5882FA' size='1' font='Bitstream' align='right'>%7</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Blood: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%6</t><br/>
	<t size='1.1' font='Bitstream' align='center' color='#ffffff'>Restart in %11 minutes</t><br/>
	<t size='1.1' font='Bitstream' align='center' color='#669933'>Visit us on Teamspeak: ts.whale.ga</t><br/>
	<t size='1.1' font='Bitstream' align='center' color='#669933'>Join our forums: Whale.ga</t><br/>
	<t size='1' font='Bitstream' align='center' color='#669933'>Press INSERT to toggle</t><br/>",
        (name player), //1 - This is so I know which variable is which line
        (player getVariable['zombieKills', 0]), //2
        (player getVariable['headShots', 0]), //3
        (player getVariable['humanKills', 0]), //4
        (player getVariable['banditKills', 0]), //5
        (player getVariable['USEC_BloodQty', r_player_blood]), //6
        (player getVariable['humanity', 0]), //6
        (round diag_fps), //8
        (round(dayz_Survived/24)), //9
        (count playableUnits), //10
	(240-(round(serverTime/60))), //11
        _pic]; //12
//Don't modify below this line
	sleep 1;
};

And here's the error. (It didn't show up in my rpt, just in the server console, so apologies that it's a screenshot)

Mt3wl4j.jpg

It should be noted that a similar error appeared when the line was simply (dayz_survived) before I added in the math, so I assume it is not the math throwing out the error.

Link to comment
Share on other sites

//Let Zeds know
[player,4,true,(getPosATL player)] spawn player_alertZombies;

//display gui (temp hint)

hintSilent parseText format ["
	<t size='1.4' font='Bitstream' align='center' color='#660000'>W.I.C.K.E.D.</t><br/>
	<t size='1.15' font='Bitstream' align='center' color='#DDDDDD'>%7 Players Online</t><br/><br/>
	<t size='1.25' font='Bitstream' color='#5882FA'>%1</t><br/><br/>
	<t size='1.20' font='Bitstream' color='#5882FA'>Survived %5 Days</t><br/><br/>
	<t size='1.15' font='Bitstream' align='left' color='#FF9900'>Murders: </t><t size='1.15' font='Bitstream' align='right' color='#FF9900'>%2</t><br/>
	<t size='1.15' font='Bitstream' align='left' color='#666666'>Bandits Killed: </t><t size='1.15' font='Bitstream' align='right' color='#666666'>%3</t><br/>
	<t size='1.15' font='Bitstream' align='left' color='#0066FF'>Humanity: </t><t size='1.15' font='Bitstream' align='right' color='#0066FF'>%4</t><br/>
	<t size='1.15' font='Bitstream' align='left' color='#CC0000'>Blood: </t><t size='1.15' font='Bitstream' align='right' color='#CC0000'>%6</t><br/><br/>
	<t size='1' font='Bitstream' align='center' color='#16DB57'>Restart in %8 minutes</t><br/><br/>
	<t size='1' font='Bitstream' align='center' color='#DDDDDD'>http://dayzwicked.enjin.com</t><br/>
	<t size='1' font='Bitstream' align='center' color='#DDDDDD'>ts30.gameservers.com:9305</t><br/>",
	(name player),
	(player getVariable['humanKills', 0]),
	(player getVariable['banditKills', 0]),
	(player getVariable['humanity', 0]),
	(dayz_Survived),
	(r_player_blood),
	(count playableUnits),
	(238-(round(serverTime/60)))
];

here's mine, I don't believe its causing errors. I have some errors in the RPT but I don't think its from the debug. Could be wrong though.

Currently looking to add FPS and Vehicle count to it but not sure how to do it in this format, which is different than my vanilla dayz debug.

Link to comment
Share on other sites

Some help please.  I had my debug monitor all working, went and change a the  website name and then it all quit working.  I have my custom_monitor.QF in the custom folder and I have placed the execute code everwhere in the init folder, but the damn thing never show up.  Any suggestions.  no errors in the RPT.  I reverted back to the OE monitor code and treated it as a fresh install.  

 

http://pastebin.com/3EjKr2JP execute code

 

http://pastebin.com/C61qYE94  stock code for monitor

Link to comment
Share on other sites

Some help please.  I had my debug monitor all working, went and change a the  website name and then it all quit working.  I have my custom_monitor.QF in the custom folder and I have placed the execute code everwhere in the init folder, but the damn thing never show up.  Any suggestions.  no errors in the RPT.  I reverted back to the OE monitor code and treated it as a fresh install.  

 

http://pastebin.com/3EjKr2JP execute code

 

http://pastebin.com/C61qYE94  stock code for monitor

Are you sure you don't need a ; after "[] execvm "R3F_ARTY_AND_LOG\init.sqf"" in the execute code?? So like this... "[] execvm "R3F_ARTY_AND_LOG\init.sqf";"

I'm not an expert on dayz code, but thats my guess.

Link to comment
Share on other sites

Are you sure you don't need a ; after "[] execvm "R3F_ARTY_AND_LOG\init.sqf"" in the execute code?? So like this... "[] execvm "R3F_ARTY_AND_LOG\init.sqf";"

I'm not an expert on dayz code, but thats my guess.

 

Good eye, thanks that was it.  Didnt even think to look for that.  

Link to comment
Share on other sites

  • 3 weeks later...

Well that's simple, everything you change in dayz_code.pbo or whatever has to be put in your DayZ_Epoch_11.Chernarus.pbo (or whatever it is called).

That is the only way all players receive the changes you have made. The only exception is the dayz_server.pbo of course because that will only run on the server.

So it will do nothing if you change the compiles.sqf or any other file in the dayz_code.pbo, you have to change the copy in your mission.pbo! :)

 

That said you need to change the following to costomize the debug monitor:

1. copy the file "@DayZ_Epoch\addons\dayz_code\actions\playerstats.sqf" to your mission folder (I put it in the custom folder for this example)

2. in compiles.sqf change "\z\addons\dayz_code\actions\playerstats.sqf" to "custom\playerstats.sqf", there are 2 places where you have to to that, you use replace or find it with your editor

3. change the "custom\playerstats.sqf" file to your liking

That's it, repack your mission.pbo if you want. :)

 

Just as a reference what you could change I'll post my changed playerstats.sqf here:

//Let Zeds know
[player,4,true,(getPosATL player)] spawn player_alertZombies;

//display gui (temp hint)

hintSilent parseText format ["
	<t size='1.4' font='Bitstream' align='center' color='#DDDDDD'>BRS DayZ Epoch</t><br/>
	<t size='1.15' font='Bitstream' align='center' color='#DDDDDD'>%9 Players Online</t><br/><br/>
	<t size='1.25' font='Bitstream' color='#5882FA'>%1</t><br/><br/>
	<t size='1.20' font='Bitstream' color='#5882FA'>Survived %7 Days</t><br/><br/>
	<t size='1.15' font='Bitstream' align='left'>Zombies Killed: </t><t size='1.15' font='Bitstream' align='right'>%2</t><br/>
	<t size='1.15' font='Bitstream' align='left'>Headshots: </t><t size='1.15' font='Bitstream' align='right'>%3</t><br/>
	<t size='1.15' font='Bitstream' align='left'>Murders: </t><t size='1.15' font='Bitstream' align='right'>%4</t><br/>
	<t size='1.15' font='Bitstream' align='left'>Bandits Killed: </t><t size='1.15' font='Bitstream' align='right'>%5</t><br/><br/>
	<t size='1.15' font='Bitstream' align='left'>Humanity: </t><t size='1.15' font='Bitstream' align='right'>%6</t><br/>
	<t size='1.15' font='Bitstream' align='left' color='#C70000'>Blood: </t><t size='1.15' font='Bitstream' align='right' color='#C70000'>%8</t><br/><br/>
	<t size='1' font='Bitstream' align='center' color='#16DB57'>Restart in %10 minutes</t><br/><br/>
	<t size='1' font='Bitstream' align='center' color='#DDDDDD'>brsquad.enjin.com</t><br/>
	<t size='1' font='Bitstream' align='center' color='#DDDDDD'>TS 46.20.46.243:14713</t><br/>",
	(name player),
	(player getVariable['zombieKills', 0]),
	(player getVariable['headShots', 0]),
	(player getVariable['humanKills', 0]),
	(player getVariable['banditKills', 0]),
	(player getVariable['humanity', 0]),
	(dayz_Survived),
	(r_player_blood),
	(count playableUnits),
	(120-(round(serverTime/60)))
];

It will look like this:

 dayz_monitor.png

I can't find this "\z\addons\dayz_code\actions\playerstats.sqf  in my dayz_1.chernarus\init\compiles.sqf

Link to comment
Share on other sites

I can't find this "\z\addons\dayz_code\actions\playerstats.sqf  in my dayz_1.chernarus\init\compiles.sqf

i believe player stats is called from the dayz_spaceInterrupt which is called in your compiles.sqf. So you would need to change the compiles to point to your custom dayz_spaceInterrupt and then open your dayz_spaceInterrupt and point it towards your custom debug monitor.

Link to comment
Share on other sites

i believe player stats is called from the dayz_spaceInterrupt which is called in your compiles.sqf. So you would need to change the compiles to point to your custom dayz_spaceInterrupt and then open your dayz_spaceInterrupt and point it towards your custom debug monitor.

I've been tearing through PBO files, config files of every shape and size, literally scanning almost every line of every config I could think might be related to a "playerstats.sqf" file and only found references to use this file, but no actual "call" in a compiles.sqf to actually cache this "playerstats" file... i knew it had to've been changed, it also seems the entire "call" command used to be some other entry not including the word "call" so I've been COMPLETELY lost as to why I wasn't seeing this  "\z\addons\dayz_code\actions\playerstats.sqf in any compile anywhere

 

So the actual call, in the dayz_code.pbo, in the init\compile.sqf is for a file called "dayz_spaceInterrupt" and via adding / manipulating the script inside "dayz_spaceinterrupt", this call can be redirected to include the "playerstats" ?

 

Well, hopefully thats the case...even if I described it poorly. And I'm not just losing my mind or eyesight completely

Link to comment
Share on other sites

I've set up my custom playerstats and custom dayz_spaceInterrupt, and it works for me when I log in but it's not working for other players that log in.  Did I miss something or is it blocked by infiSTAR antihack?

Link to comment
Share on other sites

Hey! thx for all your help :)

 

But is there a way to switch between :

usual debug > custom debug > empty > ............

with a button, like Insert, or End button ?

(easiest to build with no monitor to have a better view)

 

Thx :)

Link to comment
Share on other sites

Hey! thx for all your help :)

 

But is there a way to switch between :

usual debug > custom debug > empty > ............

with a button, like Insert, or End button ?

(easiest to build with no monitor to have a better view)

 

Thx :)

I post my one here 

 

With HotKey F8

Link to comment
Share on other sites

Well I'm having no luck with these debug monitors and keep getting stuck at waiting for character to create. I've used both and have placed 

[] execVM "custom_monitor.sqf";

 correctly and the same with the custom_monitor. By default in my init I found

 //Run the player monitor
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
_playerMonitor =  [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
 
I've tried replacing with 
[] execVM "custom_monitor.sqf";  

and 

if (!isDedicated) then {                       
[] execVM "custom_monitor.sqf";}
 
But I still get stuck. Also navigated to \z\addons\dayz_code\system\player_monitor.sqf and I tried deleting or replacing it and I still can't figure it out.
Any suggestions?
Link to comment
Share on other sites

 

Well I'm having no luck with these debug monitors and keep getting stuck at waiting for character to create. I've used both and have placed 

[] execVM "custom_monitor.sqf";

 correctly and the same with the custom_monitor. By default in my init I found

 //Run the player monitor
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
_playerMonitor =  [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
 
I've tried replacing with 
[] execVM "custom_monitor.sqf";  

and 

if (!isDedicated) then {                       
[] execVM "custom_monitor.sqf";}
 
But I still get stuck. Also navigated to \z\addons\dayz_code\system\player_monitor.sqf and I tried deleting or replacing it and I still can't figure it out.
Any suggestions?

 

My debug monitor works fine and closing with F8, first  click make it smaller, second one close it .

In the end of  your init.sqf paste this one:

//HotKey(F8)
waituntil {!IsNull (findDisplay 46)};
_SpecKeyDown = (findDisplay 46) displayAddEventHandler ["KeyDown", loadFile "hotkeys.sqf"];
//Debug Monitor	
[] execVM "custom_monitor.sqf";

Next make file custom_monitor.sqf same place where is init.sqf  and paste inside:

custom_monitor_state = 0;
 
fnc_debug = {
    j0k3r5_stats = true;
    while {j0k3r5_stats} do
	{
		
		_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
		
		_nearestCity = nearestLocations [getPos player, ["NameCityCapital","NameCity","NameVillage","NameLocal"],750];
		_textCity = "Wilderness";
		if (count _nearestCity > 0) then {_textCity = text (_nearestCity select 0)};
			
		if (player == vehicle player) then
		{
			_pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));	
		}
		else
		{
			_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));	
		};
 
		_timeleft= 		_combattimeout-time;
		_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];
		_zombies =      count entities "zZombie_Base";
		_zombiesA =     {alive _x} count entities "zZombie_Base";
		_text = switch(custom_monitor_state) do {
			case 0:{
				"
				<img size='5' image='%10'/>
				<t color='#7D8D70' size='1' font='Bitstream'align='left'>Location:</t><t size='1' font='Bitstream'align='right'color='#7D8D70'>%11</t><br/>
				<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
				<t color='#708D70' size='1'	font='Bitstream'align='left'>Humanity:</t><t size='1' font='Bitstream'align='right'color='#708D70'>%2</t><br/>
				<t color='#708B8D' size='1'	font='Bitstream'align='left'>Head:</t><t size='1' font='Bitstream'align='right'color='#708B8D'>%6</t><br/>
                <br/>
				<t color='#707D8D' size='1' font='Bitstream'align='left'>Players Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%3</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Zombie Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%5</t><br/>
				<t color='#707D8D' size='1' font='Bitstream'align='left'>Vehicles:</t><t size='0.95' font='Bitstream'align='right'color='#707D8D'>%16</t><br/>
				<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
				<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>	
				<img size='6' image='%9'/>
				"
			};
			case 1:{
				"
				<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
				<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
				<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>	
				"
			};
			case 2:{
				""
			};
		};
		
		if(((getPlayerUID player) in ["xxxx","xxxxx"]) and custom_monitor_state == 1 ) then {      // Replace xxx to admins UID
			_position = getPos player;
			_px = _position select 0;//X
			_py = _position select 1;//Y
			_text = _text + format ["<t color='#00bcbc' size='0.8'font='Bitstream'align='left'>x:%1 y:%2</t><br/>",_px,_py];
		};
		
		hintSilent parseText format 
			[
				_text,
				r_player_blood,												//1
				round _humanity,											//2
				_killsH,													//3
				_killsB,													//4
				_kills,														//5
				_headShots,													//6
				(dayz_Survived),											//7
				((floor(serverTime/60)) mod 60), 							//8
				_pic,														//9
				_logo,														//10
				_textCity,													//11
				0,															//12
				0,															//13
				round diag_fps,												//14
                {side _x == west} count allUnits,                           //15
	            (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),//16
	            count vehicles,												//17
				(floor(serverTime/3600))											//18
			];			
			sleep 1;
	};
};
 
[] spawn fnc_debug;
 

Same place make file hotkeys.sqf and paste:

if (_this select 1 == 66) then {
	hintSilent "";
	custom_monitor_state = custom_monitor_state + 1;
	if (custom_monitor_state>2) then {
		custom_monitor_state = 0;
	};
};

Must work!

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
×
×
  • Create New...