Show online players on debug

Sup3rn0va

Member
What line should i add to make a player count on the debug monitor ? iv seen some servers have it but i cant find any posts that tell you how to add it.
 
(count playableUnits) will return a integer containing the amount of online players.

Post up your debug monitor code and i can add it in for you if you do not know how.
 
here it is :)

Code:
//if (dayzDebug) then {
        //Debug Info
        _headShots = player getVariable["headShots",0];
        _kills = player getVariable["zombieKills",0];
        _killsH = player getVariable["humanKills",0];
        _killsB = player getVariable["banditKills",0];
        _humanity = player getVariable["humanity",0];
        _zombies = count entities "zZombie_Base";
        _zombiesA = {alive _x} count entities "zZombie_Base";
        _days = dayz_currentDay;
        //<t size='2' font='Bitstream'>%14<br /><br /></t>
        //<t size='1' font='Bitstream' align='left'>Day: </t><t size='1' font='Bitstream' align='right' >%17</t>
        hintSilent parseText format["
<t size='1' font='Bitstream' align='left' >Blood: </t><t size='1' font='Bitstream' align='right' >%4</t>
<t size='1' font='Bitstream' align='left' ><br />Humanity: </t><t size='1' font='Bitstream' align='right' >%11</t>
<t size='1' font='Bitstream' align='left' ><br />Temperatur: </t><t size='1' font='Bitstream' align='right' >%5<br /></t>
<t size='1' font='Bitstream' align='left' ><br />Headshots: </t><t size='1' font='Bitstream' align='right' >%2<br /></t>
<t size='1' font='Bitstream' align='left' ><br />Survivors killed:  </t><t size='1' font='Bitstream' align='right' >%10</t>
<t size='1' font='Bitstream' align='left' ><br />Bandits Killed: </t><t size='1' font='Bitstream' align='right' >%12</t>
<t size='1' font='Bitstream' align='left' ><br />Zombies Killed: </t><t size='1' font='Bitstream' align='right' >%1<br /><br /></t>
<t size='1' font='Bitstream' color='#999999' align='center' >Zombies (alive/total): %15/%08<br /></t>
<t size='1' font='Bitstream' color='#FF0000' align='center' >%16</t>
",_kills,_headShots,_speed,r_player_blood,round(dayz_temperatur),r_player_infected,dayz_inside,_zombies,_lastSave,_killsH, round(_humanity), _killsB,_freeTarget,dayz_playerName,_zombiesA,_combatInfo,_days];
    //};
 
Noch besser ;)

Code:
[player,4,true,(getPosATL player)] spawn player_alertZombies;
 
/*
Die UID's findest du in der MYSQL Datenbank unter player_data.
*/
 
if ((getPlayerUID player) in ["######","######"]) 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))
    ];
}else
{
    hintSilent parseText format ["
    <t size='1' font='Bitstream' color='#5882FA'>%1</t><br/><br/>
    <t size='1' font='Bitstream' color='#5882FA'>Survived %2 Days</t><br/><br/>
    <t size='1' font='Bitstream' align='left'>Murders: </t><t size='1' font='Bitstream' align='right'>%3</t><br/>
    <t size='1' font='Bitstream' align='left'>Headshots: </t><t size='1' font='Bitstream' align='right'>%4</t><br/>
    <t size='1' font='Bitstream' align='left'>Bandits Killed: </t><t size='1' font='Bitstream' align='right'>%5</t><br/>
    <t size='1' font='Bitstream' align='left'>Zombies Killed: </t><t size='1' font='Bitstream' align='right'>%6</t><br/>
    <t size='1' font='Bitstream' align='left'>Zombie Count: </t><t size='1' font='Bitstream' align='right'>%7</t><br/>
    <t size='1' font='Bitstream' align='left'>Blood: </t><t size='1' font='Bitstream' align='right'>%8</t><br/>
    <t size='1' font='Bitstream'align='left'>Vehicles:</t><t size='1' font='Bitstream'align='right'>%9</t><br/>
    <t size='1' font='Bitstream' align='left'>Humanity: </t><t size='1' font='Bitstream' align='right'>%10</t><br/><br/>
    <t size='1' font='Bitstream' color='#E41B17'>FPS: %11</t><br/>",
    (name player),
    (dayz_skilllevel),
    (player getVariable['humanKills', 0]),
    (player getVariable['headShots', 0]),
    (player getVariable['banditKills', 0]),
    (player getVariable['zombieKills', 0]),
    ({alive _x} count entities "zZombie_Base"),
    (r_player_blood),
    (count([6800, 9200, 0] nearEntities [["Car","Motorcycle","Air","Ship","LandVehicle"],16000])),   
    (player getVariable['humanity', 0]),
    (round diag_FPS)
    ];
};
 
Noch besser ;)

Code:
[player,4,true,(getPosATL player)] spawn player_alertZombies;
 
/*
Die UID's findest du in der MYSQL Datenbank unter player_data.
*/
 
