sporktoggle = true;
waitUntil {!isNil ("sporkinit")};
_admins = _this select 0;
change_debug =
{
if (IsDebug == 1) then
{
IsDebug = 2;
} else
{
if (IsDebug == 2) then
{
IsDebug = 3;
} else
{
if (IsDebug >= 3) then
{
IsDebug = 1;
};
};
};
};
sporkhints =
{
_witch = _this select 0;
Modversion = "2.0";
"Welcome to Wolf Pack Server" hintC parseText format ["
<t size='1.25' shadow='1'align='left' color='#ff8800'>Dayz of Glory Version %1</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>1. Buy/Sell guns @ Firesations</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>2. Banking @ Supermarkets on Laptops</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>3. Minigame is @ Stary</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>4. Minigame reward is $3000</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>5. Loot money off of Zombies and Players</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>6. Carshop @ Balota</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>7. CarShop vehicles do NOT SAVE on RESTART</t><br/>",
(Modversion)];
};
while {sporktoggle} do
{
dayz_spaceInterrupt = {
private ["_dikCode", "_handled"];
_dikCode =_this select 1;
_handled = false;
_uid = getPlayerUID player;
if (_dikCode == 0x3F) then {
call change_debug;
};
if (_dikCode == 0x9D) then {
[1] call sporkhints;
};
if (_dikCode == 0x40) then
{
_isadmin = player getVariable["admin",0];
if (_isadmin == 1) then
{
execvm "@DayZofDuty\DOD\message.sqf";
};
};
};
_handled;
};
myhp_fixer = (r_player_blood / 12000) * 100;
myHp_corrector = round myhp_fixer;
if (r_player_blood <= 0) then {myHp_corrector = "Dead!";};
_pos = getpos player;
_Lastlvlz = Lastlvl;
_moneyz = currentMoney;
_shopMoneyz = myMoneyZ;
_levelz = currentlevel;
_timerget = player getVariable["timer",0];
_Nextlvlz = Nextlvl;
Pname = name player;
_timesinbad = (TimeToRestart)-(round(serverTime/60));
_dotimerrestart = player setVariable["restarting",_timesinbad,true];
MaxMoneyz = 20000;
_fps = round diag_fps;
_fpsfind = player setVariable["fps",_fps,true];
_posmini = [6558.7339, 7651.7715, 0];
_zombz = _posmini nearEntities ["z_soldier",200];
_countz = count _zombz;
_EXPz = Exp_Counter;
_minicounts = profileNamespace getVariable ["minigame",0];
_maxedlvl = 45;
_checkEXP = Should_EXP;
My_speed = speed (vehicle player);
kills = player getVariable["zombieKills",0];
_killsH = player getVariable["humanKills",0];
_killsB = player getVariable["banditKills",0];
_humanity = player getVariable["humanity",0];
_pic = (gettext (configFile >> "CfgVehicles" >> (typeof vehicle player) >> "picture"));
if (player == vehicle player) then
{
_pic = (gettext (configFile >> "cfgWeapons" >> (currentWeapon player) >> "picture"));
}
else
{
_pic = (gettext (configFile >> "CfgVehicles" >> (typeof vehicle player) >> "picture"));
};
//#ff0000 = red
//#FFFFFF = white
//#00FF00 = green
//#00FFFF = blue
//#c72842 = redish pink
//#ffff00 = yellow
//#ff8800 = orange
if (IsDebug == 1) then
{
hintSilent parseText format ["
<t size='1' color='#FFFFFF'>Wolf Pack Server</t><br/>
<t size='1' align='left' color='#ff8800'>Website: </t><t size='.90' align='right' color='#ff0000'>%11</t><br/>
<t size='1' align='left' color='#ff8800'>IP: </t><t size='.90' align='right' color='#ff0000'>%12</t><br/>
<t size='1' align='left' color='#ff8800'>Health: </t><t size='1' align='right' color='#ff0000'>%6 Percent</t><br/>
<t size='1' align='left' color='#ff8800'>Level: </t><t size='1' align='right' color='#ff0000'>%2</t><br/>
<t size='1' align='left' color='#ff8800'>Speed: </t><t size='1' align='right' color='#ff0000'>%9 KPH</t><br/>
<t size='1' align='left' color='#ff8800'>Exp: </t><t size='1' align='right' color='#ff0000'>%3\%1</t><br/>
<t size='1' align='left' color='#ff8800'>Money: </t><t size='1' align='right' color='#ff0000'>$%7</t><br/>
<t size='1' align='left' color='#ff8800'>Money in Bank: </t><t size='1' align='right' color='#ff0000'>$%10</t><br/>
<t size='1' align='left' color='#ff8800'>Time to Restart: </t><t size='1' align='right' color='#ff0000'>%5 Min</t><br/>
<t size='1' align='left' color='#ffff00'>MiniGame Timer: </t><t size='1' align='right' color='#ff0000'>%13</t><br/>
<t size='1' align='left' color='#ffff00'>Zombies Left: </t><t size='1' align='right' color='#ff0000'>%14</t><br/>
<t size='1' color='#ff8800'>F5 To Toggle Debug</t><br/>
<t size='1' color='#ff8800'>Right Ctrl for most info</t>",
(_Nextlvlz),
(_levelz),
(_moneyz),
(_EXPz),
(_timesinbad),
(myHp_corrector),
(_shopMoneyz),
(_highest),
(round My_speed),
(bankMoney),
(Web_name),
(TS_name),
(_timerget),
(_countz)];
} else
{
if (IsDebug == 2) then
{
hintSilent parseText format["
<t size='1'font='TahomaB'align='left' color='#14fb06'>Player Online:</t><t size='1'font='TahomaB'align='right'color='#14fb06'>%5</t><br/>
<t size='1'font='TahomaB'align='left' color='#13ee67'>Website:</t><t size='.9'font='TahomaB'align='right'color='#13ee67'>%6</t><br/>
<t size='1'font='TahomaB'align='left' color='#13ee67'>IP:</t><t size='1'font='TahomaB'align='right'color='#13ee67'>%12</t><br/>
<br/>
<t size='1'font='TahomaB'align='left'color='#13eedb'>Vehicles:</t><t size='1' font='TahomaB'align='right'color='#13eedb'>%8(%10)</t><br/>
<t size='1'font='TahomaB'align='left'color='#13b4ee'>Air:</t><t size='1' font='TahomaB'align='right'color='#13b4ee'>%9</t><br/>
<t size='1'font='TahomaB'align='left'color='#1367ee'>Tank:</t><t size='1' font='TahomaB'align='right'color='#1367ee'>%7</t><br/>
<t size='1'font='TahomaB'align='left'color='#6d13ee'>Car:</t><t size='1' font='TahomaB'align='right'color='#6d13ee'>%11</t><br/>
<br/>
<t font='TahomaB' align='Center' size='1.2' color='#FFBF00'>[%3]</t><br/>
<img size='5' image='%4'/><br/>
<t size='1'font='TahomaB'align='left' color='#3fa77d'>Humanity:</t><t color='#3fa77d' size='1'font='TahomaB'align='right'>%14</t><br/>
<t size='1'font='TahomaB'align='left' color='#3fa77d'>Blood:</t><t color='#3fa77d' size='1'font='TahomaB'align='right'>%13</t><br/>
<t size='1'font='TahomaB'align='left' color='#3fa77d'>Name:</t><t color='#3fa77d' size='1'font='TahomaB'align='right'>%1</t><br/>
<t size='1'font='TahomaB'align='center'color='#2ECCFA'>Fps: %2</t><br/>",
(player getVariable["bodyName", name player]),
(round diag_fps),
(gettext (configFile >> "CfgVehicles" >> (typeof vehicle player) >> "displayName")),
_pic,
(count playableUnits),
(Web_name),
(count([6800, 9200, 0] nearEntities [["Tank"],25000])),
((count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000]))+100),
((count([6800, 9200, 0] nearEntities [["Air"],25000]))+100),
((count vehicles)+100),
((count([6800, 9200, 0] nearEntities [["Car"],25000]))+100),
(TS_name),
r_player_blood,
(player getVariable["humanity", 0])];
} else {
if (IsDebug == 3) then
{
hintSilent "";
};
};
};
[/spoiler ]