-
Posts
5 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by RisingDead
-
-
It turns out Anti Hack is most likely stopping this.
So therefore this topic can be closed/ removed.
-
only way to fix this easily: disable your antihacks (that is the only reason it should not work correctly, if you don't use any AH check the debug monitor again).
Thanks for the reply Axe Cop.
I am using AH and dont want to sacrifice them in order to display online players. So i will simply remove the online players bit :P
Thanks again
-
Hi there,
I was just wondering if anyone can help with how to display/fetch the servers player count?
I am fairly certain that to fetch this value I need to use:
(count playableUnits)
However it isnt working in my debug monitor.
The code for this is as follows:
hintSilent parseText format [" <t size='1.25' font='Bitstream'align='center' color='#D60000'>Example Server Name</t><br/> <t size='1.15' font='Bitstream'align='center' color='#D60000'>www.websiteExample.com</t><br/> <t size='1.15' font='Bitstream'align='center' color='#5882FA'>Survived %2 Days</t><br/> <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Players Online: </t><t size='0.95 'font='Bitstream' align='right'>%3</t><br/> <-----HERE <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'>Zombies Killed: </t><t size='0.95' font='Bitstream' align='right'>%6</t><br/> <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Humanity: </t><t size='0.95' font='Bitstream' align='right'>%7</t><br/> <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Blood: </t><t size='0.95' font='Bitstream' align='right'>%8</t><br/> <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>FPS: </t><t size='0.95' font='Bitstream' align='right'>%9</t><br/> <t size='1.15' font='Bitstream'align='center' color='#5882FA'>Restart in %10 Minutes</t><br/>", dayz_playerName,(dayz_Survived),(count playableUnits),_killsH,_killsB,_kills,round _humanity,r_player_blood,(round diag_fps),(round(180-(serverTime) / 60)) ];
This is then the executing code in my init.sqf located at around line 60 (not at the end of the file).
if (!isDedicated) then { [] execVM "scripts\custom_monitor.sqf";
Here (count playableUnits) should be displaying server players. If I am correct this should be being fetched from my playerstats.sqf? However for some reason the vaule is ALWAYS 1 for any normal player.
For admins however it works perfectly and changes as it should.
Can anyone explain what Is wrong here?
Everything else in the monitor works perfectly
-
Hi there,
Not sure if this is the correct place to ask this question but saves making a new thread.
I am using THIS debug monitor and its really nice and almost works perfectly.
The only issue is it does not display the correct player count. It is ALWAYS at 1, even if the server has more than 1 player.
For some reason though it works perfectly for the server owner (with UID in super.sqf).
Any ideas on a fix?
Custom debug monitor
in A2: Epoch Mods (1.0.5.1)
Posted
adg i was able to add a restart timer but it has broken the picture for some reason. Whenever someone logs in it says "Picture not found".
Could you advise? my debug.sqf is as follows and the picture does not work with the restart timer addition. It works perfectly without it
EDIT: I have realised the error, I should have changed <img size='4' image='%9'/><br/> to <img size='4' image='%10'/><br/> after adding a new variable
Sorry about this