if ((getPlayerUID player) in ["######","######"]) 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))
    ];
}else
{
    hintSilent parseText format ["
    <t size='1' font='Bitstream' color='#5882FA'>%1</t><br/><br/>
    <t size='1' font='Bitstream' color='#5882FA'>Survived %2 Days</t><br/><br/>
    <t size='1' font='Bitstream' align='left'>Murders: </t><t size='1' font='Bitstream' align='right'>%3</t><br/>
    <t size='1' font='Bitstream' align='left'>Headshots: </t><t size='1' font='Bitstream' align='right'>%4</t><br/>
    <t size='1' font='Bitstream' align='left'>Bandits Killed: </t><t size='1' font='Bitstream' align='right'>%5</t><br/>
    <t size='1' font='Bitstream' align='left'>Zombies Killed: </t><t size='1' font='Bitstream' align='right'>%6</t><br/>
    <t size='1' font='Bitstream' align='left'>Zombie Count: </t><t size='1' font='Bitstream' align='right'>%7</t><br/>
    <t size='1' font='Bitstream' align='left'>Blood: </t><t size='1' font='Bitstream' align='right'>%8</t><br/>
    <t size='1' font='Bitstream'align='left'>Vehicles:</t><t size='1' font='Bitstream'align='right'>%9</t><br/>
    <t size='1' font='Bitstream' align='left'>Humanity: </t><t size='1' font='Bitstream' align='right'>%10</t><br/><br/>
    <t size='1' font='Bitstream' color='#E41B17'>FPS: %11</t><br/>",
    (name player),
    (dayz_skilllevel),
    (player getVariable['humanKills', 0]),
    (player getVariable['headShots', 0]),
    (player getVariable['banditKills', 0]),
    (player getVariable['zombieKills', 0]),
    ({alive _x} count entities "zZombie_Base"),
    (r_player_blood),
    (count([6800, 9200, 0] nearEntities [["Car","Motorcycle","Air","Ship","LandVehicle"],16000])), 
    (player getVariable['humanity', 0]),
    (round diag_FPS)
    ];
};

What ?
 
Code:
if (isNil "custom_monitor") then {custom_monitor = true;} else {custom_monitor = !custom_monitor;};
 
while {custom_monitor} 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];
    _zombies =              count entities "zZombie_Base";
    _zombiesA =    {alive _x} count entities "zZombie_Base";
    _banditCount = {(isPlayer _x) && ((_x getVariable ["humanity",0]) < 0)} count playableUnits;
    _heroCount  = {(isPlayer _x) && ((_x getVariable ["humanity",0]) >= 5000)} count playableUnits;
    hintSilent parseText format ["
    <t size='1'font='Bitstream'align='center' color='#EE0000' >%1</t><br/>
    <t size='1'font='Bitstream'align='left' color='#EE0000' >Midochlorians Left:</t><t size='1.5' font='Bitstream'align='right' color='#EE0000' >%2</t><br/>
    <t size='1'font='Bitstream'align='left' color='#104E8B' >Humanity:</t><t size='1.5'font='Bitstream'align='right' color='#104E8B' >%3</t><br/>
    <t size='1'font='Bitstream'align='left' color='#EEC900' >Noobs Killed:</t><t size='1.5'font='Bitstream'align='right' color='#EEC900' >%4</t><br/>
    <t size='1'font='Bitstream'align='left' color='#EEC900' >Assholes Killed:</t><t size='1.5'font='Bitstream'align='right' color='#EEC900' >%5</t><br/>
    <t size='1'font='Bitstream'align='left' color='#EEC900' >Zombitches Killed:</t><t size='1.5'font='Bitstream'align='right' color='#EEC900' >%6</t><br/>
    <t size='1'font='Bitstream'align='left' color='#EEC900' >Dome Shots:</t><t size='1.5'font='Bitstream'align='right' color='#EEC900' >%7</t><br/>
    <t size='1' font='Bitstream' align='left' color='#EEC900' >Zombitches (alive/total): </t><t size='1' font='Bitstream' align='right' color='#EEC900' >%9/%8</t><br/>
    <t size='1'font='Bitstream'align='left' color='#104E8B' >Current Asshole Count:</t><t size='1.5'font='Bitstream'align='right' color='#104E8B' >%11</t><br/>
    <t size='1'font='Bitstream'align='left' color='#104E8B' >Current NiceGuy Count:</t><t size='1.5'font='Bitstream'align='right' color='#104E8B' >%12</t><br/>
    <t size='1' font='Bitstream' align='left' color='#104E8B' >FPS: </t><t size='1' font='Bitstream' align='right' color='#104E8B' >%10</t><br/>
    <t size='1'font='Bitstream'align='center' color='#104E8B' >Welcome to the Apocalypse! </t><br/>
 
    ",dayz_playerName,r_player_blood,round _humanity,_killsH,_killsB,_kills,_headShots,count entities "zZombie_Base",{alive _x} count entities "zZombie_Base",diag_fps,_banditCount,_heroCount];
sleep 1;
};
 
Back
Top