Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
if ((getPlayerUID vehicle player) in ["123123"]) then {
//Debug Info (Admins Only)
_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";
//timer stuff
_countdown = _totalTime - time + _serverTime;
_serverTime = _this select 0;
_totalTime = 240*60;
_numbersToTimeString = {
_hours = _this select 0;
_minutes = _this select 1;
_chars = [];
_chars set [0, (floor (_hours / 10)) + 48];
_chars set [1, (floor (_hours mod 10)) + 48];
_chars set [2, 58];
_chars set [3, (floor (_minutes / 10)) + 48];
_chars set [4, (floor (_minutes mod 10)) + 48];
toString _chars
};
//timer stuff end
hintSilent parseText format ["
<t size='0.95' font='Bitstream' align='Center' color='#FFBF00'>[%18]</t><br/>
<t size='0.95' font='Bitstream'>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' >Viewdistance:</t><t size='0.95'font='Bitstream'align='right'>%12</t><br/>
<t size='0.95' font='Bitstream' align='left'>Vehicles:</t><t size='0.95' font='Bitstream'align='right'color='#13eedb'>%13(%14)</t><br/>
<t size='0.95' font='Bitstream' align='left'>Air:</t><t size='0.95' font='Bitstream'align='right'>%16</t><br/>
<t size='0.95' font='Bitstream' align='left'>Tank:</t><t size='0.95' font='Bitstream'align='right'>%15</t><br/>
<t size='0.95' font='Bitstream' align='left'>Car:</t><t size='0.95' font='Bitstream'align='right'>%17</t><br/>
<t size='0.95' font='Bitstream' align='left'>Zombies (alive/total): </t><t size='0.95' font='Bitstream' align='right'>%19/%20</t><br/>
<t size='0.95' font='Bitstream' align='left'>Zombies Killed: </t><t size='0.95' font='Bitstream' align='right'>%2</t><br/>
<t size='0.95' font='Bitstream' align='left'>Headshots: </t><t size='0.95' font='Bitstream' align='right'>%3</t><br/>
<t size='0.95' font='Bitstream' align='left'>Murders: </t><t size='0.95' font='Bitstream' align='right'>%4</t><br/>
<t size='0.95' font='Bitstream' align='left'>Bandits Killed: </t><t size='0.95' font='Bitstream' align='right'>%5</t><br/>
<t size='0.95' font='Bitstream' align='left'>Humanity: </t><t size='0.95' font='Bitstream' align='right'>%6</t><br/>
<t size='0.95' font='Bitstream' align='left'>Blood: </t><t size='0.95' font='Bitstream' align='right'>%9</t><br/>
<t size='0.95' font='Bitstream' align='left'>FPS: %10</t><t size='0.95' font='Bitstream' align='right'>GPS: %22</t><br/>
//timer addition for debug menu
<t size='0.95'font='Bitstream'align='center'>Restart in: %23</t><br/>",
//timer addition for debug menu end
(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 [["Tank"],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),
//timer function call
([floor (_countdown / 60), _countdown mod 60] call _numbersToTimeString)];
//timer function call end
Now THAT was a GREAT idea. Here is what I use:
(180-(serverTime/60))
180 = 3 hours (my restart time)
<t size='0.95' font='Bitstream' align='Center' color='#FFBF00'>[%1]</t><br/>
<t size='0.95' font='Bitstream'>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'color='#13eedb'>%12(%13)</t><br/>
<t size='0.95' font='Bitstream' align='left'>Air:</t><t size='0.95' font='Bitstream'align='right'>%14</t><br/>
<t size='0.95' font='Bitstream' align='left'>Car:</t><t size='0.95' font='Bitstream'align='right'>%15</t><br/>
<t size='0.95' font='Bitstream' align='left'>Zombies (alive/total): </t><t size='0.95' font='Bitstream' align='right'>%17/%18</t><br/>
<t size='0.95' font='Bitstream' align='left'>Zombies Killed: </t><t size='0.95' font='Bitstream' align='right'>%2</t><br/>
<t size='0.95' font='Bitstream' align='left'>Headshots: </t><t size='0.95' font='Bitstream' align='right'>%3</t><br/>
<t size='0.95' font='Bitstream' align='left'>Murders: </t><t size='0.95' font='Bitstream' align='right'>%4</t><br/>
<t size='0.95' font='Bitstream' align='left'>Bandits Killed: </t><t size='0.95' font='Bitstream' align='right'>%5</t><br/>
<t size='0.95' font='Bitstream' align='left'>Humanity: </t><t size='0.95' font='Bitstream' align='right'>%6</t><br/>
<t size='0.95' font='Bitstream' align='left'>Blood: </t><t size='0.95' font='Bitstream' align='right'>%9</t><br/>
<t size='0.95' font='Bitstream' align='left'>FPS: %10</t><br/>
<t size='0.95' font='Bitstream' align='left'>Server Restart:</t><t size='0.95' font='Bitstream' align='right'>%20</t><br/>",
(name player),//1
(player getVariable['zombieKills', 0]),//2
(player getVariable['headShots', 0]),//3
(player getVariable['humanKills', 0]),//4
(player getVariable['banditKills', 0]),//5
(player getVariable['humanity', 0]),//6
(dayz_skilllevel),//7
(count playableUnits),//8
r_player_blood,//9
(round diag_fps),//10
(({isPlayer _x} count (getPos vehicle player nearEntities [["AllVehicles"], 500]))-1),//11
(count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),//12
count vehicles,//13
(count([6800, 9200, 0] nearEntities [["Air"],25000])),//14
(count([6800, 9200, 0] nearEntities [["Car"],25000])),//15
(gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName')),//16
(count entities "zZombie_Base"),//17
({alive _x} count entities "zZombie_Base"),//18
(mapGridPosition getPos player),//19
(240-(serverTime) / 60)//20
];
<t size='1.15' font='Bitstream' color='#5882FA'>Scootaloo's</t><br/>
<t size='1.20' font='Bitstream' color='#5882FA'>%1</t><br/><br/>
<t size='1.15' font='Bitstream' color='#5882FA'>Survived %7 Days</t><br/>
<t size='1.15' font='Bitstream' align='left'>Cars: </t><t size='1.15' font='Bitstream' align='right'>%11</t><br/>
<t size='1.15' font='Bitstream' align='left'>Air: </t><t size='1.15' font='Bitstream' align='right'>%10</t><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/>
<t size='1.15' font='Bitstream' align='left'>Zombies (alive/total): </t><t size='1.15' font='Bitstream' align='right'>%9/%8</t><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'>Blood: </t><t size='1.15' font='Bitstream' align='right'>%12</t><br/>
<t size='1.15' font='Bitstream' align='left'>Restart in: </t><t size='1.15' font='Bitstream' align='right'>%13</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 entities "zZombie_Base"),
({alive _x} count entities "zZombie_Base"),
(count([6800, 9200, 0] nearEntities [["Air"],25000])),
(count([6800, 9200, 0] nearEntities [["Car"],25000])),
r_player_blood,
(240-(serverTime / 60))
/*
Change the UID's below to match those of you and your admin(s)
Your admins will get the advanced version of your debug monitor,
while your regular users will get the cut down version.
*/
if ((getPlayerUID vehicle player) in ["24908678","40216710","77438150"]) then {
well i tried everything i can think of....
and i cant get it to work....
i could realy use some help here
i dont have the code for the toggle version, if u use the always on version you could just copy my player_spawn_2.sqf. most people wont know how to get ur debug to show anyways with toggle.
full file for always on debug. -- lets be real binding a button for debug is stupid and no one will bind to action 20.
(180-(serverTime/60))