KillingPigs123 Posted June 23, 2014 Report Share Posted June 23, 2014 Need a debug monitor? This is the right place! Installation Instructions: Make a new SQF file in your MPMissions/(map) and call it custom_monitor.sqf 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 KillingPigs123 1 Link to comment Share on other sites More sharing options...
Guest Posted June 23, 2014 Report Share Posted June 23, 2014 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 More sharing options...
KillingPigs123 Posted June 24, 2014 Author Report Share Posted June 24, 2014 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 More sharing options...
dajax Posted June 25, 2014 Report Share Posted June 25, 2014 I got a question... Do you know how to make it where its starts off, but the players can toggle it on Via a button and it stays on? Link to comment Share on other sites More sharing options...
KillingPigs123 Posted June 26, 2014 Author Report Share Posted June 26, 2014 (edited) I got a question... Do you know how to make it where its starts off, but the players can toggle it on Via a button and it stays on?Gonna have to use the search for that, not so advanced with this language. Edited November 24, 2015 by KillingPigs123 Link to comment Share on other sites More sharing options...
dajax Posted June 26, 2014 Report Share Posted June 26, 2014 I have searched for it... :\ Just can't wrap my head around it... I am pretty sure sql wouldn't have much to do with it. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now