/*
/////Tweaked j0k3r5 / Original work done by Matt L / and to anyone else that is involved that Ive forgotten////
////www.j0k3r5.com////
If modified and released give credits where due, thank you.
*/
dayz_spaceInterrupt = {
private ["_dikCode", "_handled"];
_dikCode = _this select 1;
_handled = false;
if (_dikCode == 0x44) then {
if (j0k3r5_stats) then {
j0k3r5_stats = false;
hintSilent "";
} else {[] spawn fnc_debug;};
};
_handled
};
fnc_debug = {
j0k3r5_stats = true;
while {j0k3r5_stats} do
{
_logo = "Stats\stats_logo.paa";
_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
_nearestCity = nearestLocations [getPos player, ["NameCityCapital","NameCity","NameVillage","NameLocal"],750];
_textCity = "Wilderness";
if (count _nearestCity > 0) then {_textCity = text (_nearestCity select 0)};
if (player == vehicle player) then
{
_pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
}
else
{
_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
};
_timeleft= _combattimeout-time;
_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";
hintSilent parseText format
[
"
Enjoy your stay at SDS
TS: 198.100.153.190:7087
Location:%11
Blood:%1
Humanity:%2
Headshots:%6
Heroes Killed:%3
Bandits Killed:%4
Zombies Killed:%5
Zeds (alive/total): %13/%12
FPS: %14
Survived:%7 Dayz
Restart in %8 minutes!
Use F10 to Toggle
",
r_player_blood, //1
round _humanity, //2
_killsH, //3
_killsB, //4
_kills, //5
_headShots, //6
(dayz_Survived), //7
(240-(round(serverTime/60))), //8 change the 180 to suit your server mins for restarts
_pic, //9
_logo, //10
_textCity, //11
count entities "zZombie_Base", //12
{alive _x} count entities "zZombie_Base", //13
diag_fps //14
];
sleep 5;
};
};
[] spawn fnc_debug;