Jump to content

[RELEASE] Simple Custom Debug Monitor


Recommended Posts

Need a debug monitor? This is the right place!

 

Installation Instructions:

  1. Make a new SQF file in your MPMissions/(map) and call it custom_monitor.sqf

     

  2. In your custom_monitor.sqf, add this code:
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='#FFCC00'>Survived %1 Days</t><br/><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900'>Amount of Blood:</t><t size='1' font='Bitstream' align='right' color='#EE0000'>%2</t><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900'>Humanity:</t><t size='1'font='Bitstream' align='right' color='#EEC900'>%3</t><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900'>Murders:</t><t size='1'font='Bitstream' align='right' color='#EEC900'>%4</t><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900'>Bandits Killed:d</t><t size='1'font='Bitstream' align='right' color='#EEC900'>%5</t><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900'>Zombies Killed:</t><t size='1'font='Bitstream' align='right' color='#EEC900'>%6</t><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900'>Headshots:</t><t size='1'font='Bitstream' align='right' color='#EEC900'>%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'>eaglegaming.bl.ee</t><br/>",
        dayz_skilllevel,
        r_player_blood,
        round _humanity,
        _killsH,
        _killsB,
        _kills,
        _headShots,
        round diag_FPS
        ];
    sleep 1;
    };
};
 
[] spawn fnc_debug;

     3: Go to your init.sqf and add this line to the VERY bottom of it!:

[] execVM "custom_monitor.sqf";

    4: Well done, you now have a custom monitor!

 

NOTICE: This is very simple and only used for players who REALLY need one! Thank you for your time!

 

FAQ:

  • Q: My RPT is SPAMMING with errors, how do I fix this?
  • A: The post below has a fixed soloution. It's a little bit of a modified code
Link to comment
Share on other sites

ive always skipped the predefination of variables because it spams the clients rpt with undefined variable errors, i always do it like that:

fnc_debug = {
	  private ["_kills","_killsH","_killsB","_humanity","_headShots","_vehname","_crew","_crew2","_crew3","_crew4","_crew5","_crew6","_crew7","_crew8","_crew9"];
    debugMonitor = true;
    while {debugMonitor} do
    {	
	      hintSilent parseText format ["
				<t size='1' font='Bitstream' align='center' color='#FFCC00'>Survived %1 Days</t><br/><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900'>Amount of Blood:</t><t size='1' font='Bitstream' align='right' color='#EE0000'>%2</t><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900'>Humanity:</t><t size='1'font='Bitstream' align='right' color='#EEC900'>%3</t><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900'>Murders:</t><t size='1'font='Bitstream' align='right' color='#EEC900'>%4</t><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900'>Bandits Killed:d</t><t size='1'font='Bitstream' align='right' color='#EEC900'>%5</t><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900'>Zombies Killed:</t><t size='1'font='Bitstream' align='right' color='#EEC900'>%6</t><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900'>Headshots:</t><t size='1'font='Bitstream' align='right' color='#EEC900'>%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'>eaglegaming.bl.ee</t><br/>",
        dayz_skilllevel,
        r_player_blood,
        (round player getVariable["humanity",0];),
        (player getVariable["humanKills",0];),
        (player getVariable["banditKills",0];),
        (player getVariable["zombieKills",0];),
        (player getVariable["headShots",0];),
        round diag_FPS
        ];
    sleep 1;
    };
};
 
[] spawn fnc_debug;
Link to comment
Share on other sites

 

ive always skipped the predefination of variables because it spams the clients rpt with undefined variable errors, i always do it like that:

fnc_debug = {
	  private ["_kills","_killsH","_killsB","_humanity","_headShots","_vehname","_crew","_crew2","_crew3","_crew4","_crew5","_crew6","_crew7","_crew8","_crew9"];
    debugMonitor = true;
    while {debugMonitor} do
    {	
	      hintSilent parseText format ["
				<t size='1' font='Bitstream' align='center' color='#FFCC00'>Survived %1 Days</t><br/><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900'>Amount of Blood:</t><t size='1' font='Bitstream' align='right' color='#EE0000'>%2</t><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900'>Humanity:</t><t size='1'font='Bitstream' align='right' color='#EEC900'>%3</t><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900'>Murders:</t><t size='1'font='Bitstream' align='right' color='#EEC900'>%4</t><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900'>Bandits Killed:d</t><t size='1'font='Bitstream' align='right' color='#EEC900'>%5</t><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900'>Zombies Killed:</t><t size='1'font='Bitstream' align='right' color='#EEC900'>%6</t><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900'>Headshots:</t><t size='1'font='Bitstream' align='right' color='#EEC900'>%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'>eaglegaming.bl.ee</t><br/>",
        dayz_skilllevel,
        r_player_blood,
        (round player getVariable["humanity",0];),
        (player getVariable["humanKills",0];),
        (player getVariable["banditKills",0];),
        (player getVariable["zombieKills",0];),
        (player getVariable["headShots",0];),
        round diag_FPS
        ];
    sleep 1;
    };
};
 
[] spawn fnc_debug;

Good work, it's the top post so if players dont like it, they will see yours right there.

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
  • Discord

×
×
  • Create New...