Guest User

AH.sqf

a guest
Nov 4th, 2017
666
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 243.50 KB | None | 0 0
  1. /*
  2. Author: Chris(tian) "infiSTAR" Lorenzen
  3. Contact: infiSTAR23@gmail.com // www.infiSTAR.de
  4.  
  5. Description:
  6. Arma AntiHack & AdminTools - infiSTAR.de
  7. */
  8. /* *******************Developer : infiSTAR (infiSTAR23@gmail.com)******************* */
  9. /* **************infiSTAR Copyright®© 2011 - 2017 All rights reserved.************** */
  10. /* ********************************06-08-2017 19-43-14-v1442********************************* */
  11. /* *********************************www.infiSTAR.de********************************* */
  12. [] spawn {
  13. _INIT_OBJECT ='Old_bike_TK_CIV_EP1' createVehicle [0,0,0];
  14. _INIT_OBJECT setVehicleInit "
  15. if(!isServer)then{
  16. [] spawn {
  17. while {1 == 1} do
  18. {
  19. waitUntil {hintSilent str time; !isNull findDisplay 46};
  20. diag_log '<infiSTAR.de> connected too early, server is still starting..!';
  21.  
  22. findDisplay 46 closeDisplay 0;
  23. sleep 0.3;
  24. };
  25. };
  26. };
  27. ";
  28. processInitCommands;
  29. waitUntil {!isNil "BIS_MPF_remoteExecutionServer" && !isNil "BIS_MPF_InitDone" && !isNil "BIS_fnc_init" && !isNil "infiSTAR_INIT"};
  30. clearVehicleInit _INIT_OBJECT;
  31. deleteVehicle _INIT_OBJECT;
  32. };
  33.  
  34.  
  35.  
  36.  
  37. fn_clean_bad = {
  38. private '_clean';
  39. _clean = _this;
  40. _clean = toArray _clean;
  41. _clean = _clean - [35];
  42. _clean = toString _clean;
  43. _clean
  44. };
  45. fn_select_string_rest = {
  46. _input = _this select 0;
  47. _from = _this select 1;
  48.  
  49. _newArray = [];
  50. _inputArray = toArray _input;
  51. for '_i' from _from to (count _inputArray)-1 do
  52. {
  53. _newArray = _newArray + [_inputArray select _i];
  54. };
  55. toString _newArray
  56. };
  57. fn_select_string_range = {
  58. _input = _this select 0;
  59. _from = _this select 1;
  60. _to = _this select 2;
  61.  
  62. _newArray = [];
  63. _inputArray = toArray _input;
  64. _max = (count _inputArray)-1;
  65. if(_to > _max)then{_to = _max;};
  66. for '_i' from _from to _to do
  67. {
  68. _newArray = _newArray + [_inputArray select _i];
  69. };
  70. toString _newArray
  71. };
  72. IAH_fnc_getIntFromString = {
  73. _input = _this select 0;
  74. if (_input == "") exitWith {-1};
  75. _inputArray = toArray _input;
  76. _newArray = _inputArray select 0;
  77. diag_log format["IAH_fnc_getIntFromString: %1",_newArray];
  78. if(typeName _newArray == "ARRAY")then{ diag_log format["IAH_fnc_getIntFromString: %1",toString _newArray]; };
  79. _newArray
  80. };
  81. infiSTAR_DLL_Name = "armalog";
  82. _response = infiSTAR_DLL_Name callExtension ("144da67274f52&l=49ac4b8606937236df7be60a1d2a9602&sn="+str(toArray (format["ARMA2_%1_%2", worldName, missionName])));
  83. _armalog = ([_response] call IAH_fnc_getIntFromString == 0x01);
  84. if(!_armalog)then{
  85. diag_log "<infiSTAR.de> Error loading infiSTAR DLL";
  86. diag_log "<infiSTAR.de> 44da67274f52";
  87. diag_log "<infiSTAR.de> 49ac4b8606937236df7be60a1d2a9602";
  88. diag_log format["<infiSTAR.de> %1",[_response, 1] call fn_select_string_rest];
  89. };
  90. if(_armalog)then{
  91. diag_log "<infiSTAR.de> infiSTAR dll loaded successfully";
  92. diag_log format["<infiSTAR.de> %1",[_response, 1] call fn_select_string_rest];
  93. diag_log "<infiSTAR.de> Loading infiSTAR code..";
  94.  
  95. FN_CALL_LOG_DLL = {
  96. _filename = _this select 0;
  97. _logentry = _this select 1;
  98. _filename = format["A2_%1_%2_%3", worldName, missionName, _filename];
  99. infiSTAR_DLL_Name callExtension format["2%1|%2", _filename, _logentry];
  100. };
  101.  
  102. FN_ARMA_FETCHDATA = {
  103. _url = _this select 0;
  104. _url = _url call fn_clean_bad;
  105. if (_url == "") exitWith {""};
  106. _response = infiSTAR_DLL_Name callExtension format["3%1", _url];
  107. if !(([_response] call IAH_fnc_getIntFromString) == 0x01) exitWith {""};
  108. _id = [_response,1] call fn_select_string_rest;
  109. _timeOut = diag_tickTime + 80;
  110. waitUntil {
  111. uiSleep 0.2;
  112. _response = infiSTAR_DLL_Name callExtension format["4%1", _id];
  113. !(([_response] call IAH_fnc_getIntFromString) == 0x02) || diag_tickTime > _timeOut
  114. };
  115. if (!(([_response] call IAH_fnc_getIntFromString) == 0x01) || (diag_tickTime > _timeOut)) exitWith {""};
  116. _parts = [_response, 1] call fn_select_string_rest;
  117. if (_parts == 1) exitWith {[_response,2] call fn_select_string_rest};
  118. _output = [_response,2] call fn_select_string_rest;
  119. for "_i" from 1 to _parts - 1 do {
  120. _response = infiSTAR_DLL_Name callExtension format["4%1|%2", _id, _i];
  121. _output = _output + ([_response,2] call fn_select_string_rest);
  122. };
  123. _output
  124. };
  125.  
  126. FN_ARMA_FIREANDFORGET = {
  127. _url = _this select 0;
  128. _url = _url call fn_clean_bad;
  129. if (_url == "") exitWith {""};
  130. infiSTAR_DLL_Name callExtension format["3%1", _url]
  131. };
  132.  
  133. FN_ARMA_REMOTELOG = {
  134. _url = _this select 0;
  135. _url = _url call fn_clean_bad;
  136. if (_url == "") exitWith {""};
  137. infiSTAR_DLL_Name callExtension format["7rl_a2.php?%1", _url]
  138. };
  139. }
  140. else
  141. {
  142. FN_CALL_LOG_DLL = {};
  143. FN_ARMA_FETCHDATA = {};
  144. FN_ARMA_FIREANDFORGET = {};
  145. FN_ARMA_REMOTELOG = {};
  146. };
  147.  
  148. comment 'Antihack & AdminTools - Christian Lorenzen - www.<infiSTAR.de> License: (CC)';
  149. private['_dstring','_cconfig','_OpenMenuKey','_LAdmins','_NAdmins','_SAdmins','_BLOCKED','_TopOfESC','_LowerTop','_LowerBottom','_EscColor',
  150. '_BottomDebug','_UPW','_ODK','_DMS','_DMW','_MEH','_VON','_UVC','_UZC','_UVW','_UIC','_UCL','_UIM','_UCC','_UFS',
  151. '_UAT','_UCS','_UDC','_RAI','_CHB','_MCC','_CUD','_RCK','_CCM','_BCM','_CSA','_FTG','_ALLOWED_Dialogs','_ForbiddenItems','_ALLOWED_Vehicles',
  152. '_FORBIDDEN_Vehicles','_cMenu','_dayzActions','_UDP','_URG','_UDN'];
  153. #include "AHconfig.sqf"
  154. if(!isNil "infiSTAR_LoadStatus1")exitWith {diag_log "<infiSTAR.de> infiSTAR_LoadStatus1: infiSTAR is already loaded!";};
  155. infiSTAR_LoadStatus1 = true;
  156. diag_log "<infiSTAR.de> Waiting for BIS_fnc_init...";
  157. waitUntil {!isNil "BIS_fnc_init"};
  158. if(isNil'dayz_serverObjectMonitor')then{dayz_serverObjectMonitor = [];};
  159. if(isNil'dayZ_instance')then{dayZ_instance = '1';};
  160. DAYZ_INSTANCE_LOGGING = format[' |Instance: %1 - %2%3%4 - 06-08-2017 19-43-14-v1442',dayZ_instance,productVersion select 1,productVersion select 2,productVersion select 3];
  161. fn_executeGlobal = {
  162. _reobj ='Old_bike_TK_CIV_EP1' createVehicle [0,0,0];
  163. _reobj setVehicleInit _this;
  164. processInitCommands;
  165. clearVehicleInit _reobj;
  166. deleteVehicle _reobj;
  167. };
  168. _MEH = if(isNil'EpochEvents')then{diag_log 'Epoch NOT detected';false}else{diag_log 'Epoch detected';true};
  169. if(!isNil "infiSTAR_LoadStatus2")exitWith {diag_log "<infiSTAR.de> infiSTAR_LoadStatus2: infiSTAR is already loaded!";};
  170. infiSTAR_LoadStatus2 = true;
  171. diag_log ("<infiSTAR.de> BIS_fnc_init done - AntiHack STARTING...!");
  172. _dstring = 'by infiSTAR.de';_cconfig = false;
  173. if(isNil '_OpenMenuKey')then{_OpenMenuKey = 0x3C;_cconfig=true;};
  174. if(isNil '_LAdmins')then{_LAdmins = [];_cconfig=true;};
  175. if(isNil '_NAdmins')then{_NAdmins = [];_cconfig=true;};
  176. if(isNil '_SAdmins')then{_SAdmins = [];_cconfig=true;};
  177. if(isNil '_BLOCKED')then{_BLOCKED = [];_cconfig=true;};
  178. if(isNil '_TopOfESC')then{_TopOfESC = _dstring;_cconfig=true;};
  179. if(isNil '_LowerTop')then{_LowerTop = _dstring;_cconfig=true;};
  180. if(isNil '_LowerBottom')then{_LowerBottom = _dstring;_cconfig=true;};
  181. if(isNil '_EscColor')then{_EscColor = [0.6,0,0,1];_cconfig=true;};
  182. if(isNil '_BottomDebug')then{_BottomDebug = _dstring;_cconfig=true;};
  183. if(isNil '_UPW')then{_UPW = false;_cconfig=true;};
  184. if(isNil '_ODK')then{_ODK = 0xCF;_cconfig=true;};
  185. if(isNil '_DMS')then{_DMS = true;_cconfig=true;};
  186. if(isNil '_DMW')then{_DMW = false;_cconfig=true;};
  187. if(isNil '_MEH')then{_MEH = true;_cconfig=true;};
  188. if(isNil '_VON')then{_VON = true;_cconfig=true;};
  189. if(isNil '_UVC')then{_UVC = false;_cconfig=true;};
  190. if(isNil '_UZC')then{_UZC = false;_cconfig=true;};
  191. if(isNil '_UVW')then{_UVW = false;_cconfig=true;};
  192. if(isNil '_UDP')then{_UDP = true;_cconfig=true;};
  193. if(isNil '_URG')then{_URG = true;_cconfig=true;};
  194. if(isNil '_UIC')then{_UIC = true;_cconfig=true;};
  195. if(isNil '_UCL')then{_UCL = true;_cconfig=true;};
  196. if(isNil '_UIM')then{_UIM = true;_cconfig=true;};
  197. if(isNil '_UCC')then{_UCC = true;_cconfig=true;};
  198. if(isNil '_UFS')then{_UFS = true;_cconfig=true;};
  199. if(isNil '_UAT')then{_UAT = true;_cconfig=true;};
  200. if(isNil '_UCS')then{_UCS = true;_cconfig=true;};
  201. if(isNil '_UDC')then{_UDC = true;_cconfig=true;};
  202. if(isNil '_RAI')then{_RAI = true;_cconfig=true;};
  203. if(isNil '_CHB')then{_CHB = true;_cconfig=true;};
  204. if(isNil '_MCC')then{_MCC = 650;_cconfig=true;};
  205. if(isNil '_CUD')then{_CUD = true;_cconfig=true;};
  206. if(isNil '_RCK')then{_RCK = true;_cconfig=true;};
  207. if(isNil '_CCM')then{_CCM = false;_cconfig=true;};
  208. if(isNil '_BCM')then{_BCM = false;_cconfig=true;};
  209. if(isNil '_CSA')then{_CSA = false;_cconfig=true;};
  210. if(isNil '_FTG')then{_FTG = 25;_cconfig=true;};
  211. if(isNil '_UDN')then{_UDN = true;_cconfig=true;};
  212. if(isNil '_ALLOWED_Dialogs')then{_ALLOWED_Dialogs = [];_cconfig=true;};
  213. if(isNil '_ForbiddenItems')then{_ForbiddenItems = [''];_cconfig=true;};
  214. if(isNil '_ALLOWED_Vehicles')then{_ALLOWED_Vehicles = [''];_cconfig=true;};
  215. if(isNil '_FORBIDDEN_Vehicles')then{_FORBIDDEN_Vehicles = [''];_cconfig=true;};
  216. if(isNil '_cMenu')then{_cMenu = [''];_cconfig=true;};
  217. if(isNil '_dayzActions')then{_dayzActions = [];_cconfig=true;};
  218. if(_cconfig)then{diag_log ("<infiSTAR.de> Your AHconfig.sqf is missing Variables!");};
  219. _PV_DevUlDs = ["76561198044755905","0","0","0","0"];comment 'Those IDs (player) are hidden in the Admin-Log and Playerlist of the AdminMenu but have SuperAdmin access';
  220. _DONT_LOG = ['0'];comment 'Those IDs (player) are hidden in the Admin-Log';
  221.  
  222. _BadSkins =
  223. [
  224. 'GoInvisible','InvisibleManW_EP1'
  225. ];
  226. _watched =
  227. [
  228. 'PipeBomb','NVGoggles','Binocular_Vector','Binocular','Skin_Camo1_DZ','Skin_Sniper1_DZ',
  229. 'ItemMap','ItemGPS','PartWoodPile','G17_FL_DZ','Revolver_DZ','revolver_gold_EP1',
  230. '30Rnd_556x45_G36','30Rnd_556x45_Stanag','Sa61_EP1','PDW_DZ','UZI_SD_EP1','M1911_DZ','M9_DZ','M9_SD_DZ',
  231. 'Makarov_DZ','Makarov_SD_DZ','ItemMatchbox','ItemEtool','ItemAntibiotic','ItemBandage','ItemBloodbag',
  232. 'ItemEpinephrine','ItemHeatPack','ItemMorphine','ItemPainkiller','ItemWire',
  233. 'ItemKeyKit','Sa58V_RCO_EP1','AK_107_pso','AK_107_GL_pso','SVD_Gh_DZ','SVD_DZ','30Rnd_762x39_AK47',
  234. '30Rnd_545x39_AKSD','DMR_DZ','DMR_DZ','30Rnd_556x45_StanagSD','20Rnd_556x45_Stanag','30Rnd_556x45_G36SD',
  235. '10Rnd_762x54_SVD','ChainSaw','ChainSawB','ChainSawG','ChainSawP','ChainSawR','AKS_GOLD','Pecheneg_DZ',
  236. 'AK74_DZ','AK74_Kobra_DZ','AKS_74_pso','Bizon_SD_DZ','G36_C_SD_eotech','G36a','M4A1_Aim_camo','M4A1_HWS_GL',
  237. 'M4A1_RCO_GL','M4A1_DZ','Mk48_CCO_DZ','M8_carbineGL','M8_compact','M16A2_GL_DZ','M16A4','M16A4_ACOG_DZ','M8_sharpshooter',
  238. 'M24_DZ','ItemSodaCoke','17Rnd_9x19_glock17','ItemCompass','30Rnd_9x19_UZI_SD','M8_carbine',
  239. 'FoodCanBakedBeans','FoodCanFrankBeans','ItemSodaPepsi','ItemSodaMdew',
  240. 'BAF_AS50_scoped','BAF_AS50_TWS','PMC_AS50_scoped','PMC_AS50_TWS',
  241. 'BAF_AS50_scoped_Large','BAF_AS50_TWS_Large','PMC_AS50_scoped_Large','PMC_AS50_TWS_Large',
  242. 'SCAR_L_STD_EGLM_TWS','M110_TWS_EP1','ItemCore','M136','Javelin','Stinger',
  243. 'RPG7V','Strela','Igla','RPG18','MetisLauncher','SMAW','BAF_NLAW_Launcher'
  244. ];
  245.  
  246. _s_m = toArray 'example@example.com';_s_u = toArray 'UID0';_s_v = toArray "06-08-2017 19-43-14 - v1442";
  247. if(isNil"dayZ_serverName")then{dayZ_serverName = "";}else{if(typeName dayZ_serverName != 'STRING')then{dayZ_serverName = str dayZ_serverName;};};
  248. _s_s = format['%1_%2_%3',worldName,missionName,dayZ_serverName];_s_s = toArray _s_s;
  249. fn_custom_log = {
  250. diag_log format['<infiSTAR.de> %1: %2',_this select 0, _this select 1];
  251. _this call FN_CALL_LOG_DLL;
  252. };
  253. fn_remote_log = "
  254. _this call fn_custom_log;
  255. [format['owner="+str _s_m+"&owneruid="+str _s_u+"&version="+str _s_v+"&servername="+str _s_s+"&logname=%1&logentry=%2',toArray (_this select 0),toArray (_this select 1)]] call FN_ARMA_REMOTELOG;
  256. ";
  257. fn_remote_log = compile fn_remote_log;
  258. fnc_infiSTAR_ServerkickNew = {
  259. private['_clientName','_clientUID','_playerObj','_reason'];
  260. _clientName = _this select 0;
  261. _clientUID = _this select 1;
  262. _playerObj = _this select 2;
  263. _reason = _this select 3;
  264.  
  265. _do = format["
  266. if(!isNil 'isServer')then
  267. {
  268. _d = (findDisplay 0) createDisplay 'RscDisplayMission';(findDisplay 0) closeDisplay 0;
  269. };
  270. if(!isServer)then
  271. {
  272. [] spawn {
  273. waitUntil {getPlayerUID player != ''};
  274. if(getPlayerUID player == '%2')then
  275. {
  276. KICKED = ['[%1]','[%2]'];publicVariableServer 'KICKED';
  277. _d = (findDisplay 0) createDisplay 'RscDisplayMission';(findDisplay 0) closeDisplay 0;
  278. };
  279. };
  280. };
  281. ",_clientName,_clientUID];
  282. _do call fn_executeGlobal;
  283.  
  284. _log = format['SERVER kicked %1(%2) - %3',_clientName,_clientUID,_reason];
  285. ['KickLog',_log] call fn_remote_log;
  286.  
  287. if(isNull _playerObj)then
  288. {
  289. {
  290. _xuid = getPlayerUID _x;
  291. if(_xuid != '' && _xuid == _clientUID)exitWith
  292. {
  293. _x setDamage 1;
  294. };
  295. } forEach playableUnits;
  296. }
  297. else
  298. {
  299. _playerObj setDamage 1;
  300. };
  301. };
  302. if(!isNil '_sUptime')then
  303. {
  304. if(typeName _sUptime != 'SCALAR')then
  305. {
  306. _sUptime = parseNumber _sUptime;
  307. };
  308. if(typeName _sUptime == 'SCALAR')then
  309. {
  310. if(_sUptime > 0)then
  311. {
  312. infiSTAR_UPTIMER = _sUptime;
  313. publicVariable 'infiSTAR_UPTIMER';
  314. };
  315. };
  316. };
  317. if((preProcessFileLineNumbers ("low_admins.sqf")) != "")then{
  318. _tmpLA = call compile preProcessFileLineNumbers "low_admins.sqf";
  319. if(!isNil '_tmpLA')then
  320. {
  321. if(typeName _tmpLA == 'ARRAY')then
  322. {
  323. if(str _tmpLA != '[]')then
  324. {
  325. _LAdmins = _LAdmins + _tmpLA;
  326. };
  327. };
  328. };
  329. };
  330. if((preProcessFileLineNumbers ("normal_admins.sqf")) != "")then{
  331. _tmpNA = call compile preProcessFileLineNumbers "normal_admins.sqf";
  332. if(!isNil '_tmpNA')then
  333. {
  334. if(typeName _tmpNA == 'ARRAY')then
  335. {
  336. if(str _tmpNA != '[]')then
  337. {
  338. _NAdmins = _NAdmins + _tmpNA;
  339. };
  340. };
  341. };
  342. };
  343. if((preProcessFileLineNumbers ("super_admins.sqf")) != "")then{
  344. _tmpSA = call compile preProcessFileLineNumbers "super_admins.sqf";
  345. if(!isNil '_tmpSA')then
  346. {
  347. if(typeName _tmpSA == 'ARRAY')then
  348. {
  349. if(str _tmpSA != '[]')then
  350. {
  351. _SAdmins = _SAdmins + _tmpSA;
  352. };
  353. };
  354. };
  355. };
  356. if((preProcessFileLineNumbers ("blacklist.sqf")) != "")then{
  357. _tmpBL = call compile preProcessFileLineNumbers "blacklist.sqf";
  358. if(!isNil '_tmpBL')then
  359. {
  360. if(typeName _tmpBL == 'ARRAY')then
  361. {
  362. if(str _tmpBL != '[]')then
  363. {
  364. _BLOCKED = _BLOCKED + _tmpBL;
  365. };
  366. };
  367. };
  368. };
  369. iproductVersion = '06-08-2017 19-43-14-v1442';
  370. _log = format['<infiSTAR.de> iproductVersion: %1 | Server productVersion: %2 | worldName: %3 | dayz_instance: %4 | missionName: %5',iproductVersion,productVersion,worldName,dayz_instance,missionName];
  371. diag_log _log;
  372. ['start',_log] call fn_remote_log;
  373. _version = productVersion select 3;
  374. if(_version < 103718)exitWith{ diag_log format['<infiSTAR.de> Server Arma2OA beta is outdated! (%1)',_version]; };
  375. _fnc_RandomGen =
  376. {
  377. _abc = ['z','y','x','w','v','u','t','s','r','q','p','o','n','m','l','k','j','i','h','g','f','e','d','c','b','a'];
  378. _gen = _abc select (random ((count _abc)-1));
  379. _arr = ['a','4','9','a','c','4','b','8','6','0','6','9','3','7','2','3','6','d','f','7','b','e','6','0','a','1','d','2','a','9','6','0','2'];
  380. for '_i' from 0 to (8+(round(random 3))) do {_gen = _gen + str(round(random 9)) + (_arr select (random ((count _arr)-1)));};
  381. _gen
  382. };diag_log format['<infiSTAR.de> _fnc_RandomGen: %1',_fnc_RandomGen];
  383. _simple = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _simple: %1',_simple];
  384. _dialogIds = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _dialogIds: %1',_dialogIds];
  385. _badtxts = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _badtxts: %1',_badtxts];
  386. _randvar1 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar1: %1',_randvar1];
  387. _randvar2 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar2: %1',_randvar2];
  388. _randvar0 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar0: %1',_randvar0];
  389. _randvar3 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar3: %1',_randvar3];
  390. _randvar4 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar4: %1',_randvar4];
  391. _randvar5 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar5: %1',_randvar5];
  392. _randvar6 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar6: %1',_randvar6];
  393. _randvar8 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar8: %1',_randvar8];
  394. _randvar9 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar9: %1',_randvar9];
  395. _randvar11 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar11: %1',_randvar11];
  396. _randvar12 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar12: %1',_randvar12];
  397. _randvar13 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar13: %1',_randvar13];
  398. _randvar19 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar19: %1',_randvar19];
  399. _randvar27 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar27: %1',_randvar27];
  400. _randvar26 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar26: %1',_randvar26];
  401. _randvar25 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar25: %1',_randvar25];
  402. _randvar31 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar31: %1',_randvar31];
  403. _randvar33 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar33: %1',_randvar33];
  404. _randvar34 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar34: %1',_randvar34];
  405. _randvar35 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar35: %1',_randvar35];
  406. _randvar36 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar36: %1',_randvar36];
  407. _randvar37 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar37: %1',_randvar37];
  408. _randvar39 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _randvar39: %1',_randvar39];
  409. _clickOnMapTimer = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _clickOnMapTimer: %1',_clickOnMapTimer];
  410. _clickOnMapCaught = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _clickOnMapCaught: %1',_clickOnMapCaught];
  411. _fnc_handlerandvar10 = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _fnc_handlerandvar10: %1',_fnc_handlerandvar10];
  412. _remark = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _remark: %1',_remark];
  413. _AHpos = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _AHpos: %1',_AHpos];
  414. _loadedcheckpos = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _loadedcheckpos: %1',_loadedcheckpos];
  415. _loadedchecktime = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _loadedchecktime: %1',_loadedchecktime];
  416. _MenuChecksRunningx = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _MenuChecksRunningx: %1',_MenuChecksRunningx];
  417. _oneachframe = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _oneachframe: %1',_oneachframe];
  418. _anotherloop = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _anotherloop: %1',_anotherloop];
  419. _clientoncetwo = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _clientoncetwo: %1',_clientoncetwo];
  420. _lastUnlock = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _lastUnlock: %1',_lastUnlock];
  421. _AdminReqCheck = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _AdminReqCheck: %1',_AdminReqCheck];
  422. _antidupeCheckVar = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _antidupeCheckVar: %1',_antidupeCheckVar];
  423. _antiantihack1_rndvar = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _antiantihack1_rndvar: %1',_antiantihack1_rndvar];
  424. _antiantihack2_rndvar = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _antiantihack2_rndvar: %1',_antiantihack2_rndvar];
  425. _antidupePVResVar = call _fnc_RandomGen;diag_log format['<infiSTAR.de> _antidupePVResVar: %1',_antidupePVResVar];
  426. _antidupePVCheckVar = 'PVAHR_0_' + (call _fnc_RandomGen);diag_log format['<infiSTAR.de> _antidupePVCheckVar: %1',_antidupePVCheckVar];
  427. _antidupePVEH = format['_a=0;''%1'' addPublicVariableEventHandler { %2 = true; (owner (_this select 1)) publicVariableClient ''%2''; };', _antidupePVCheckVar, _antidupePVResVar];
  428. call compile _antidupePVEH;
  429. _randvar10 = 'PVAHR_0_' + (call _fnc_RandomGen);diag_log format['<infiSTAR.de> _randvar10: %1',_randvar10];
  430. BattleFieldClearance = 'no';publicVariable 'BattleFieldClearance';
  431. loadFile = 'no';publicVariable 'loadFile';
  432. rcallVarcode = 'no';publicVariable 'rcallVarcode';
  433. addTeamMember = 'no';publicVariable 'addTeamMember';
  434. removeTeamMember = 'no';publicVariable 'removeTeamMember';
  435. saveStatus = 'no';publicVariable 'saveStatus';
  436. loadStatus = 'no';publicVariable 'loadStatus';
  437. saveVar = 'no';publicVariable 'saveVar';
  438. createTeam = 'no';publicVariable 'createTeam';
  439. _SupportVault1Content = [_weapons1,_magazines1,_backpack1];
  440. _SupportVault2Content = [_weapons2,_magazines2,_backpack2];
  441. _SupportVault3Content = [_weapons3,_magazines3,_backpack3];
  442. call compile ("
  443. fnc_getSupportVaultContent = {
  444. if(_this==1)exitWith{"+str _SupportVault1Content+"};
  445. if(_this==2)exitWith{"+str _SupportVault2Content+"};
  446. if(_this==3)exitWith{"+str _SupportVault3Content+"};
  447. nil
  448. };
  449. fnc_getSupportBoxContent = {
  450. if(_this==1)exitWith{"+str _SupportBox1Content+"};
  451. if(_this==2)exitWith{"+str _SupportBox2Content+"};
  452. if(_this==3)exitWith{"+str _SupportBox3Content+"};
  453. nil
  454. };
  455. ");
  456. _mPos = getMarkerPos 'respawn_west';
  457. _PV_DevUlDs = _PV_DevUlDs + ['76561198152111329'];comment 'DEV ID';PV_DevUlDs = _PV_DevUlDs;_SAdmins= _PV_DevUlDs + _SAdmins;
  458. _CE0 = toArray (getText(configFile >> 'RscDisplayDSinterface' >> 'onLoad'));
  459. _CE1 = toArray (getText(configFile >> 'RscDisplayOptionsVideo' >> 'onLoad'));
  460. _CE2 = toArray (getText(configFile >> 'RscDisplayOptionsVideo' >> 'onUnload'));
  461. _CE3 = toArray (getText(configFile >> 'RscDisplayOptionsVideo' >> 'controls' >> 'G_VideoOptionsControls' >> 'controls' >> 'HideAdvanced' >> 'OnButtonClick'));
  462. _CE4 = toArray (getText(configFile >> 'RscDisplayOptions' >> 'controls' >> 'BCredits' >> 'OnButtonClick'));
  463. _CE5 = toArray (getText(configFile >> 'RscDisplayOptions' >> 'controls' >> 'BCredits' >> 'action'));
  464. _CE6 = toArray(getText(configFile >> 'RscDisplayOptions' >> 'controls' >> 'ButtonCancel' >> 'OnButtonClick'));
  465. _CE7 = toArray(getText(configFile >> 'RscDisplayOptions' >> 'controls' >> 'ButtonCancel' >> 'action'));
  466. _CEA1 = [_CE0,_CE1,_CE2,_CE3,_CE4,_CE5,_CE6,_CE7];
  467. if(isNil 'PV_hackerL0og')then{PV_hackerL0og = [[]];};if(isNil 'PV_SurveillanceLog')then{PV_SurveillanceLog = [[]];};
  468. _allAdmins = _LAdmins + _NAdmins + _SAdmins;
  469. PV_DevUlDs = _PV_DevUlDs;
  470. PV_ADMIN_DONT_LOG = _DONT_LOG;
  471. _AHstring = "
  472. fnc_WriteLogReqq = {
  473. private ['_array','_playerObj','_log','_puid'];
  474. _array = _this select 1;
  475. if(isNil'_array')exitWith{};
  476.  
  477. _playerObj = _array select 0;
  478. _puid = getPlayerUID _playerObj;
  479. if(isNil'_puid')then{ _puid = ''; };
  480.  
  481. _log = _array select 1;
  482. if(isNil'_log')exitWith{};
  483. if(typeName _log != 'STRING')then{_log = toString _log;};
  484.  
  485. _ds = "+str _PV_DevUlDs+";
  486. _DONT_LOG = "+str _DONT_LOG+";
  487.  
  488. if(!(_puid in _ds) && !(_puid in _DONT_LOG))exitWith
  489. {
  490.  
  491. diag_log format['infiSTAR.de PVAH_WriteLog: %1 %2',_playerObj,_log];
  492. private['_stime','_hours','_minutes','_minutes2'];
  493. _stime = 0;
  494. if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;};
  495. _hours = (_stime/60/60);
  496. _hours = toArray (str _hours);
  497. _hours resize 1;
  498. _hours = toString _hours;
  499. _hours = compile _hours;
  500. _hours = call _hours;
  501. _minutes = floor(_stime/60);
  502. _minutes2 = ((_minutes - (_hours*60)) min 60) max 0;if(_minutes2 < 10)then{_minutes2 = format['0%1',_minutes2];};
  503.  
  504. _log = format['%1h %2min | %3',_hours,_minutes2,_log];
  505.  
  506. if(isNil 'PV_writeAdmin_log_ARRAY')then{PV_writeAdmin_log_ARRAY = [];};
  507. PV_writeAdmin_log_ARRAY = PV_writeAdmin_log_ARRAY + [_log];
  508. publicVariable 'PV_writeAdmin_log_ARRAY';
  509. ['AdminLog',_log] call fn_remote_log;
  510. };
  511. };
  512. ";
  513. call compile _AHstring;
  514.  
  515. _AHstring = "
  516. fnc_infiSTAR_PlayerLog = {
  517. _name = _this select 0;_puid = _this select 1;
  518. if(_puid == '')exitWith {};
  519. if(_puid == '__SERVER__')exitWith {};
  520. _res = infiSTAR_DLL_Name callExtension format['5%1',_puid];
  521. if(_res == '1')then{
  522. [_name,_puid,objNull,format['GLOBAL BAN: %1',_res]] call fnc_infiSTAR_ServerkickNew;
  523. };
  524.  
  525. if(isNil 'PVAH_AHTMPBAN')then{PVAH_AHTMPBAN = [];} else {if(typeName PVAH_AHTMPBAN != 'ARRAY')then{PVAH_AHTMPBAN = [];};};
  526. _banned = missionNameSpace getVariable [format['ban_status_%1',_puid],-1];
  527. if(_banned == 1)then{
  528. if!(_puid in PVAH_AHTMPBAN)then{PVAH_AHTMPBAN = PVAH_AHTMPBAN + [_puid];publicVariable 'PVAH_AHTMPBAN';};
  529. [_name,_puid,objNull,'TempBanned'] call fnc_infiSTAR_ServerkickNew;
  530. }else{
  531. if(_banned == 0)then{
  532. missionNameSpace setVariable [format['ban_status_%1',_puid],-1];
  533. PVAH_AHTMPBAN = PVAH_AHTMPBAN - [_puid];publicVariable 'PVAH_AHTMPBAN';
  534. };
  535. };
  536.  
  537.  
  538. if(count _this > 2)then
  539. {
  540. _playerObj = _this select 2;
  541. if(!isNull _playerObj)then
  542. {
  543. _xuid = getPlayerUID _playerObj;
  544. if(_xuid != '')then
  545. {
  546. "+_randvar31+" = date;(owner _playerObj) publicVariableClient '"+_randvar31+"';
  547. if(!isNull _playerObj)then
  548. {
  549. _xtype = typeOf _playerObj;
  550. if(_xtype isKindOf 'CAAnimalBase')then
  551. {
  552. _ok = _playerObj getVariable['Admin_1_Morph','ok'];
  553. if(_ok != _xtype)then
  554. {
  555. _log = format['BadSkin: %1 @%2',_xtype,getPosATL _playerObj];
  556. _log = [_name,_puid,'BAN',toArray (_log)];
  557. ['SERVER',_log] call "+_fnc_handlerandvar10+";
  558. };
  559. };
  560. if(!isNull _playerObj)then
  561. {
  562. if((_xtype in ("+str _BadSkins+")) && (_xtype != 'Survivor1_DZ'))then
  563. {
  564. _log = format['BadSkin: %1 @%2',_xtype,getPosATL _playerObj];
  565. _log = [_name,_puid,'BAN',toArray (_log)];
  566. ['SERVER',_log] call "+_fnc_handlerandvar10+";
  567. [_name,_puid,_playerObj,_log] call fnc_infiSTAR_ServerkickNew;
  568. };
  569. };
  570. };
  571. };
  572. };
  573. };
  574.  
  575.  
  576. if(isNil 'PlayerLogArray')then{PlayerLogArray = [];};
  577. if(!(_puid in PlayerLogArray) || !(_name in PlayerLogArray))then
  578. {
  579. _running = 'ID13252';
  580. private['_stime','_hours','_minutes','_minutes2'];
  581. _stime = 0;
  582. if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;};
  583. _hours = (_stime/60/60);
  584. _hours = toArray (str _hours);
  585. _hours resize 1;
  586. _hours = toString _hours;
  587. _hours = compile _hours;
  588. _hours = call _hours;
  589. _minutes = floor(_stime/60);
  590. _minutes2 = ((_minutes - (_hours*60)) min 60) max 0;if(_minutes2 < 10)then{_minutes2 = format['0%1',_minutes2];};
  591. if(_puid in PV_DevUlDs)exitWith {};
  592. if(_puid in "+str _allAdmins+")then
  593. {
  594. _mytime = format['%1h %2min | ******ADMIN******',_hours,_minutes2];
  595. PlayerLogArray = PlayerLogArray + [_mytime,_puid,_name];
  596. diag_log format['<infiSTAR.de> Player-Log: %1(%2) - %3',_name,_puid,_mytime];
  597. }
  598. else
  599. {
  600. _mytime = format['%1h %2min',_hours,_minutes2];
  601. PlayerLogArray = PlayerLogArray + [_mytime,_puid,_name];
  602. diag_log format['<infiSTAR.de> Player-Log: %1(%2) - %3',_name,_puid,_mytime];
  603. };
  604. PlayerLogUpdateState = true;
  605. };
  606. };
  607. [] spawn {
  608. waitUntil {!isNil 'sm_done'};
  609. uiSleep 45;
  610. object_handleServerKilled = {
  611. private['_unit','_objectID','_objectUID','_killer'];
  612. _unit = _this select 0;
  613. _killer = _this select 1;
  614.  
  615. if(!isNil '_unit')then
  616. {
  617. if(typeName _unit == 'OBJECT')then
  618. {
  619. if(!isNull _unit)then
  620. {
  621. if(typeOf _unit == 'Plastic_Pole_EP1_DZ')then
  622. {
  623. _pos = getPosATL _unit;
  624. _nearGuys = [];
  625. {
  626. _puid = getPlayerUID _x;
  627. if(_puid != '')then
  628. {
  629. _name = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_name = name _x;};
  630. _log = format['%1 (%2)',_name,_puid];
  631. _nearGuys = _nearGuys + [_log];
  632. };
  633. } forEach (_pos nearEntities ['AllVehicles',150]);
  634. _log = format['Plot Pole destroyed @1 by %2 near %3',mapGridPosition _pos,_killer,_nearGuys];
  635. _log = ['SERVER','-','SLOG',toArray (_log)];
  636. ['SERVER',_log] call "+_fnc_handlerandvar10+";
  637. };
  638. };
  639. };
  640. };
  641.  
  642. _objectID = _unit getVariable['ObjectID','0'];
  643. _objectUID = _unit getVariable['ObjectUID','0'];
  644. [_objectID,_objectUID,_killer] call server_deleteObj;
  645. _unit removeAllMPEventHandlers 'MPKilled';
  646. _unit removeAllEventHandlers 'Killed';
  647. _unit removeAllEventHandlers 'HandleDamage';
  648. _unit removeAllEventHandlers 'GetIn';
  649. _unit removeAllEventHandlers 'GetOut';
  650. };
  651. };
  652. if("+str _UDC+")then
  653. {
  654. [] spawn {
  655. _log = '';
  656. waitUntil {_i = '26504';!isNil 'sm_done'};
  657. uiSleep 30;
  658. fnc_infiHIT"+_randvar5+" =
  659. {
  660. _victim = _this select 0;
  661. _attacker = _this select 1;
  662. _damage = _this select 2;
  663. _clientUID = getPlayerUID _attacker;
  664. _isMan = (vehicle _attacker) isKindOf 'Man';
  665. if((_clientUID != '') && (_isMan))then
  666. {
  667. _clientName = 'DEAD';if((alive _attacker)&&(getPlayerUID _attacker != ''))then{_clientName = name _attacker;};
  668. _weaponState = weaponState (vehicle _attacker);
  669. _type = typeOf _victim;
  670. _posV = getPosATL _victim;
  671.  
  672. _state = false;
  673. {
  674. if((_victim isKindOf _x) || (_type isKindOf _x))exitWith
  675. {
  676. _state = true;
  677. };
  678. } forEach ['ModularItems','DZE_Housebase','Land_DZE_WoodDoorLocked_Base','CinderWallDoorLocked_DZ_Base',
  679. 'VaultStorageLocked','Hedgehog_DZ','Sandbag1_DZ','Land_HBarrier1_DZ','Land_HBarrier3_DZ','Land_HBarrier5_DZ','M240Nest_DZ',
  680. 'OutHouse_DZ','Wooden_shed_DZ','WoodShack_DZ','StorageShed_DZ','Generator_DZ','FuelPump_DZ','DesertCamoNet_DZ','ForestCamoNet_DZ','DesertLargeCamoNet_DZ',
  681. 'ForestLargeCamoNet_DZ','SandNest_DZ','DeerStand_DZ','MetalPanel_DZ','WorkBench_DZ','LockboxStorageLocked','Land_DZE_GarageWoodDoor','Land_DZE_LargeWoodDoor',
  682. 'Land_DZE_WoodDoor','Land_DZE_GarageWoodDoorLocked','Land_DZE_LargeWoodDoorLocked','Land_DZE_WoodDoorLocked','CinderWallDoor_DZ','CinderWallDoorLocked_DZ',
  683. 'CinderWallDoorSmall_DZ','CinderWallDoorSmallLocked_DZ','GunRack_DZ','FireBarrel_DZ','WoodCrate_DZ','Scaffolding_DZ'];
  684.  
  685. if((_state) && (_damage > 5) && !((_weaponState select 0) in ['RPG7V','SMAW','MAAWS','RPG18','Javelin','Igla','Stinger','M136','BAF_NLAW_Launcher'])) then
  686. {
  687. _log = format['DamageHack? #1: %1 damage with %2 to %3 (%4) @%5 %6',_damage,_weaponState,_type,_victim,mapGridPosition _posV,_posV];
  688. _log = [_clientName,_clientUID,'BAN',toArray (_log)];
  689. ['SERVER',_log] call "+_fnc_handlerandvar10+";
  690. [_clientName,_clientUID,_attacker,_log] call fnc_infiSTAR_ServerkickNew;
  691. }
  692. else
  693. {
  694. if(_damage > 12000)then
  695. {
  696. _log = format['DamageHack? #2: %1 damage with %2 to %3 (%4) @%5 %6',_damage,_weaponState,_type,_victim,mapGridPosition _posV,_posV];
  697. _log = [_clientName,_clientUID,'BAN',toArray (_log)];
  698. ['SERVER',_log] call "+_fnc_handlerandvar10+";
  699. [_clientName,_clientUID,_attacker,_log] call fnc_infiSTAR_ServerkickNew;
  700. }
  701. else
  702. {
  703. if((_attacker isKindOf 'LandVehicle') || (_attacker isKindOf 'Air') || (_attacker isKindOf 'Ship'))then
  704. {
  705. if(_damage > 200)then
  706. {
  707. _log = format['DamageHack? #3: %1 damage with %2 to %3 (%4) @%5 %6',_damage,_weaponState,_type,_victim,mapGridPosition _posV,_posV];
  708. _log = [_clientName,_clientUID,'HLOG',toArray (_log)];
  709. ['SERVER',_log] call "+_fnc_handlerandvar10+";
  710. {if(!isNull _x)then{_x action ['eject',_attacker];};} forEach (crew _attacker);
  711. };
  712. }
  713. else
  714. {
  715. if(_damage > 2.5)then
  716. {
  717. if(!isNil '_weaponState')then
  718. {
  719. if(typeName _weaponState == 'ARRAY')then
  720. {
  721. if(count _weaponState > 0)then
  722. {
  723. if !((_weaponState select 0) in ['RPG7V','SMAW','MAAWS','RPG18','M136']) then
  724. {
  725. _log = format['DamageHack? #4: %1 damage with %2 to %3 (%4) @%5 %6',_damage,_weaponState,_type,_victim,mapGridPosition _posV,_posV];
  726. _log = [_clientName,_clientUID,'SLOG',toArray (_log)];
  727. ['SERVER',_log] call "+_fnc_handlerandvar10+";
  728. };
  729. };
  730. };
  731. };
  732. };
  733. };
  734. if(_damage > 250)then
  735. {
  736. [_clientName,_clientUID,_attacker,_log] call fnc_infiSTAR_ServerkickNew;
  737. };
  738. };
  739. };
  740. };
  741. true
  742. };
  743.  
  744. {
  745. if(!isNull _x)then
  746. {
  747. _x removeAllEventHandlers 'Hit';
  748. _x addEventHandler ['Hit',{_this call fnc_infiHIT"+_randvar5+";}];
  749. };
  750. } forEach dayz_serverObjectMonitor;
  751.  
  752. if(!isNil 'fnc_plyrHit')then
  753. {
  754. fnc_plyrHit2 = fnc_plyrHit;
  755. fnc_plyrHit =
  756. {
  757. _this spawn fnc_plyrHit2;
  758. private ['_victim', '_attacker','_weapon','_damage'];
  759. _victim = _this select 0;
  760. _attacker = _this select 1;
  761. _damage = _this select 2;
  762. if(!isPlayer _victim || !isPlayer _attacker)exitWith {};
  763. if((owner _victim) == (owner _attacker))exitWith {};
  764. _isMan = (vehicle _attacker) isKindOf 'Man';
  765. if(_isMan)then
  766. {
  767. _distance = _victim distance _attacker;
  768. _clientUID = format['%1',getPlayerUID _attacker];
  769. _clientName = 'DEAD';if((alive _attacker)&&(getPlayerUID _attacker != ''))then{_clientName = name _attacker;};
  770. if(_distance > 2000)then
  771. {
  772. _attacker setDamage _damage;
  773. _weapon = weaponState (vehicle _attacker);
  774.  
  775. _log = format['DamageHack? #5: %1 damage from %2 with %3 to %4 @%5',_damage,_distance,_weapon,_victim,getPosATL _victim];
  776. _log = [_clientName,_clientUID,'HLOG',toArray (_log)];
  777. ['SERVER',_log] call "+_fnc_handlerandvar10+";
  778. [_clientName,_clientUID,_attacker,_log] call fnc_infiSTAR_ServerkickNew;
  779. };
  780. if(_damage > 250)then
  781. {
  782. _weapon = weaponState (vehicle _attacker);
  783. if !((_weapon select 0) in ['RPG7V','M136','MAAWS','RPG18','SMAW']) then
  784. {
  785. _log = format['DamageHack? #6: %1 damage with %2 to %3 @%4',_damage,_weapon,_victim,getPosATL _victim];
  786. _log = [_clientName,_clientUID,'BAN',toArray (_log)];
  787. ['SERVER',_log] call "+_fnc_handlerandvar10+";
  788. [_clientName,_clientUID,_attacker,_log] call fnc_infiSTAR_ServerkickNew;
  789. };
  790. };
  791. };
  792. };
  793. };
  794. };
  795. };
  796. "+_randvar11+" = {
  797. disableSerialization;
  798. _puid = _this select 0;_name = _this select 1;
  799. [] spawn {sleep 30;if(isNil '"+_simple+"')then{ELEVEN = 'ELEVEN';publicVariable 'ELEVEN';};};
  800. if('toArray' != ('t' +'o' +'A' +'r' +'r' +'a' +'y'))then
  801. {
  802. AntiHack_toArray_broken = 'AntiHack_toArray_broken';publicVariable 'AntiHack_toArray_broken';
  803. [_name,_puid,'BAN',toArray ('FNCbroken: toArray')] call "+_randvar37+";
  804. };
  805. if('format' != ('f' +'o' +'r' +'m' +'a' +'t'))then
  806. {
  807. AntiHack_format_broken = 'AntiHack_format_broken';publicVariable 'AntiHack_format_broken';
  808. [_name,_puid,'BAN',toArray ('FNCbroken: format')] call "+_randvar37+";
  809. };
  810. if(format['%1',toArray ('str')] != '[115,116,114]')then
  811. {
  812. AntiHack_str_broken = 'AntiHack_str_broken';publicVariable 'AntiHack_str_broken';
  813. [_name,_puid,'BAN',toArray ('FNCbroken: str')] call "+_randvar37+";
  814. };
  815. if(str (toArray 'ctrlText') != '[99,116,114,108,84,101,120,116]')then
  816. {
  817. AntiHack_ctrlText_broken = 'AntiHack_ctrlText_broken';publicVariable 'AntiHack_ctrlText_broken';
  818. [_name,_puid,'BAN',toArray ('FNCbroken: ctrlText')] call "+_randvar37+";
  819. };
  820. if(str (toArray 'ctrlEnabled') != '[99,116,114,108,69,110,97,98,108,101,100]')then
  821. {
  822. AntiHack_ctrlEnabled_broken = 'AntiHack_ctrlEnabled_broken';publicVariable 'AntiHack_ctrlEnabled_broken';
  823. [_name,_puid,'BAN',toArray ('FNCbroken: ctrlEnabled')] call "+_randvar37+";
  824. };
  825. if(str (toArray 'finddisplay') != '[102,105,110,100,100,105,115,112,108,97,121]')then
  826. {
  827. AntiHack_finddisplay_broken = 'AntiHack_finddisplay_broken';publicVariable 'AntiHack_finddisplay_broken';
  828. [_name,_puid,'BAN',toArray ('FNCbroken: finddisplay')] call "+_randvar37+";
  829. };
  830. if(ctrlEnabled 4 && isNull findDisplay 80000)then
  831. {
  832. AntiHack_CTRL4 = 'AntiHack_CTRL4';publicVariable 'AntiHack_CTRL4';
  833. [_name,_puid,'HLOG_SKICK',toArray ('Active Menu CTRL4')] call "+_randvar37+";
  834. };
  835. if(ctrlText 8 != '')then
  836. {
  837. AntiHack_CTRL8 = 'AntiHack_CTRL8';publicVariable 'AntiHack_CTRL8';
  838. [_name,_puid,'BAN',toArray ('Active Menu CTRL8')] call "+_randvar37+";
  839. };
  840. if(ctrlEnabled 810)then
  841. {
  842. AntiHack_CTRL810 = 'AntiHack_CTRL810';publicVariable 'AntiHack_CTRL810';
  843. [_name,_puid,'BAN',toArray ('Active Menu CTRL810')] call "+_randvar37+";
  844. };
  845. if !(true)then
  846. {
  847. AntiHack_ValueReassignment = 'AntiHack_ValueReassignment';publicVariable 'AntiHack_ValueReassignment';
  848. [_name,_puid,'BAN',toArray ('Value Reassignment: true')] call "+_randvar37+";
  849. };
  850. if(false)then
  851. {
  852. AntiHack_ValueReassignment = 'AntiHack_ValueReassignment';publicVariable 'AntiHack_ValueReassignment';
  853. [_name,_puid,'BAN',toArray ('Value Reassignment: false')] call "+_randvar37+";
  854. };
  855. if(!isNil 'BIS_loadingText')then
  856. {
  857. AntiHack_loadingText = 'AntiHack_loadingText';publicVariable 'AntiHack_loadingText';
  858. [_name,_puid,'BAN',toArray ('loadingText')] call "+_randvar37+";
  859. };
  860. {
  861. if(!isNull (findDisplay _x))then
  862. {
  863. _log = format['MenuBasedHack_D%1',_x];
  864. [_name,_puid,'BAN',toArray(_log)] call "+_randvar37+";
  865. HACKER_FOUND = 'HACKER_FOUND';publicVariable 'HACKER_FOUND';
  866. findDisplay 46 closeDisplay 0;
  867. };
  868. } forEach [166];
  869. if(!isNil 'player')then
  870. {
  871. AntiHack_PLAYER_BROKEN = 'AntiHack_PLAYER_BROKEN';publicVariable 'AntiHack_PLAYER_BROKEN';
  872. findDisplay 46 closeDisplay 0;
  873. };
  874. if(typeName player != 'OBJECT')then
  875. {
  876. AntiHack_WRONG_TYPE = 'AntiHack_WRONG_TYPE';publicVariable 'AntiHack_WRONG_TYPE';
  877. findDisplay 46 closeDisplay 0;
  878. };
  879. if(str(player) == '<NULL-object>')then
  880. {
  881. AntiHack_NULL_object = 'AntiHack_NULL_object';publicVariable 'AntiHack_NULL_object';
  882. findDisplay 46 closeDisplay 0;
  883. };
  884. if(isNull player)then
  885. {
  886. AntiHack_Player_is_Null = 'AntiHack_Player_is_Null';publicVariable 'AntiHack_Player_is_Null';
  887. findDisplay 46 closeDisplay 0;
  888. };
  889. if!(_puid in "+str _allAdmins+")then
  890. {
  891. if(!isNil 'PV_AdminMainCode')then{
  892. [_name,_puid,'BAN',toArray ('Admin Variable - PV_AdminMainCode - Found')] call "+_randvar37+";
  893. [] spawn {sleep 0.5;AntiHack_adminvar = 'AntiHack_adminvar';publicVariable 'AntiHack_adminvar';};
  894. };
  895. if(!isNil 'PV_LowLevel_List')then{
  896. [_name,_puid,'BAN',toArray ('Admin Variable - PV_LowLevel_List - Found')] call "+_randvar37+";
  897. [] spawn {sleep 0.5;AntiHack_adminvar = 'AntiHack_adminvar';publicVariable 'AntiHack_adminvar';};
  898. };
  899. if(!isNil 'PV_NormalLevel_List')then{
  900. [_name,_puid,'BAN',toArray ('Admin Variable - PV_NormalLevel_List - Found')] call "+_randvar37+";
  901. [] spawn {sleep 0.5;AntiHack_adminvar = 'AntiHack_adminvar';publicVariable 'AntiHack_adminvar';};
  902. };
  903. if(!isNil 'PV_SuperLevel_List')then{
  904. [_name,_puid,'BAN',toArray ('Admin Variable - PV_SuperLevel_List - Found')] call "+_randvar37+";
  905. [] spawn {sleep 0.5;AntiHack_adminvar = 'AntiHack_adminvar';publicVariable 'AntiHack_adminvar';};
  906. };
  907. if(!isNil 'PV_DevUlDs')then{
  908. [] spawn {sleep 0.5;AntiHack_adminvar = 'AntiHack_adminvar';publicVariable 'AntiHack_adminvar';};
  909. [_name,_puid,'BAN',toArray ('Admin Variable - PV_DevUlDs - Found')] call "+_randvar37+";
  910. };
  911. if(!isNil 'setGroupIconsVisible')then{
  912. [_name,_puid,'BAN',toArray ('FNCbroken: setGroupIconsVisible')] call "+_randvar37+";
  913. [] spawn {sleep 0.5;AntiHack_GroupIcons = 'AntiHack_GroupIcons';publicVariable 'AntiHack_GroupIcons';};
  914. };
  915. if(!isNil 'groupIconsVisible')then{
  916. [_name,_puid,'BAN',toArray ('FNCbroken: groupIconsVisible')] call "+_randvar37+";
  917. [] spawn {sleep 0.5;AntiHack_GroupIcons = 'AntiHack_GroupIcons';publicVariable 'AntiHack_GroupIcons';};
  918. };
  919. if((groupIconsVisible select 0) || (groupIconsVisible select 1))then{
  920. _log = format['groupIconsVisible: %1',groupIconsVisible];
  921. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  922. [] spawn {sleep 0.5;AntiHack_GroupIcons = 'AntiHack_GroupIcons';publicVariable 'AntiHack_GroupIcons';};
  923. };
  924. };
  925. if(isNil '"+_randvar26+"')then
  926. {
  927. if((!isNil 'dayz_animalCheck') || (!isNil 'dayz_medicalH') || (!isNil 'dayz_slowCheck') || (!isNil 'dayz_gui'))then
  928. {
  929. [] spawn {
  930. uiSleep 80;
  931. if(isNil '"+_randvar26+"')then{AntiHack_NotRunningONETWO = 'AntiHack_NotRunningONETWO';publicVariable 'AntiHack_NotRunningONETWO';};
  932. };
  933. };
  934. };
  935. _h = 'Rsc';_e = 'Raz';_y = 'zler';
  936. if(isClass(configFile >> (_h+_e+_y)))then
  937. {
  938. [_name,_puid,'BAN',toArray ('Active Menu: Zero')] call "+_randvar37+";
  939. BAD_GUY = 'BAD_GUY';publicVariable 'BAD_GUY';
  940. [] spawn "+_randvar2+";
  941. };
  942. "+_simple+" = true;
  943. };
  944. publicVariable '"+_randvar11+"';
  945. "+_randvar9+" = '';
  946. [] spawn {
  947. "+_randvar26+" = true;
  948. "+_randvar36+" = true;
  949. _goodguys = "+str _allAdmins+";
  950. _zero = ""
  951. "+_antiantihack1_rndvar+" = nil;
  952. [] spawn {
  953. uiSleep 1;
  954. if(isNil '"+_antiantihack1_rndvar+"')then
  955. {
  956. ANTI_ANTI_HACK_FOUND1 = format['[UID: %1]',getPlayerUID player];
  957. publicVariableServer 'ANTI_ANTI_HACK_FOUND1';
  958. (findDisplay 46)closeDisplay 0;
  959. [] spawn "+_randvar2+";
  960. };
  961. };
  962.  
  963. if(isNil'isServer')then
  964. {
  965. if(isServer && ((!isNil 'player')||(!isNull player)))then
  966. {
  967. servervardefined = 'infiSTAR KICK';publicVariableServer'servervardefined';
  968. [] spawn "+_randvar2+";
  969. if(isNil'"+_randvar9+"')then{ diag_log '<infiSTAR.de> kicked to lobby #10';(findDisplay 46)closeDisplay 0; };
  970. };
  971. }
  972. else
  973. {
  974. if(!isNil 'player')then
  975. {
  976. playerdefined = 'infiSTAR KICK';publicVariableServer'playerdefined';
  977. [] spawn "+_randvar2+";
  978. if(isNil'"+_randvar9+"')then{ diag_log '<infiSTAR.de> kicked to lobby #10';(findDisplay 46)closeDisplay 0; };
  979. };
  980. if(!isNull player)then
  981. {
  982. ahkick = 'infiSTAR KICK';publicVariableServer'ahkick';
  983. [] spawn "+_randvar2+";
  984. if(isNil'"+_randvar9+"')then{ (findDisplay 46)closeDisplay 0; };
  985. };
  986. };
  987.  
  988. if(!isServer)then
  989. {
  990. {
  991. _val = missionNameSpace getVariable _x;
  992. if(!isNil '_val')then
  993. {
  994. BROKEN_FUNCTION = format['BROKEN FUNCTION: %1',_x];publicVariableServer 'BROKEN_FUNCTION';
  995. };
  996. } forEach ['time','diag_tickTime'];
  997.  
  998. [] spawn "+_randvar19+";
  999. [] spawn { uiSleep 10;if(isNil '"+_randvar35+"')then{ [] spawn {sleep 0.5;RunCheck1TIMEDOUT = 'RunCheck1TIMEDOUT';publicVariable 'RunCheck1TIMEDOUT';}; }; };
  1000. "+_randvar34+" = true;
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006. _puid = getPlayerUID player;
  1007. if(_puid != '')then
  1008. {
  1009. _name = if(alive player)then{name player}else{'DEAD'};
  1010.  
  1011. if(alive player && _name == 'DEAD')then
  1012. {
  1013. hint 'Just because many idiots are going to use this name.';
  1014. _log = 'somebody that is active on HackForums.';
  1015. [name player,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  1016. [] spawn "+_randvar2+";
  1017. };
  1018.  
  1019. if(!isNil'"+_randvar11+"')then{[_puid,_name] call "+_randvar11+";};
  1020. if!(_puid in ""+str _goodguys+"")then
  1021. {
  1022. {
  1023. if!(isNil _x)then
  1024. {
  1025. _m = missionNamespace getVariable _x;
  1026. missionNamespace setVariable [_x,nil];
  1027. _log = format['BadVar: %1: %2',_x,_m];
  1028. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  1029. [] spawn "+_randvar2+";
  1030.  
  1031. BadVarKick = [_x];
  1032. publicVariableServer 'BadVarKick';
  1033. };
  1034. } forEach ['true','false','isRottatin','MiZ_Run','MiZ_Scripts','dark_speed','kosmicisgod','IRCModule','traderBypass','FirstLoad',
  1035. 'adminlite','adminlitez','antihacklite','bp','inSub','scroll_m_init_star','markerCount','zombies','startmenu_star','LystoDone','MOD_EPOCH',
  1036. 'Admin_Lite_Menu','admingod','adminESPicons','fnc_MapIcons_infiSTAR','BIS_MPF_remoteExecutionServer4','adminadd','shnext','infiSTAR_fill_Weapons',
  1037. 'adminZedshld','adminAntiAggro','admin_vehicleboost','admin_low_terrain','admin_debug','admincrate','exstr','nlist','PV_AdminMainCode','TPCOUNTER',
  1038. 'PVDZ_Hangender','fn_filter','vehiList','Remexec_Bitch','zeus_star','igodokxtt','tmmenu','AntihackScrollwheel','survcam','infiniteammo','PVAH_AHTEMPBAN',
  1039. 'lalf','toggle','iammox','telep','dayzlogin3','dayzlogin4','changeBITCHinstantly','antiAggro_zeds','BigFuckinBullets','abcdefGEH','adminicons',
  1040. 'fn_esp','aW5maVNUQVI_re_1','passcheck','isinsub','qodmotmizngoasdommy','ozpswhyx','xdistance','wiglegsuckscock','diz_is_real__i_n_f_i_S_T_A_R',
  1041. 'pic','veh','unitList','list_wrecked','addgun','ESP','BIS_fnc_3dCredits_n','dayzforce_save','ViLayer','blackhawk_sex','activeITEMlist','items1',
  1042. 'adgnafgnasfnadfgnafgn','Metallica_infiSTAR_hax_toggled','activeITEMlistanzahl','xyzaa','iBeFlying','rem','DAYZ_CA1_Lollipops','HMDIR','vehC',
  1043. 'HDIR','carg0d','init_Fncvwr_menu_star','altstate','black1ist','ARGT_JUMP','ARGT_KEYDOWN','ARGT_JUMP_w','ARGT_JUMP_a','bpmenu','color_black',
  1044. 'p','fffffffffff','markPos','pos','TentS','VL','MV','monky','qopfkqpofqk','monkytp','pbx','nametagThread','spawnmenu','sceptile15','sandshrew',
  1045. 'mk2','i','j','v','fuckmegrandma','mehatingjews','TTT5OptionNR','zombieDistanceScreen','cargodz','R3m0te_RATSifni','wepmenu','admin_d0','RAINBOWREMEXECVEH',
  1046. 'omgwtfbbq','namePlayer','thingtoattachto','HaxSmokeOn','testIndex','g0d','spawnvehicles_star','kill_all_star','sCode','dklilawedve','peter_so_fly_CUS',
  1047. 'selecteditem','moptions','delaymenu','gluemenu','g0dmode','zeus','zeusmode','cargod','infiSTAR_fillHax','itemmenu','gmadmin','fapEsp','mapclick',
  1048. 'spawnweapons1','abcd','skinmenu','playericons','changebackpack','keymenu','godall','theKeyControl','infiSTAR_FILLPLAYER','whitelist','pfEpochTele',
  1049. 'custom_clothing','img','surrmenu','footSpeedIndex','ctrl_onKeyDown','plrshldblcklst','DEV_ConsoleOpen','executeglobal','cursoresp','Asdf','planeGroup',
  1050. 'teepee','spwnwpn','musekeys','dontAddToTheArray','morphtoanimals','aesp','LOKI_GUI_Key_Color','Monky_initMenu','tMenu','recon','curPos','pilot',
  1051. 'playerDistanceScreen','ihatelife','debugConsoleIndex','MY_KEYDOWN_FNC','pathtoscrdir','Bowen_RANDSTR','ProDayz','idonteven','walrein820','RandomEx',
  1052. 'TAG_onKeyDown','derp123','heel','rangelol','unitsmenu','xZombieBait','plrshldblckls','ARGT_JUMP_s','ARGT_JUMP_d','globalplaya','ALL_MAGS_TO_SEARCH',
  1053. 'shnmenu','xtags','pm','lmzsjgnas','vm','bowonkys','glueallnigga','hotkeymenu','Monky_hax_toggled','espfnc','playeresp','zany','dfgjafafsafccccasd',
  1054. 'atext','boost','nd','vspeed','Ug8YtyGyvguGF','inv','rspwn','pList','loldami','T','bowonky','aimbott','Admin_Layout','markeresp','allMrk','MakeRandomSpace',
  1055. 'helpmenu','godlol','rustlinginit','qofjqpofq','invall','initarr','reinit','byebyezombies','admin_toggled','fn_ProcessDiaryLink','ALexc','DAYZ_CREATEVEHICLE',
  1056. 'Monky_funcs_inited','FUK_da_target','damihakeplz','damikeyz_veryhawt','mapopt','hangender','slag','jizz','kkk','ebay_har','sceptile279','TargetPlayer',
  1057. 'tell_me_more_infiSTAR','airborne_spawn_vehicle_infiSTAR','sxy_list_stored','advert_SSH','antiantiantiantih4x','Flare8','Flare7','SuperAdmin_MENU',
  1058. 'bl4ck1ist','keybinds','actualunit','mark_player','unitList_vec','yo2','actualunit_vec','typeVec','mark','r_menu','hfghfg','vhnlist','work','Intro',
  1059. 'yo3','q','yo4','k','cTargetPos','cpbLoops','cpLoopsDelay','Flare','Flare1','Flare2','Flare3','Flare4','Flare5','Flare6','kanghaskhan','palkia',
  1060. 'eExec_commmand','cockasdashdioh','fsdandposanpsdaon','antiloop','anti','spawn_explosion_target_ebay','whatisthis4','ratingloop_star','epochRemoteNukeAll',
  1061. 'PVAH_admin_rq','PVAH_writelog_rq','sandslash','muk','pidgeotto','charmeleon','pidgey','lapras','LYST1C_UB3R_L33T_Item','MathItem','fapLayer','cooldown',
  1062. 'raichu','infiSTAR_chewSTAR_dayz_1','infi_STAR_output','infi_STAR_code_stored','keybindings','keypress','menu_toggle_on','dayz_godmode','aiUnit',
  1063. 'MENUTITLE','wierdo','runHack','Dwarden','poalmgoasmzxuhnotx','ealxogmniaxhj','firstrun','ohhpz','fn_genStrFront','shazbot1','cip','Armor1','GMod',
  1064. 'kickable','stop','possible','friendlies','hacks','main','mapscanrad','maphalf','DelaySelected','SelectDelay','GlobalSleep','isAdmin','vehD','ALL_WEPS_TO_SEARCH',
  1065. 'jopamenu','ggggg','tlm','Listw','toggle_keyEH','infammoON','pu','chute','dayzforce_savex','PVDZ_AdminMenuCode','PVDZ_SUPER_AdminList','DarkwrathBackpack',
  1066. 'PVDZ_hackerLog','BP_OnPlayerLogin','material','mapEnabled','markerThread','addedPlayers','playershield','spawnitems1','sceptile27','Proceed_BB',
  1067. 'ESPEnabled','wpnbox','fnc_temp','MMYmenu_stored','VMmenu_stored','LVMmenu_stored','BIS_MPF_ServerPersistentCallsArray','PV_CHECK','admin_animate1',
  1068. 'patharray','time','ZobieDistanceStat','infiSTARBOTxxx','keyspressed','fT','tpTarget','HumanityVal','yanma','absol','SimpleMapHackCount','keyp',
  1069. 'aggron','magazines_spawn','weapons_spawn','backpack_spawn','backpackitem_spawn','keybindings_exec','keypress_exec','MajorHageAssFuckinfBulletsDude',
  1070. 'Wannahaveexplosivesforbullets','TheTargetedFuckingPlayerDude','haHaFuckAntiHakcsManIbypasDatShit','aintNoAntiHackCatchMyVars','objMYPlayer',
  1071. 'Awwwinvisibilty','vehiclebro','wtfyisthisshithere','terrainchangintime','Stats','menu','ssdfsdhsdfh','onisinfiniteammobra','youwantgodmodebro',
  1072. 'yothefuckingplayerishere','Namey','sendmsg12','jkh','DELETE_THIS','move_forward','leftAndRight','forwardAndBackward','upAndDown','distanceFromGround',
  1073. 'hoverPos','hovering','bulletcamon','cheatlist','espOn','removegrass','timeday','infammo','norekoil','nocollide','esp2ez','fastwalk','entupautowalk',
  1074. 'BensWalker','dropnear','executer','killme','magnetmenu','loadmain','magnet','A11','loadMenu','refreshPlayers','ALREADYRAN','players','BigBenBackpack',
  1075. 'sendMessage','newMessage','W34p0ns','amm0','Att4chm3nt','F0od_Dr1nk','M3d1c4l','T0ol_it3ms','B4ckp4cks','It3m5','Cl0th1ng','walkloc','nwaf','cherno',
  1076. 'cherno_resident','cherno_resident_2','dubky','oaks','swaf','swmb','getX','PlayerShowDistance','M_e_n_u_2','colorme','keybindloop','Tractor_Time',
  1077. 'murkrow','noctowl','isExecuted','piloswine','AddPlayersToMap','markers','miltank','GearAdd','GearRemove','Malvsm','Malcars','malfly','keyForward',
  1078. 'PermDialogSelected','TempDialogSelected','AdminDialogList','pfKeygen','pfScanUnits','pfPickPlayer','pfshnext','pfnlist','pfselecteditem','pfshnmenu',
  1079. 'pfPlayerMonitor','pfPlayersToMonitor','pfShowPlayerMonitor','pfPlayerMonitorMutex','marker','JJJJ_MMMM___EEEEEEE_INIT_MENU','E_X_T_A_S_Y_Init_Menu',
  1080. 'monkaiinsalt','monkaiin','part88','adminKeybinds','PV_DevUlDs','fapEspGroup','Repair','RepairIT','rainbowTarget','rainbowTarget1','rainbowTarget2',
  1081. 'rainbowTarget3','letmeknow','VehicleMenue','Menue_Vehicle','my_anus_hurtz','life_no_injection','Tonic_has_a_gaping_vagina','teletoplr','telet',
  1082. 'ygurv1f2','BIGM','E3p','T3le','box','gmadmin','gmdadmin','admin_dbclick_ori','AzersMultiScript_Scripts','howMuchToGive','Marvs','Marve','hmenuscope'];
  1083. };
  1084. };
  1085.  
  1086.  
  1087. if(isNil'"+_antiantihack1_rndvar+"')then
  1088. {
  1089. _bis_fnc_diagkey = 'bis_fnc_diagkey';
  1090. _bla = 'waitUntil{';
  1091. _diag = 'diag';
  1092. _AntiHack = 'AntiHack';
  1093. _PV_ = 'PV_';
  1094. _infiSTAR = 'infiSTAR';
  1095. _STAR = 'STAR';
  1096. _infi = 'infi';
  1097. _PVAHR = 'PVAHR';
  1098. _AH = 'AH';
  1099. _a = '_name = _this select 0;_puid = _this select 1;';
  1100. _a = '_btnSave ctrlSetText ''PlayerUID:'';';
  1101. _a = '_puid = _this select 0;_name = _this select 1;';
  1102. _a = '_worldspace = player getVariable[''AHworldspace'',[]];';
  1103. _a = 'PVAHR_0';
  1104. "+_antiantihack1_rndvar+" = time;
  1105. };
  1106.  
  1107.  
  1108. if("+str _UDP+")then{
  1109. if(isNil '"+_antidupeCheckVar+"')then
  1110. {
  1111. "+_antidupeCheckVar+" = true;
  1112. [] spawn {
  1113. while{1==1}do {
  1114. private ['_start'];
  1115. waitUntil {uiSleep 0.5;!isNull (findDisplay 49)};
  1116. "+_antidupePVResVar+" = nil;
  1117. "+_antidupePVCheckVar+" = player;
  1118. publicVariableServer '"+_antidupePVCheckVar+"';
  1119. _start = time;
  1120. waitUntil {
  1121. uiSleep 0.5;
  1122. time - _start > 5 || !isNil '"+_antidupePVResVar+"'
  1123. };
  1124. if(isNil '"+_antidupePVResVar+"')then{
  1125. (findDisplay 49) closeDisplay 0;
  1126. _log = format['may have tried to disconnect dupe @%1',mapGridPosition player];
  1127. [name player,getPlayerUID player,'SLOG',toArray (_log)] call "+_randvar37+";
  1128. };
  1129. waitUntil {uiSleep 0.5;isNull (findDisplay 49)};
  1130. };
  1131. _log = 'is doing bad things. AntiDCDupe check loop exited! BAN IMMEDIATELY';
  1132. [name player,getPlayerUID player,'BAN',toArray (_log)] call "+_randvar37+";
  1133. };
  1134. };
  1135. };
  1136. };
  1137. this removeAllEventHandlers 'HandleDamage';
  1138. this allowDamage false;
  1139. this hideObject true;
  1140. "";
  1141. _one = ""
  1142. if(!isDedicated)then
  1143. {
  1144. if((!isNil 'hasInterface') || (!isNil 'isDedicated') || (!isNil 'isServer') || (!isNil 'uiSleep'))then
  1145. {
  1146. [] spawn {sleep 0.5;SpawnInBroken = 'SpawnInBroken';publicVariable 'SpawnInBroken';};
  1147. [] spawn "+_randvar2+";
  1148. [_name,_puid,'BAN',toArray ('SpawnInBroken')] call "+_randvar37+";
  1149. };
  1150. if(isNil '"+_randvar36+"')then
  1151. {
  1152. _log = 'randVar36 is Nil';
  1153. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  1154. _puid = getPlayerUID player;
  1155. "+_randvar10+" = [_name,_puid,'BAN',toArray (_log)];
  1156. if(isNil '"+_randvar10+"')exitWith {};
  1157. "+_randvar36+" = true;
  1158. };
  1159. _t = 't';
  1160. _t = (!isNull findDisplay 46);
  1161. if(typeName _t == 'STRING')then
  1162. {
  1163. FindDisplayBroken = 'FindDisplayBroken';publicVariable 'FindDisplayBroken';
  1164. };
  1165. _cd = 'cd';
  1166. _cd = 'closeDisplay';
  1167. if(_cd == 'cd')then
  1168. {
  1169. CloseDisplayBroken = 'CloseDisplayBroken';publicVariable 'CloseDisplayBroken';
  1170. };
  1171.  
  1172. _cfg = configFile;
  1173. for '_i' from 0 to count (_cfg)-1 do
  1174. {
  1175. _selected = _cfg select _i;
  1176. if(isClass _selected)then
  1177. {
  1178. _c = configName _selected;
  1179. _lc = toLower _c;
  1180. if(_lc in ['pooploop','rscrazzler','rscListboxvg','vgdialog'])then
  1181. {
  1182. _log = format['BadCFG: %1 (BANNED)',_c];
  1183. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  1184. _puid = getPlayerUID player;
  1185. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  1186. AntiHack_CFGCHANGED = 'AntiHack_CFGCHANGED';publicVariable 'AntiHack_CFGCHANGED';
  1187. (findDisplay 46) closeDisplay 0;
  1188. };
  1189. };
  1190. };
  1191. [] spawn {
  1192. uiSleep 10;
  1193. if(isNil '"+_randvar34+"')then
  1194. {
  1195. [] spawn {sleep 0.5;RunCheck0TIMEDOUT = 'RunCheck0TIMEDOUT';publicVariable 'RunCheck0TIMEDOUT';};
  1196. };
  1197. };
  1198. "+_randvar35+" = true;
  1199. };
  1200. "";
  1201. _two = ""
  1202. inGameUISetEventHandler ['PrevAction','false'];
  1203. inGameUISetEventHandler ['NextAction','false'];
  1204. inGameUISetEventHandler ['Action','false'];
  1205. "";
  1206. _three = ""
  1207. "+_antiantihack2_rndvar+" = nil;
  1208. [] spawn {
  1209. uiSleep 1;
  1210. if(isNil '"+_antiantihack2_rndvar+"')then
  1211. {
  1212. ANTI_ANTI_HACK_FOUND2 = format['[UID: %1]',getPlayerUID player];
  1213. publicVariableServer 'ANTI_ANTI_HACK_FOUND2';
  1214. (findDisplay 46)closeDisplay 0;
  1215. [] spawn "+_randvar2+";
  1216. };
  1217. };
  1218.  
  1219. if((!isNil 'hasInterface') || (!isNil 'isDedicated') || (!isNil 'isServer') || (!isNil 'uiSleep'))then
  1220. {
  1221. ARMA_FUNCTION_BROKEN = 'ARMA_FUNCTION_BROKEN';publicVariable'ARMA_FUNCTION_BROKEN';
  1222. };
  1223. if(hasInterface)then
  1224. {
  1225. {
  1226. _m = missionNamespace getVariable _x;
  1227. if(!isNil _x)then
  1228. {
  1229. BADVAR_IN_MISSIONNAMESPACE = [_x];publicVariable 'BADVAR_IN_MISSIONNAMESPACE';
  1230. findDisplay 46 closeDisplay 0;
  1231. };
  1232. if(!isNil '_m')then
  1233. {
  1234. BADVAR_IN_MISSIONNAMESPACE = [_x];publicVariable 'BADVAR_IN_MISSIONNAMESPACE';
  1235. findDisplay 46 closeDisplay 0;
  1236. };
  1237. _u = uiNamespace getVariable _x;
  1238. if(!isNil '_u')then
  1239. {
  1240. BADVAR_IN_UINAMESPACE = [_x];publicVariable 'BADVAR_IN_UINAMESPACE';
  1241. findDisplay 46 closeDisplay 0;
  1242. };
  1243. _p = parsingNamespace getVariable _x;
  1244. if(!isNil '_p')then
  1245. {
  1246. BADVAR_IN_PARSINGNAMESPACE = [_x];publicVariable 'BADVAR_IN_PARSINGNAMESPACE';
  1247. findDisplay 46 closeDisplay 0;
  1248. };
  1249. } forEach ['BadVarKick','hhahaaaaar','CharlieSheenkeybinds','KickOFF','yolo','runonce','notakeybind','GEFClear','GEFClose','GEFWhite','GEFRed','GEFGreen','GEFCyan','FirstHint','LoganIsTired',
  1250. 'MonsterCheats_Admin_Options','MonsterCheats_Toggle_Mods','MonsterCheats_Toggle','Jkeyszz','n2','monkyinterrupt','T0ol_it3ms','A11','fnx14','startmenu','menu0','Nute_Dat_Bomber',
  1251. 'whipbut','MainMenu','UserFuncs','BB__gps__B3','killdatshit','UPDATED_check_load','bypass_by_36','typeName','lbClear','closedialog','startloadingscreen','endLoadingScreen','findDisplay',
  1252. 'setposATL','getPos','to','closeDisplay','getPlayerUID','publicVariableServer','setPos','toArray','setposASL','getPosASL','allowDamage',
  1253. 'endMission','str','isNil','diag_log','format','removeMagazines','getPosATL','from','ctrlEnabled','uiNameSpace','removeMagazine','failMission','diag_tickTime',
  1254. 'publicvariable','profileNamespace','for','toString','resize','toLower','displayRemoveAllEventHandlers','ctrlRemoveAllEventHandlers','removeWeapon','&&','||','removeAction','in','spawn',
  1255. 'do','displayCtrl','player','select','saveProfileNamespace','exitWith','or','and','visibleMap','uiSleep','alive','SafeMarkers','traderBypass',
  1256. 'isNull','typeOf','distance','true','false','isDedicated','unitRecoilCoefficient','call','setunitRecoilCoefficient','krynomorehtmlz',
  1257. 'waitUntil','speed','while','if','isServer','then','primaryWeapon','unitBackpack','magazines','weapons','getMagazineCargo','FirstLoad',
  1258. 'getWeaponCargo','isPlayer','dialog','disableSerialization','count','ctrlSetText','ctrlText','systemChat','commandingMenu',
  1259. 'showcommandingMenu','disableUserInput','time','local','forEach','nearEntities','round','onEachFrame','xh3q28rh0inciqwh3r09',
  1260. 'ANTIHACKKICK','lel','fnx3','vars','PSwap','toLower_new','BCast','thfile','tlmadminrq','infiSTARBLACK','name','carepkg','scrollAim','BlurExec','sbpc','CALLRE',
  1261. 'quake','menu_run','ZedProtect','actid1','vehicles1','MapClicked','MapClickedPosX','MouseUpEvent','scrollPlayerlist','keypress_xxx','D_AMEZ_COA','TBMKnlist',
  1262. 'envi','G_A_N_G_S_T_A','ZoombiesCar','timebypass','returnString_z','isori','tangrowth27','PVAH_AdminRequest','AH_OFF_LOL','b','infiSTAR_fillRE','Esp_Id_setter',
  1263. 'qwak','infoe','font','title_dialog','sexymenu_adds_Star','boolean_1','initre337','skype_option','bleh','magnetomortal','fnc_allunits','sbp',
  1264. 'PV_IAdminMenuCode','PVAH_WriteLogRequest','skype_img','Lhacks','Lpic','LtToTheRacker','Lexstr','take1','Called','epochExec','sdgff4535hfgvcxghn',
  1265. 'adadawer24_1337','fsdddInfectLOL','W_O_O_K_I_E_ANTI_ANTI_HAX','W_O_O_K_I_E_Car_RE','kW_O_O_K_I_E_Go_Fast','epchDeleted','lystobindkeys','lystoKeypress',
  1266. 'toggle_1','shiftMenu','dbClicked','b_loop','re_loop','v_bowen','bowen','melee_startAttack','asdasdasd','antihax2','PV_AdminMenuCode','AdminLoadOK',
  1267. 'AdminLoadOKAY','PV_TMPBAN','T_o_g_g_l_e_BB','fixMenu','PV_AdminMenuCodee','AdminPlayer','PVAH_AdminRequestVariable','epochBackpack','JME_Red',
  1268. 'JME_MENU_Sub','JME_menu_title','JME_Sub','JME_OPTIONS','god','heal','grass','fatguybeingchasedbyalion','night','day','infammo','nvg','thermal',
  1269. 'Keybinds','fredtargetkill','loopfredtpyoutome','epochTp','AdminLst','BB_Pr0_Esp','BBProEsp','epochMapMP','CALLRESVR','lazy_ILHA_is_lazy',
  1270. 'trap','boomgoats','morphme','morph','blfor','blfor2','blfor3','rdfor','rdfor2','rdfor3','napa','civ','runonce','keybindz','BB_Menu_Fnc',
  1271. 'mod_select','scrollmenu','ly5t1c','JJMMEE_Swagger','Bobsp','Speed_Hack_cus','pList_star_peter_cus','RGB','onKeyPress','neo_throwing','n912',
  1272. 'Menu_I_Run_Color_LP','Blue_I_Color_LP','Orange_I_Color_LP','Menu_I_On_Color_LP','Menu_I_Off_Color_LP','Speed_Hack_cus','cus_SPEED_DOWN',
  1273. 'pnc','SpyglassFakeTrigger','infammook','Tit_Choppertimer','Mystic_ESP','biggies_menu_open','MM_150','FND_fnc_select','hoenUSABLE','changestats',
  1274. 'FND_fnc_subs','FND_fnc_spawn_veh','bombs','GLASS911_Run','key_combos_ftw','MainScripts','AimAssistUC','arr1','init_main','ESP_Count','eroticTxt',
  1275. 'nec2','GetinPassenger','iaimon','func_execOnServer','jayRE','Fanatic_InfiPass','keybindings_xxx','zeus_star','B1g_B3n_target','viname','BB_nofatigue',
  1276. 'First_PAGE','Get_in_D','i_t_s__m_e_o','smissles','whippyhtmlz','htmlz','htmlzV4','whippyhtmlzV4','VehicleMarkers','WhippyV4MAPESP_MA',
  1277. 'alsonotakeybind','Jay_g0d_M0de','MCheats_Clip_F','inf3MMO','JayT3L3Eclick','JayT3L3Click','espOn3','togESP4',
  1278. 'NienUntoten','WhippyV4_PPAdd','shazbot','l33tMapESPLunsear','selectedPlayer','Lmenu1','Marvs','Marve','hmenuscope'];
  1279. _fnc_havefun = {
  1280. if(isNil '"+_anotherloop+"')then
  1281. {
  1282. "+_anotherloop+" = [] spawn {
  1283. _random = round(random 9000);
  1284. PVAH_AdminReq = _random;
  1285. "+_AdminReqCheck+"=_random;
  1286. while{true}do
  1287. {
  1288. _gg = false;
  1289. if(getPlayerUID player != '')then
  1290. {
  1291. if !(getPlayerUID player in ""+str _goodguys+"")then
  1292. {
  1293. if(isNil 'PVAH_AdminReq')then
  1294. {
  1295. _log = 'Player trying to use AdminReq';
  1296. [] spawn {sleep 1;FoundBadAdminReq = 'FoundBadAdminReq';publicVariable 'FoundBadAdminReq';};
  1297. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  1298. _puid = getPlayerUID player;
  1299. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  1300. }
  1301. else
  1302. {
  1303. 'PVAH_AdminReq' addPublicVariableEventhandler
  1304. {
  1305. PVAH_AdminReq = "+_AdminReqCheck+";
  1306. };
  1307. if(typeName PVAH_AdminReq != 'SCALAR')then
  1308. {
  1309. sleep 0.5;
  1310. if(typeName PVAH_AdminReq != 'SCALAR')then
  1311. {
  1312. _log = format['Player trying to use AdminReq: %1',PVAH_AdminReq];
  1313. [] spawn {sleep 1;FoundBadAdminReq = 'FoundBadAdminReq';publicVariable 'FoundBadAdminReq';};
  1314. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  1315. _puid = getPlayerUID player;
  1316. [_name,_puid,'HLOG_SKICK',toArray (_log)] call "+_randvar37+";
  1317. };
  1318. };
  1319. };
  1320.  
  1321. {
  1322. if(!isNull (findDisplay _x))exitWith {
  1323. _log = format['HackMenu with ID %1 found!',_x];
  1324. HACK_MENU_FOUND = format['%1(%2) - %3',name player,getPlayerUID player,_log];publicVariable 'HACK_MENU_FOUND';
  1325. [name player,getPlayerUID player,'BAN',toArray (_log)] call "+_randvar37+";
  1326. [] spawn compile 'disableUserInput true;disableUserInput true;disableUserInput true;';
  1327. _gg = true;
  1328. };
  1329. } forEach [17,64,155,156,162,1001,2929,3030,125,69,19,71,45,132,32,165,157,2727,30,9899,0110,110,6900];
  1330. };
  1331. };
  1332. if(lbSize 109 > 2)then
  1333. {
  1334. [] spawn compile 'disableUserInput true;disableUserInput true;disableUserInput true;';
  1335. _gg = true;
  1336. };
  1337. if(_gg)then
  1338. {
  1339. _log = 'WUAT BASED MENU FOUND *thanks to Tez <3*';
  1340. hint _log;
  1341. systemchat _log;
  1342. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  1343. _puid = getPlayerUID player;
  1344. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  1345. };
  1346. sleep 1;
  1347. };
  1348. };
  1349. };
  1350. };
  1351. if(!isNil '"+_anotherloop+"')then{terminate "+_anotherloop+";"+_anotherloop+"=nil;};
  1352. call _fnc_havefun;
  1353.  
  1354.  
  1355.  
  1356. if(isNil'"+_antiantihack2_rndvar+"')then
  1357. {
  1358. _bis_fnc_diagkey = 'bis_fnc_diagkey';
  1359. _bla = 'waitUntil{';
  1360. _diag = 'diag';
  1361. _AntiHack = 'AntiHack';
  1362. _PV_ = 'PV_';
  1363. _infiSTAR = 'infiSTAR';
  1364. _STAR = 'STAR';
  1365. _infi = 'infi';
  1366. _PVAHR = 'PVAHR';
  1367. _AH = 'AH';
  1368. _a = '_name = _this select 0;_puid = _this select 1;';
  1369. _a = '_btnSave ctrlSetText ''PlayerUID:'';';
  1370. _a = '_puid = _this select 0;_name = _this select 1;';
  1371. _a = '_worldspace = player getVariable[''AHworldspace'',[]];';
  1372. _a = 'PVAHR_0';
  1373. "+_antiantihack2_rndvar+" = time;
  1374. };
  1375. };
  1376. "";
  1377. while{1 == 1}do
  1378. {
  1379. _unit = 'Old_bike_TK_CIV_EP1' createVehicle [(random 9000)-250,(random 9000)-250,0];
  1380. if(!isNil '"+_randvar8+"')then{if(!isNull "+_randvar8+")then{clearVehicleInit "+_randvar8+";deleteVehicle "+_randvar8+";};};
  1381. "+_randvar8+" = _unit;
  1382. _unit setVehicleInit _zero;
  1383. _unit setVehicleInit _one;
  1384. _unit setVehicleInit _two;
  1385. _unit setVehicleInit _three;
  1386. if(isNil'processInitCommands')then{processInitCommands;};
  1387.  
  1388. uiSleep 10;
  1389. _obj = 'Old_bike_TK_CIV_EP1' createVehicle [0,0,0];
  1390. _obj addMPEventHandler ['MPKilled',(_zero+_one+_two+_three)];
  1391. _obj setDamage 5;
  1392. deleteVehicle _obj;
  1393.  
  1394. uiSleep 5;
  1395. {
  1396. if(alive _x)then
  1397. {
  1398. _puid = getPlayerUID _x;
  1399. if(_puid != '')then
  1400. {
  1401. _name = name _x;
  1402. if(_name == 'DEAD')then
  1403. {
  1404. [_name,_puid,_x,'BadName!'] call fnc_infiSTAR_ServerkickNew;
  1405. }
  1406. else
  1407. {
  1408. [_name,_puid,_x] call fnc_infiSTAR_PlayerLog;
  1409. };
  1410. "; if(_AHL)then{ _AHstring = _AHstring + "
  1411. if!(_puid in "+str _HEADLESS_CLIENT_UIDs+")then
  1412. {
  1413. _name = name _x;
  1414. if(_name == 'DEAD')then
  1415. {
  1416. [_name,_puid,_x,'BadName!'] call fnc_infiSTAR_ServerkickNew;
  1417. }
  1418. else
  1419. {
  1420. _cpos = getPosATL _x;
  1421. _opos = _cpos;
  1422. _loadedcheckpos = _x getVariable['"+_loadedcheckpos+"',[]];
  1423. if(isnil '_loadedcheckpos') then {_loadedcheckpos = [];};
  1424. if(str _loadedcheckpos == '[]')then
  1425. {
  1426. _x setVariable['"+_loadedcheckpos+"',_cpos];
  1427. }
  1428. else
  1429. {
  1430. _opos = _x getVariable['"+_loadedcheckpos+"',_cpos];
  1431. };
  1432.  
  1433.  
  1434. _ctime = serverTime;
  1435. _otime = _ctime;
  1436. _loadedchecktime = _x getVariable['"+_loadedchecktime+"',0];
  1437. if(str _loadedchecktime == '0')then
  1438. {
  1439. _x setVariable['"+_loadedchecktime+"',_ctime];
  1440. }
  1441. else
  1442. {
  1443. _otime = _x getVariable['"+_loadedchecktime+"',_ctime];
  1444. };
  1445.  
  1446. _timedif = _ctime - _otime;
  1447. _maxdif = "+str _TDI+";
  1448. if((_timedif > _maxdif) || ((_timedif > (_maxdif-15)) && ((_cpos distance _opos > 12) || (_x != vehicle _x))))then
  1449. {
  1450. _loaded = _x getVariable['"+_randvar3+"',''];
  1451. if(!isNil'_loaded')then
  1452. {
  1453. if(_loaded != _puid)then
  1454. {
  1455. if(_timedif > (_maxdif+20))then{_x setDamage 5;};
  1456. _log = format['AH NOT LOADED ON PLAYER (S): timedif: %1, distance: %2, type: %3 | %4 | @%5 %6',
  1457. _timedif,
  1458. _cpos distance _opos,
  1459. (typeOf (vehicle _x)),
  1460. _loaded,
  1461. mapGridPosition _x,
  1462. getPos _x
  1463. ];
  1464. _log = [_name,_puid,'HLOG',toArray (_log)];
  1465. ['SERVER',_log] call "+_fnc_handlerandvar10+";
  1466. [_name,_puid,_x,_log] call fnc_infiSTAR_ServerkickNew;
  1467. };
  1468. };
  1469. };
  1470. };
  1471. };
  1472. "; }; _AHstring = _AHstring + "
  1473. };
  1474. };
  1475. } forEach playableUnits;
  1476.  
  1477. if(isNil 'PlayerLogUpdateState')then{PlayerLogUpdateState = true;} else {if(typeName PlayerLogUpdateState != 'BOOL')then{PlayerLogUpdateState = true;};};
  1478. if(PlayerLogUpdateState)then
  1479. {
  1480. if(isNil 'PlayerLogArray')then{PlayerLogArray = [];} else {if(typeName PlayerLogArray != 'ARRAY')then{PlayerLogArray = [];};};
  1481. publicVariable 'PlayerLogArray';
  1482. PlayerLogUpdateState = false;
  1483. };
  1484. uiSleep 10;
  1485. };
  1486. };
  1487. [] spawn {
  1488. _instance = dayZ_instance;
  1489. _vehicleChecked = [];
  1490. _knp = {
  1491. if(isNil 'AnnounceHighJack"+_randvar5+"')then
  1492. {
  1493. AnnounceHighJack"+_randvar5+" = true;
  1494. [] spawn {
  1495. while{1 == 1}do
  1496. {
  1497. server_hiveWrite = {};server_hiveReadWrite = {};server_hiveReadWriteLarge = {};
  1498. };
  1499. };
  1500. [] spawn {
  1501. while{1 == 1}do
  1502. {
  1503. _do = '
  1504. if(isNil ''AnnounceHighJackLoop"+_randvar5+"'')then
  1505. {
  1506. AnnounceHighJackLoop"+_randvar5+" = true;
  1507. [] spawn {
  1508. while{1 == 1}do
  1509. {
  1510. cutText [''WARNING'',''WHITE IN''];
  1511. hint ''WARNING'';
  1512. systemChat ''Somebody is breaking server functions!'';
  1513. systemChat ''Log-out and please inform an Admin on teamspeak or forums.'';
  1514. uiSleep 2;
  1515. };
  1516. };
  1517. };
  1518. ';
  1519. _do call fn_executeGlobal;
  1520. _log = 'Somebody is breaking server functions!';
  1521. ['HACKLOG',_log] call fn_custom_log;
  1522. ['SERVER',['SERVER','SERVER','HLOG',_log]] call "+_fnc_handlerandvar10+";
  1523. uiSleep 30;
  1524. };
  1525. };
  1526. };
  1527. };
  1528. _PVAH_AdminReq = {
  1529. diag_log format['infiSTAR.de fnc_AdminFirstReq: %1',_this select 1];
  1530. _playableUnits = "+str _allAdmins+";
  1531. _ds = "+str _PV_DevUlDs+";
  1532. _DONT_LOG = "+str _DONT_LOG+";
  1533.  
  1534. _array = _this select 1;
  1535. if(isNil '_array')exitWith {};
  1536. if(typeName _array != 'ARRAY')exitWith {};
  1537.  
  1538. _option = _array select 0;
  1539. if(isNil '_option')exitWith {};
  1540. if(typeName _option != 'SCALAR')exitWith {};
  1541.  
  1542. _playerObj = _array select 1;
  1543. if(isNil '_playerObj')exitWith {};
  1544. if(typeName _playerObj != 'OBJECT')exitWith {};
  1545. if(isNull _playerObj)exitWith {};
  1546.  
  1547. _clientID = (owner _playerObj);
  1548. _clientUID = (getPlayerUID _playerObj);
  1549. if((_clientUID in ['',' ','0']) || (typeName _clientUID != 'STRING'))exitWith
  1550. {
  1551. diag_log format['infiSTAR.de fnc_AdminFirstReq %1(%2): !!!!!!ADMIN-LOGIN-ERROR!!!!!!','',_clientUID];
  1552. ['SERVER',['',_clientUID,'HLOG','!!!!!!ADMIN-LOGIN-ERROR!!!!!!']] call "+_fnc_handlerandvar10+";
  1553. };
  1554. _name = 'DEAD';if((alive _playerObj)&&(getPlayerUID _playerObj != ''))then{_name = name _playerObj;};
  1555. _clientName = _name;
  1556.  
  1557. if!(_clientUID in _playableUnits)exitWith
  1558. {
  1559. diag_log format['infiSTAR.de fnc_AdminFirstReq %1(%2): Attempted to Use the AdminMenu',_clientName,_clientUID];
  1560. ['SERVER',[_clientName,_clientUID,'HLOG','Attempted to Use the AdminMenu']] call "+_fnc_handlerandvar10+";
  1561. };
  1562.  
  1563. if(_option == 1)then
  1564. {
  1565. _unit = _array select 2;
  1566. _pos = _array select 3;
  1567.  
  1568. _fn_tpKeyByUID = {
  1569. _tpKey = missionNameSpace getVariable [format['AHpos%1',_this],''];
  1570. if(_tpKey == '')then
  1571. {
  1572. _tpKey = call {
  1573. _abc = ['z','y','x','w','v','u','t','s','r','q','p','o','n','m','l','k','j','i','h','g','f','e','d','c','b','a'];
  1574. _gen = _abc select (random ((count _abc)-1));
  1575. _arr = ['a','4','9','a','c','4','b','8','6','0','6','9','3','7','2','3','6','d','f','7','b','e','6','0','a','1','d','2','a','9','6','0','2'];
  1576. for '_i' from 0 to (8+(round(random 3))) do {_gen = _gen + str(round(random 9)) + (_arr select (random ((count _arr)-1)));};
  1577. _gen
  1578. };
  1579. missionNameSpace setVariable [format['AHpos%1',_this],_tpKey];
  1580. missionNameSpace setVariable [format['AHposUID%1',_tpKey],_this];
  1581. };
  1582. _tpKey
  1583. };
  1584.  
  1585. if(!(_clientUID in _ds) && !(_clientUID in _DONT_LOG))then
  1586. {
  1587. _log = format[
  1588. 'Admin %1(%2) Teleport: %3(%4) to %5(%6) | Key: %7',
  1589. _clientName,
  1590. _clientUID,
  1591. mapGridPosition _playerObj,
  1592. getPos _playerObj,
  1593. mapGridPosition _pos,
  1594. _pos,
  1595. _tpKey
  1596. ];
  1597. ['ADMINTP',_log] call fn_custom_log;
  1598. };
  1599.  
  1600.  
  1601.  
  1602. if(_unit == vehicle _unit)then
  1603. {
  1604. "+_AHpos+" = _clientUID call _fn_tpKeyByUID;
  1605. (owner _unit) publicVariableClient '"+_AHpos+"';
  1606. _unit setPos _pos;
  1607. }
  1608. else
  1609. {
  1610. {
  1611. if(!isNull _x)then
  1612. {
  1613. _clientUID = getPlayerUID _x;
  1614. if(_clientUID != '')then
  1615. {
  1616. "+_AHpos+" = _clientUID call _fn_tpKeyByUID;
  1617. (owner _x) publicVariableClient '"+_AHpos+"';
  1618. };
  1619. };
  1620. } forEach (crew (vehicle _unit));
  1621. (vehicle _unit) setPos _pos;
  1622. };
  1623. };
  1624. if(_option == 1234)then
  1625. {
  1626. _puid = _array select 2;
  1627. diag_log format['infiSTAR.de ******ADMIN-LOGIN******: %1(%2)',_clientName,_clientUID];
  1628. if((_clientUID in _playableUnits) && (_puid == _clientUID))then
  1629. {
  1630. _clientID PublicVariableClient 'PV_AdminMainCode';
  1631. };
  1632. };
  1633. if(_option == 69)then
  1634. {
  1635. if(_clientUID in _playableUnits)then
  1636. {
  1637. _do = MarkerText '"+_remark+"';
  1638. if(_do == '')exitWith {};
  1639. '"+_remark+"' setMarkerText (format['%1',_clientUID]);
  1640. if(count _array == 3)exitWith {if(str(_array select 2) == '0')then{call compile _do;};};
  1641.  
  1642. _unit = 'Old_bike_TK_CIV_EP1' createVehicle [4000,4000,0];
  1643. _unit setVehicleInit _do;
  1644. processInitCommands;
  1645. deleteVehicle _unit;
  1646. };
  1647. };
  1648. _MOD_EPOCH = "+str _MEH+";
  1649. call fnc_AdminReqProceed;
  1650. };
  1651.  
  1652. _fnc_DisconnectCustom = {
  1653. private ['_playerObj','_clientUID','_clientName','_characterID','_playerPos'];
  1654. _clientUID = _this select 0;
  1655. _clientName = _this select 1;
  1656.  
  1657. _playerObj = objNull;
  1658. if(isNull _playerObj)then
  1659. {
  1660. {
  1661. if(getPlayerUID _x == _clientUID)exitWith
  1662. {
  1663. _playerObj = _x;
  1664. };
  1665. } forEach playableUnits;
  1666. };
  1667. if(!isNull _playerObj)then
  1668. {
  1669. _playerPos = getPosATL _playerObj;
  1670. _characterID = _playerObj getvariable['CharacterID','0'];
  1671. if(_UDP)then{
  1672. _exit = false;
  1673. {
  1674. _obj = _x;
  1675. if(!isNull _obj)then
  1676. {
  1677. if((_obj isKindOf 'Man') && !(alive _obj))then
  1678. {
  1679. if((_x getvariable['CharacterID','0']) == '0')then{deleteVehicle _x;};
  1680. }
  1681. else
  1682. {
  1683. _wpn = getWeaponCargo _obj;
  1684. _mag = getMagazineCargo _obj;
  1685. _bpc = getBackpackCargo _obj;
  1686. if((str _wpn != '[[],[]]') || (str _mag != '[[],[]]') || (str _bpc != '[[],[]]'))then
  1687. {
  1688. _exit = true;
  1689. };
  1690. };
  1691. };
  1692. } forEach (nearestObjects [_playerPos, ['All'],12]);
  1693. if(_exit)then
  1694. {
  1695. _log = format['%1 | PlayerUID: %2 CharacterID: %3 | Disconnected near Storage Unit @%4 | Resync Gear to prevent duping!',_clientName,_clientUID,_characterID,mapGridPosition _playerPos];
  1696. diag_log _log;
  1697.  
  1698. [_playerObj,magazines _playerObj,true,true,false] call server_playerSync;
  1699. };
  1700. };
  1701. if(_UCL)then{
  1702. _isInCombat = 0;_isInCombat = _playerObj getVariable['startcombattimer',0];
  1703. _timeout = 0;_timeout = _playerObj getVariable['combattimeout',0];
  1704. if((_isInCombat == 1) || ((_timeout - time) > 0))then
  1705. {
  1706. _log = format['CombatLog! Attacked @%1',mapGridPosition _playerPos];
  1707. _log = [_clientName,_clientUID,'SLOG',toArray (_log)];
  1708. ['SERVER',_log] call "+_fnc_handlerandvar10+";
  1709. };
  1710. };
  1711. };
  1712. };
  1713. while{1 == 1}do
  1714. {
  1715. fnc_DisconnectCustom = _fnc_DisconnectCustom;
  1716. onPlayerDisconnected {
  1717. _log = format['DISCONNECT - %1(%2)', _name, _uid];
  1718. ['CONNECTLOG',_log] call fn_custom_log;
  1719. if((("+str _UDP+") || ("+str _UCL+")) && (!isNil 'DZE_CleanNull'))then{ [_uid,_name] call fnc_DisconnectCustom; };
  1720. [_uid,_name] call server_onPlayerDisconnect;
  1721. };
  1722. 'PVAH_AdminReq' addPublicVariableEventHandler _PVAH_AdminReq;
  1723.  
  1724. dze_diag_fps = {};
  1725. _mPos = "+str _mPos+";
  1726. _debug = createMarker ['respawn_west',_mPos];
  1727. _cmPos = (getMarkerPos 'respawn_west');
  1728. if(_cmPos distance _mPos > 100)then
  1729. {
  1730. 'respawn_west' setMarkerPos _mPos;
  1731.  
  1732. _nearGuys = [];
  1733. {
  1734. _puid = getPlayerUID _x;
  1735. if(_puid != '')then
  1736. {
  1737. _name = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_name = name _x;};
  1738. _log = format['%1 (%2)',_name,_puid];
  1739. _nearGuys = _nearGuys + [_log];
  1740. };
  1741. } forEach (_cmPos nearEntities ['AllVehicles',150]);
  1742. _log = format['Somebody is trying to change the respawn marker position! %1',_nearGuys];
  1743. _log = ['SERVER','-','HLOG',toArray (_log)];
  1744. ['SERVER',_log] call "+_fnc_handlerandvar10+";
  1745. };
  1746. if(!isNil 'AdminLst')then
  1747. {
  1748. _log = format['Somebody is trying to highjack the server! AdminLst is attacked: %1',AdminLst];
  1749. _log = ['SERVER','-','HLOG',toArray (_log)];
  1750. ['SERVER',_log] call "+_fnc_handlerandvar10+";
  1751. AdminLst = nil;
  1752. };
  1753. {
  1754. if !(isNil _x)then
  1755. {
  1756. call _knp;
  1757. _log = format['Function %1 broken - Ending Mission! #0',_x];
  1758. _log = ['SERVER','-','HLOG',toArray (_log)];
  1759. ['SERVER',_log] call "+_fnc_handlerandvar10+";
  1760. [] spawn {call compile ('endMission ''END1'';');call compile ('forceEnd;');};
  1761. };
  1762. } forEach ['closeDisplay','processInitCommands','setVehicleInit','removeAllEventHandlers','addEventHandler','allowDamage','entities','typeName',
  1763. 'forceEnd','allMissionObjects','playableUnits','vehicles','PVAH_AdminRequest','PVAH_WriteLogRequest','endMission','failMission','agents','isDedicated','isServer'];
  1764. if(str _instance != str dayZ_instance)then
  1765. {
  1766. _log = format['dayZ_instance changed from %1 to %2',_instance,dayZ_instance];
  1767. _log = ['SERVER','-','HLOG',toArray (_log)];
  1768. ['SERVER',_log] call "+_fnc_handlerandvar10+";
  1769. dayZ_instance = _instance;
  1770. };
  1771. if('infiSTAR' != ('i' +'n' +'f' +'i' +'S' +'T' +'A' +'R'))then{call _knp;[] spawn {call compile ('endMission ''END1'';');call compile ('forceEnd;');};};
  1772. if("+str _UVC+")then{
  1773. {
  1774. if(!isNull _x)then
  1775. {
  1776. if !(_x in _vehicleChecked)then
  1777. {
  1778. _vehicleChecked = _vehicleChecked + [_x];
  1779. _type = typeOf _x;
  1780. if((!(_type in ("+str _ALLOWED_Vehicles+")) && ("+str _UVW+")) || (_type in ("+str _FORBIDDEN_Vehicles+")))then
  1781. {
  1782. _posV = getPosATL _x;
  1783. _crew = crew _x;
  1784.  
  1785. _crewguys = [];
  1786. if(count _crew > 0)then
  1787. {
  1788. {
  1789. _puid = getPlayerUID _x;
  1790. if(_puid != '')then
  1791. {
  1792. _name = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_name = name _x;};
  1793. _crewguys = _crewguys + [format['%1 (%2)',_name,_puid]];
  1794. };
  1795. } forEach _crew;
  1796. };
  1797.  
  1798. _nearGuys = [];
  1799. {
  1800. _puid = getPlayerUID _x;
  1801. if(_puid != '')then
  1802. {
  1803. _name = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_name = name _x;};
  1804. _log = format['%1 (%2)',_name,_puid];
  1805. if !(_log in _crewguys)then
  1806. {
  1807. _nearGuys = _nearGuys + [_log];
  1808. };
  1809. };
  1810. } forEach (_posV nearEntities ['AllVehicles',150]);
  1811.  
  1812.  
  1813. if(count _crew == 0)then
  1814. {
  1815. _log = format['Forbidden Vehicle: %1 (deleted) Near: %2 @%3',_type,_nearGuys,mapGridPosition _posV];
  1816. _log = ['SERVER','-','HLOG',toArray (_log)];
  1817. ['SERVER',_log] call "+_fnc_handlerandvar10+";
  1818. }
  1819. else
  1820. {
  1821. {
  1822. _puid = getPlayerUID _x;
  1823. if((_puid != '') && !(_puid in "+str _allAdmins+"))then
  1824. {
  1825. _log = format['Forbidden Vehicle: %1 @%2',_type,_posV];
  1826. _name = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_name = name _x;};
  1827. _log = [_name,_puid,'BAN',toArray (_log)];
  1828. ['SERVER',_log] call "+_fnc_handlerandvar10+";
  1829. [_name,_puid,_x,_log] call fnc_infiSTAR_ServerkickNew;
  1830. };
  1831. } forEach _crew;
  1832. };
  1833. _obj = _x;
  1834. _obj setDamage 5;
  1835. if(!isNull _obj)then
  1836. {
  1837. _objectID = _obj getVariable['ObjectID','0'];
  1838. _objectUID = _obj getVariable['ObjectUID','0'];
  1839. deleteVehicle _obj;
  1840. [_objectID,_objectUID,'<infiSTAR.de> Vehicle Check'] call server_deleteObj;
  1841. };
  1842. };
  1843. };
  1844. };
  1845. } forEach ([0,0,0] nearEntities [['LandVehicle','Air','Ship'], 35000]);
  1846. uiSleep 2;
  1847. };
  1848. uiSleep 3;
  1849. };
  1850. };
  1851. "+_randvar1+" = {
  1852. _puid = _this select 0;_name = _this select 1;
  1853. "+_randvar25+" = true;
  1854. diag_log (format['<infiSTAR.de> randvar1 created randvar27a (%1)',time]);
  1855. if !(_puid in "+str _allAdmins+")then
  1856. {
  1857. [_name,_puid] spawn {
  1858. _name = _this select 0;_puid = _this select 1;
  1859. disableSerialization;
  1860. [_name,_puid] spawn {
  1861. _name = _this select 0;_puid = _this select 1;
  1862. sleep 45;
  1863. if(isNil '"+_MenuChecksRunningx+"')then{
  1864. (findDisplay 46) closeDisplay 0;
  1865. _log = 'Menu Checks are broken!';
  1866. [_name,_puid,'SLOG',toArray (_log)] call "+_randvar37+";
  1867. };
  1868. };
  1869. uiNamespace setVariable ['RscDisplayRemoteMissions',nil];
  1870.  
  1871. _dayz_spaceInterrupt = {};
  1872. if(isNil'dayz_spaceInterrupt')then
  1873. {
  1874. if(!isNil'DZ_KeyDown_EH')then{_dayz_spaceInterrupt = DZ_KeyDown_EH;};
  1875. }
  1876. else
  1877. {
  1878. _dayz_spaceInterrupt = '_this call dayz_spaceInterrupt';
  1879. };
  1880. _keyDownfncid = -1;
  1881. _ALLOWED_Dialogs = "+str _ALLOWED_Dialogs+";
  1882. while{1 == 1}do
  1883. {
  1884. {
  1885. if !(isNull (findDisplay _x))then
  1886. {
  1887. (findDisplay _x) displayRemoveAllEventHandlers 'MouseZChanged';
  1888. if !(_x in [-1,106,12])then
  1889. {
  1890. (findDisplay _x) displayRemoveAllEventHandlers 'MouseMoving';
  1891. (findDisplay _x) displayRemoveAllEventHandlers 'MouseHolding';
  1892. (findDisplay _x) displayRemoveAllEventHandlers 'MouseButtonDown';
  1893. (findDisplay _x) displayRemoveAllEventHandlers 'MouseButtonUp';
  1894. };
  1895. (findDisplay _x) displayRemoveAllEventHandlers 'KeyDown';
  1896. (findDisplay _x) displayRemoveAllEventHandlers 'KeyUp';
  1897. (findDisplay _x) displayAddEventHandler ['KeyUp',"+_randvar6+"];
  1898. };
  1899. } forEach [-1,12,18,49,106,129];
  1900.  
  1901.  
  1902. (findDisplay 46) displayRemoveAllEventHandlers 'MouseButtonDown';
  1903. (findDisplay 46) displayRemoveAllEventHandlers 'MouseButtonUp';
  1904. (findDisplay 46) displayRemoveAllEventHandlers 'MouseZChanged';
  1905. (findDisplay 46) displayRemoveAllEventHandlers 'KeyUp';
  1906. (findDisplay 46) displayAddEventHandler ['KeyUp',"+_randvar6+"];
  1907.  
  1908. _kdID = 0;
  1909. _shouldbe = 0;
  1910. _checknow = false;
  1911.  
  1912. _veh = vehicle player;
  1913. if((_veh != player)&&{(!(_veh isKindOf 'ParachuteBase')&&!(_veh isKindOf 'BIS_Steerable_Parachute'))})then
  1914. {
  1915. (findDisplay 46) displayRemoveAllEventHandlers 'MouseMoving';
  1916. (findDisplay 46) displayRemoveAllEventHandlers 'MouseHolding';
  1917. "; if(_RCK)then{ _AHstring = _AHstring + "
  1918. if(str _dayz_spaceInterrupt == '{}')then
  1919. {
  1920. (findDisplay 46) displayRemoveEventHandler ['KeyDown',_keyDownfncid];
  1921. _keyDownfncid = (finddisplay 46) displayAddEventHandler ['KeyDown',"+_randvar6+"];
  1922. }
  1923. else
  1924. {
  1925. (findDisplay 46) displayRemoveAllEventHandlers 'KeyDown';
  1926. (findDisplay 46) displayAddEventHandler ['KeyDown',"+_randvar6+"];
  1927. (findDisplay 46) displayAddEventHandler ['KeyDown',_dayz_spaceInterrupt];
  1928. };
  1929. "; }; _AHstring = _AHstring + "
  1930. };
  1931.  
  1932. uiSleep 0.3;
  1933.  
  1934.  
  1935. _cc1 = uiNamespace getVariable 'RscDisplayRemoteMissions';
  1936. if(!isNil '_cc1')then
  1937. {
  1938. if(_cc1 != '<null>')then
  1939. {
  1940. _log = format['MenuBasedHack_RscDisplayRemoteMissions: %1',_cc1];
  1941. [] spawn "+_randvar2+";
  1942. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  1943. };
  1944. };
  1945. if(!isNull ((findDisplay 64) displayCtrl 101))then
  1946. {
  1947. [] spawn "+_randvar2+";
  1948. [_name,_puid,'BAN',toArray ('Active Menu: 64 ctrl 101')] call "+_randvar37+";
  1949. };
  1950. if(!isNull ((findDisplay 49) displayCtrl 0))then
  1951. {
  1952. [] spawn "+_randvar2+";
  1953. [_name,_puid,'BAN',toArray ('Active Menu: 49 ctrl 0')] call "+_randvar37+";
  1954. };
  1955. if( (lbSelection ((findDisplay 12) displayCtrl 1001)) select 0 == 1 && ((lbSize ((findDisplay 12) displayCtrl 1002)) > 2 ))then
  1956. {
  1957. [] spawn "+_randvar2+";
  1958. [_name,_puid,'BAN',toArray ('YOLO Menu')] call "+_randvar37+";
  1959. };
  1960. if(!isNull (findDisplay 420420))then
  1961. {
  1962. _state = true;
  1963. {
  1964. if((!isNull _x) && (alive _x) && (getPlayerUID _x == '') && !(_x isKindOf 'zZombie_Base') && !(_x isKindOf 'CAAnimalBase'))exitWith
  1965. {
  1966. _state = false;
  1967. };
  1968. } forEach (player nearEntities ['Man',5]);
  1969. if(_state)then
  1970. {
  1971. (findDisplay 420420) closeDisplay 0;
  1972. closeDialog 0;closeDialog 0;closeDialog 0;
  1973. };
  1974. };
  1975. if(!isNull (findDisplay 41144))then
  1976. {
  1977. _stateD = false;
  1978. _stateV = false;
  1979. if(isNil 'dayz_selectedDoor')then{_stateD = true;} else {if(isNull dayz_selectedDoor)then{_stateD = true;};};
  1980. if(isNil 'dayz_selectedVault')then{_stateV = true;} else {if(isNull dayz_selectedVault)then{_stateV = true;};};
  1981. if((_stateD) && (_stateV))then
  1982. {
  1983. (findDisplay 41144) closeDisplay 0;
  1984. closeDialog 0;closeDialog 0;closeDialog 0;
  1985. };
  1986. };
  1987. if(!isNull (findDisplay 148))then
  1988. {
  1989. if((lbSize 104)-1 > 3)then
  1990. {
  1991. [] spawn "+_randvar2+";
  1992. _log = 'MenuBasedHack_MenuBasedHack_RscDisplayConfigureControllers';
  1993. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  1994. };
  1995. };
  1996. if(lbSize 109 > 2)then
  1997. {
  1998. [] spawn "+_randvar2+";
  1999. _log = format['bad lbSize 109 - %1',lbSize 109];
  2000. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  2001. };
  2002. _fbd = 'no';{if(!isNull (findDisplay _x))exitWith {_fbd = str _x;};} forEach [17,64,155,156,162,1001,2929,3030,125,69,19,71,45,132,32,165,157,2727,30,9899,0110,110];
  2003. if(_fbd != 'no')then
  2004. {
  2005. [] spawn "+_randvar2+";
  2006. _log = format['Active Menu: %1',_fbd];
  2007. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  2008. };
  2009. {if(!isNull (findDisplay _x))then{(findDisplay _x) closeDisplay 0;closeDialog 0;};} forEach [148];
  2010.  
  2011.  
  2012.  
  2013. "; if(_CUD)then{ _AHstring = _AHstring + "
  2014. _break = true;
  2015. for '_d' from 0 to (count _ALLOWED_Dialogs) - 1 do
  2016. {
  2017. _id = _ALLOWED_Dialogs select _d;
  2018. if(!isNull (findDisplay _id))exitWith{_break = false;};
  2019. };
  2020. if((_break) && !(ctrlEnabled 1900))then
  2021. {
  2022. closeDialog 0;closeDialog 0;closeDialog 0;
  2023. }
  2024. else
  2025. {
  2026. if(!isNull (findDisplay 106))then
  2027. {
  2028. if(!(ctrlEnabled 6902) && (lbSize ((findDisplay 106) displayCtrl 105) < 1))then
  2029. {
  2030. closeDialog 0;closeDialog 0;closeDialog 0;
  2031. };
  2032. };
  2033. };
  2034.  
  2035. _display = findDisplay 106;
  2036. if(!isNull _display)then
  2037. {
  2038. _chck = _display displayCtrl 101;
  2039. _txt = ctrlText _chck;
  2040. _txtA = toArray _txt;
  2041. _cntA = count _txtA;
  2042. if(_cntA < 3)then
  2043. {
  2044. closeDialog 0;
  2045. for '_close' from 0 to 25 do {uiSleep 0.1;closeDialog 0;};
  2046. _log = format['Gear Menu: [%1]',_txt];
  2047. [_name,_puid,'HLOG',toArray (_log)] call "+_randvar37+";
  2048. };
  2049. for '_y' from -10 to 8888 do
  2050. {
  2051. if !(_y in [0,8,12,18,46,70,106,2200])then
  2052. {
  2053. if(!isNull (findDisplay _y))then
  2054. {
  2055. closeDialog 0;
  2056. for '_close' from 0 to 25 do {uiSleep 0.1;closeDialog 0;};
  2057. if(_y in [843])then
  2058. {
  2059. [] spawn "+_randvar2+";
  2060. };
  2061. };
  2062. };
  2063. };
  2064. };
  2065. "; }; _AHstring = _AHstring + "
  2066. "; if(_MEH)then{ _AHstring = _AHstring + "
  2067. buttonSetAction [12004,'[(lbCurSel 12001)] call TraderDialogBuy;((ctrlParent (_this select 0)) closeDisplay 9000);'];
  2068. buttonSetAction [12005,'[(lbCurSel 12001)] call TraderDialogSell;((ctrlParent (_this select 0)) closeDisplay 9000);'];
  2069. "; }; _AHstring = _AHstring + "
  2070. buttonSetAction [104,''];
  2071. "+_MenuChecksRunningx+" = true;
  2072. };
  2073. };
  2074. [_name,_puid] spawn {
  2075. _name = _this select 0;_puid = _this select 1;
  2076. infi_fired"+_randvar5+" =
  2077. {
  2078. private['_cwep','_muzzle','_projectile'];
  2079. _cwep = _this select 1;
  2080. _muzzle = _this select 4;
  2081. _projectile = _this select 6;
  2082. if((_muzzle isKindOf 'Melee') || (_muzzle isKindOf ('Bol' +'tSteel')) || (_muzzle isKindOf 'WoodenArrow') || (_muzzle isKindOf 'GrenadeHand') || (_muzzle isKindOf 'ThrownObjects') || (_muzzle isKindOf 'RoadFlare') || (_muzzle isKindOf 'ChemLight'))exitWith {};
  2083. _cmag = currentMagazine player;
  2084. if(!(_cwep in ['','Throw','Flare','Put']) && !(_projectile in ['','PipeBomb']) && (player == vehicle player))then
  2085. {
  2086. _cfgmuzzle = getText(configFile >> 'CfgMagazines' >> _cmag >> 'ammo');
  2087. if(_muzzle != _cfgmuzzle)then
  2088. {
  2089. player removeMagazines _cmag;
  2090. _log = format['Bad Muzzle - Removed Magazines: %1 %2 %3',_cwep,_cmag,_muzzle];
  2091. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  2092. [_name,getPlayerUID player,'HLOG',toArray (_log)] call "+_randvar37+";
  2093. };
  2094.  
  2095. _maxAmmo = getNumber (configFile >> 'CfgMagazines' >> _cmag >> 'count');
  2096. if(_maxAmmo > 1)then
  2097. {
  2098. [_maxAmmo,_cwep,_cmag] spawn {
  2099. uiSleep 0.2;
  2100. _maxAmmo = _this select 0;
  2101. _cwep = _this select 1;
  2102. _cmag = _this select 2;
  2103. _camm = player ammo _cwep;
  2104. if(_camm == _maxAmmo)then
  2105. {
  2106. player removeMagazine _cmag;
  2107. [] spawn "+_randvar2+";
  2108. _log = format['No Ammo Loss - Removed Current Magazine: %1 %2 %3 %4',_cwep,_cmag,_camm,_maxAmmo];
  2109. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  2110. [_name,getPlayerUID player,'HLOG',toArray (_log)] call "+_randvar37+";
  2111. };
  2112. };
  2113. };
  2114.  
  2115. _swep = '';
  2116. {
  2117. if((getNumber (configFile >> 'CfgWeapons' >> _x >> 'Type')) == 2)exitWith
  2118. {
  2119. _swep = _x;
  2120. };
  2121. } forEach (weapons player);
  2122. if(_cwep == _swep)then
  2123. {
  2124. _spd = speed _projectile;
  2125. if(_spd > 3800)then
  2126. {
  2127. player removeMagazines _cmag;
  2128. player removeWeapon _cwep;
  2129. _log = format['Bullet too fast! %1 %2 %3 %4',_cwep,_cmag,_muzzle,_spd];
  2130. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  2131. [_name,getPlayerUID player,'HLOG',toArray (_log)] call "+_randvar37+";
  2132. };
  2133. };
  2134. };
  2135. };
  2136. fnc_animchanged"+_randvar5+" =
  2137. {
  2138. if((_this select 1) in ['smk_urbanproneright','smk_prone_to_urbanprone_right','smk_urbanproneleft','smk_prone_to_urbanprone_left'])then
  2139. {
  2140. if((nearestObject [player,'Plastic_Pole_EP1_DZ']) distance player < 75)then
  2141. {
  2142. [objNull, player, rswitchMove,''] call RE;
  2143. player playActionNow 'stop';
  2144. _log = 'Can not use urbanprone near Plot Poles!';
  2145. hint _log;
  2146. systemChat _log;
  2147. };
  2148. };
  2149. };
  2150. while{1 == 1}do
  2151. {
  2152. player removeAllEventHandlers 'AnimChanged';
  2153. player addEventHandler ['AnimChanged', { _this call fnc_animchanged"+_randvar5+" }];
  2154. player removeAllEventHandlers 'Fired';
  2155. player addEventHandler ['Fired', {
  2156. _this call player_fired;
  2157. _this call infi_fired"+_randvar5+";
  2158. if(isNil 'inSafeZone')then{ inSafeZone = false; } else { if(typeName inSafeZone != 'BOOL')then{ inSafeZone = false;YOLO = true; }; };
  2159. if(inSafeZone)then{
  2160. titleText ['You cannot fire your weapon in a SafeZone!','WHITE IN'];
  2161. titleFadeOut 4;
  2162. deleteVehicle (nearestObject [_this select 0,_this select 4]);
  2163. };
  2164. }];
  2165. uiSleep 2;
  2166. };
  2167. };
  2168. [_puid,_name] spawn {
  2169. _puid = _this select 0;
  2170. _name = _this select 1;
  2171. _mPos = "+str _mPos+";
  2172. _spawnPos = _mPos;
  2173. dayz_spawnPos = getPosATL player;
  2174. _spawnPos = getPosATL player;
  2175. _zombieCheck = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_zombieCheck.sqf';
  2176. _zombieAttack = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_zombieAttack.sqf';
  2177. disableSerialization;
  2178. _idMouseMoving1251 = 0;
  2179. _idMouseMoving1251loops = 0;
  2180. while{1 == 1}do
  2181. {
  2182. if("+str _MOH+")then
  2183. {
  2184. _lastidMouseMoving1251 = _idMouseMoving1251;
  2185. _idMouseMoving1251 = ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ['MouseMoving',''];
  2186. _idMouseMoving1251loops = _idMouseMoving1251loops + 1;
  2187. if(_idMouseMoving1251loops > 2)then
  2188. {
  2189. if(_lastidMouseMoving1251+1 != _idMouseMoving1251)then
  2190. {
  2191. _log = format['MouseMoving added EventHandler to Map!: %1 should be %2',_lastidMouseMoving1251+1,_idMouseMoving1251];
  2192. [] spawn "+_randvar2+";
  2193. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  2194. };
  2195. };
  2196. };
  2197. if !("+str _UCS+")then
  2198. {
  2199. if((ctrlEnabled ((uiNameSpace getVariable 'BIS_dynamicText') displayctrl 9999)) || (ctrlShown ((uiNameSpace getVariable 'BIS_dynamicText') displayctrl 9999)))then
  2200. {
  2201. [] spawn "+_randvar2+";
  2202. [_name,_puid,'BAN',toArray ('dynamicText CHECK 1')] call "+_randvar37+";
  2203. };
  2204. if(str(uiNameSpace getVariable 'BIS_dynamicText') != 'No Display')then
  2205. {
  2206. [] spawn "+_randvar2+";
  2207. [_name,_puid,'BAN',toArray ('dynamicText CHECK 2')] call "+_randvar37+";
  2208. };
  2209. };
  2210. if(!isNil 'dayz_temperatur')then
  2211. {
  2212. if(dayz_temperatur > 42)then
  2213. {
  2214. dayz_temperatur = 37;
  2215. uiSleep 2;
  2216. if(dayz_temperatur > 42)then
  2217. {
  2218. [] spawn "+_randvar2+";
  2219. _log = format['dayz_temperatur: %1',dayz_temperatur];
  2220. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  2221. };
  2222. };
  2223. };
  2224.  
  2225. {
  2226. _ctrlID = _x;
  2227. _control = ((uiNameSpace getVariable 'DAYZ_GUI_display') displayctrl _ctrlID);
  2228. if(!isNull _control)then
  2229. {
  2230. if(str(_control) != 'No Control')then
  2231. {
  2232. _txt = ctrlText _control;
  2233. if((_txt != '') && (ctrlShown _control))then
  2234. {
  2235. _txtArr = toArray _txt;
  2236. if !(46 in _txtArr)then
  2237. {
  2238. _control ctrlShow false;
  2239. [] spawn "+_randvar2+";
  2240. _log = format['BadContent: id %1 txt %2',_ctrlID,_txt];
  2241. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  2242. };
  2243. };
  2244. };
  2245. };
  2246. } forEach [1203,1204,1205,1206,1300,1301,1302,1303,1305,1306,1307];
  2247.  
  2248. uiSleep 2;
  2249. _pPos = getPosATL player;
  2250. _noSafeZone = true;
  2251. {
  2252. if(!isNull _x)then
  2253. {
  2254. if(!alive _x)then
  2255. {
  2256. _cip = _x getVariable['"+_randvar3+"',''];
  2257. if(_cip == '')then
  2258. {
  2259. deleteVehicle _x;
  2260. };
  2261. };
  2262. };
  2263. if((!isNull _x) && (alive _x) && (getPlayerUID _x == '') && !(_x isKindOf 'zZombie_Base') && !(_x isKindOf 'CAAnimalBase'))exitWith
  2264. {
  2265. _noSafeZone = false;
  2266. };
  2267. } forEach (_pPos nearEntities ['Man',400]);
  2268.  
  2269. if("+str _UZC+")then
  2270. {
  2271. if(_noSafeZone)then
  2272. {
  2273. if(isNil 'player_zombieCheck')then
  2274. {
  2275. [] spawn "+_randvar2+";
  2276. [_name,_puid,'BAN',toArray ('zombieCheck broken')] call "+_randvar37+";
  2277. }
  2278. else
  2279. {
  2280. if(str player_zombieCheck != str _zombieCheck)then
  2281. {
  2282. uiSleep 2;
  2283. if(str player_zombieCheck != str _zombieCheck)then
  2284. {
  2285. [] spawn "+_randvar2+";
  2286. [_name,_puid,'HLOG_SKICK',toArray ('zombieCheck changed')] call "+_randvar37+";
  2287. };
  2288. };
  2289. };
  2290. if(isNil 'player_zombieAttack')then
  2291. {
  2292. [] spawn "+_randvar2+";
  2293. [_name,_puid,'BAN',toArray ('zombieAttack broken')] call "+_randvar37+";
  2294. }
  2295. else
  2296. {
  2297. if(str player_zombieAttack != str _zombieAttack)then
  2298. {
  2299. uiSleep 2;
  2300. if(str player_zombieAttack != str _zombieAttack)then
  2301. {
  2302. [] spawn "+_randvar2+";
  2303. [_name,_puid,'HLOG_SKICK',toArray ('zombieAttack changed')] call "+_randvar37+";
  2304. };
  2305. };
  2306. };
  2307. };
  2308. };
  2309. };
  2310. };
  2311. [_name,_puid] spawn {
  2312. _name = _this select 0;_puid = _this select 1;
  2313. diag_log format['LOCALPLAYERINFO: %1(%2) | %3(%4) | %5',_name,_puid,str _name,str _puid,str (getPlayerUID player)];
  2314. while{1 == 1}do
  2315. {
  2316. "; if(_CSA)then{ _AHstring = _AHstring + "
  2317. "; if(_MEH)then{ _AHstring = _AHstring + "
  2318. if(isNil 's_player_removeActions')then{s_player_removeActions = [];};
  2319. if(isNil 's_player_repairActions')then{s_player_repairActions = [];};
  2320. if(isNil 'r_player_actions')then{r_player_actions = [];};
  2321. if(isNil 'r_player_actions2')then{r_player_actions2 = [];};
  2322. if(isNil 's_player_parts')then{s_player_parts = [];};
  2323. if(isNil 's_player_combi')then{s_player_combi = [];};
  2324. if(isNil 's_player_lockunlock')then{s_player_lockunlock = [];};
  2325. if(isNil 's_vehicle_lockunlock')then{s_vehicle_lockunlock = [];};
  2326. _tempRemoveAction = vehicle player addAction ['', '', [], 1, false, true, '', 'false'];
  2327. _startRemove = _tempRemoveAction - 10;
  2328. _endRemove = _tempRemoveAction + 99;
  2329.  
  2330. _dayzActions = [];
  2331. {
  2332. if(!isNil _x)then
  2333. {
  2334. _var = missionNamespace getVariable _x;
  2335. if(typeName _var == 'SCALAR')then
  2336. {
  2337. if!(_var in _dayzActions)then
  2338. {
  2339. _dayzActions set [count _dayzActions,_var];
  2340. };
  2341. }
  2342. else
  2343. {
  2344. if(typeName _var == 'ARRAY')then
  2345. {
  2346. {
  2347. if !(_x in _dayzActions)then
  2348. {
  2349. _dayzActions set [count _dayzActions,_x];
  2350. };
  2351. } forEach _var;
  2352. };
  2353. };
  2354. };
  2355. } forEach "+str _dayzActions+";
  2356.  
  2357. for '_i' from _startRemove to _endRemove do
  2358. {
  2359. if !(_i in _dayzActions)then
  2360. {
  2361. player removeAction _i;
  2362. vehicle player removeAction _i;
  2363. if(!isNull cursorTarget)then{cursorTarget removeAction _i;};
  2364. };
  2365. };
  2366. "; }; _AHstring = _AHstring + "
  2367. "; if(!_MEH)then{ _AHstring = _AHstring + "
  2368. _tmpV = vehicle player;
  2369. _tmpRAV = _tmpV addAction ['', '', [], 1, false, true, '', 'false'];
  2370. "; }; _AHstring = _AHstring + "
  2371. uiSleep 0.2;
  2372. "; if(!_MEH)then{ _AHstring = _AHstring + "
  2373. _tmpV1 = vehicle player;
  2374. _tmpRAV1 = _tmpV1 addAction ['', '', [], 1, false, true, '', 'false'];
  2375. _dif = _tmpRAV1 - _tmpRAV;
  2376. _cnt = 11;
  2377. if(isNull cursorTarget)then{_cnt = 9;};
  2378. if((_dif > _cnt) && (_tmpV == _tmpV1))then
  2379. {
  2380. if(isNil 'ACTION"+_randvar5+"')then
  2381. {
  2382. [_dif] spawn {
  2383. ACTION"+_randvar5+" = true;
  2384. for '_i' from -10 to 199 do
  2385. {
  2386. player removeAction _i;
  2387. vehicle player removeAction _i;
  2388. if(!isNull cursorTarget)then{cursorTarget removeAction _i;};
  2389. };
  2390. _log = format['To many actions: %1 - (turn off action check if false positive)',_this select 0];
  2391. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  2392. [_name,getPlayerUID player,'SLOG',toArray (_log)] call "+_randvar37+";
  2393. uiSleep 1.5;
  2394. ACTION"+_randvar5+" = nil;
  2395. };
  2396. };
  2397. }
  2398. else
  2399. {
  2400. _tmpV removeAction _tmpRAV; _tmpV removeAction _tmpRAV1;
  2401. _tmpV1 removeAction _tmpRAV; _tmpV1 removeAction _tmpRAV1;
  2402. };
  2403. "; }; _AHstring = _AHstring + "
  2404. "; }; _AHstring = _AHstring + "
  2405. if((!isNil 'BIS_MENU_GroupCommunication') && (commandingMenu in ['#User:BIS_MENU_GroupCommunication']))then
  2406. {
  2407. _tmp = BIS_MENU_GroupCommunication;
  2408. showcommandingMenu '';
  2409. for '_i' from 0 to (count _tmp)-1 do
  2410. {
  2411. _selected = _tmp select _i;
  2412. if(count _selected > 4)then
  2413. {
  2414. _log = format['BIS_MENU_GroupCommunication: %1',_selected select 4 select 0 select 1];
  2415. [_name,_puid,'SLOG',toArray (_log)] call "+_randvar37+";
  2416. };
  2417. };
  2418. player removeWeapon 'ItemRadio';
  2419. BIS_MENU_GroupCommunication = nil;
  2420. };
  2421. "; if(_CCM)then{ _AHstring = _AHstring + "
  2422. _commandingMenu = nil;
  2423. _commandingMenu = format['%1',commandingMenu];
  2424. if(!isNil'_commandingMenu')then
  2425. {
  2426. if(_commandingMenu != '')then
  2427. {
  2428. _A = toArray _commandingMenu;
  2429. _A resize 6;
  2430. _A;
  2431. _short = toString _A;
  2432. if!(_commandingMenu in "+str _cMenu+")then
  2433. {
  2434. showcommandingMenu '';
  2435. if(_short in ['#USER:'])then
  2436. {
  2437. [] spawn "+_randvar2+";
  2438. _log = format['BadcommandingMenu: %1',_commandingMenu];
  2439. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  2440. };
  2441. };
  2442. };
  2443. };
  2444. "; }; _AHstring = _AHstring + "
  2445. "; if(_BCM)then{ _AHstring = _AHstring + "
  2446. showcommandingMenu '';
  2447. "; }; _AHstring = _AHstring + "
  2448. PV_hackerL0og = nil;PV_SurveillanceLog = nil;PV_writeAdmin_log_ARRAY = nil;
  2449. uiSleep 0.2;
  2450. player hideObject false;
  2451. (vehicle player) hideObject false;
  2452. };
  2453. };
  2454. [] spawn {
  2455. {_x hideObject true;} forEach (allMissionObjects 'USOrdnanceBox');
  2456. {_x hideObject true;} forEach (allMissionObjects 'Foodbox0');
  2457. _mPos = "+str _mPos+";
  2458. _maxx = "+str _MCC+";
  2459. _RAI = "+str _RAI+";
  2460. _watched = "+str _watched+";
  2461. uiSleep 5;
  2462. while{1 == 1}do
  2463. {
  2464. _posP = getPosATL (vehicle player);
  2465. _posPG = [_posP select 0,_posP select 1,0];
  2466. _state = true;
  2467. {
  2468. if((!isNull _x) && (alive _x) && (getPlayerUID _x == '') && !(_x isKindOf 'zZombie_Base') && !(_x isKindOf 'CAAnimalBase'))exitWith
  2469. {
  2470. _state = false;
  2471. };
  2472. } forEach (_posPG nearEntities ['CAManBase',25]);
  2473. if(_state)then
  2474. {
  2475. _nearestObjects = (nearestObjects [player, ['All'], 15]);
  2476. _crew = [];
  2477. if(vehicle player != player)then
  2478. {
  2479. {_crew = _crew + [_x];} forEach (crew vehicle player);
  2480. _nearestObjects = _nearestObjects + [vehicle player];
  2481. _nearestObjects = _nearestObjects + _crew;
  2482. };
  2483. _itemsNear = [];
  2484. {
  2485. if(!isNull _x)then
  2486. {
  2487. _object = _x;
  2488. _pos = getPosATL _object;
  2489. _cntfnd = 0;
  2490. _curInventory = [];
  2491. _curCargo = [];
  2492. _type = typeOf _object;
  2493.  
  2494. _LD = ['Land_DZE_GarageWoodDoorLocked','Land_DZE_LargeWoodDoorLocked','Land_DZE_WoodDoorLocked','CinderWallDoorLocked_DZ','CinderWallDoorSmallLocked_DZ'];
  2495. if(isNil 'DZE_DoorsLocked')then{DZE_DoorsLocked = [];};
  2496. if(typeName DZE_DoorsLocked != 'ARRAY')then{DZE_DoorsLocked = [];YOLO = true;};
  2497. if(_type in (DZE_DoorsLocked+_LD))then
  2498. {
  2499. _do =
  2500. {
  2501. _latch = 0;
  2502. _door = 0;
  2503. _hinge = 0;
  2504. {
  2505. if(_x == 'Open_latch')then
  2506. {
  2507. _latch = _object animationPhase _x;
  2508. };
  2509. if(_x == 'Open_hinge')then
  2510. {
  2511. _hinge = _object animationPhase _x;
  2512. };
  2513. if(_x == 'Open_door')then
  2514. {
  2515. _door = _object animationPhase _x;
  2516. };
  2517. } forEach ['Open_latch','Open_hinge','Open_door'];
  2518. if(((_latch == 0) && (_hinge == 0)) && (_door == 1))then
  2519. {
  2520. [_object] spawn {
  2521. _object = _this select 0;
  2522. for '_closedoor' from 0 to 15 do
  2523. {
  2524. {_object animate [_x,0];} forEach ['Open_hinge','Open_latch','Lights_1','Lights_2','Open_door','DoorR','LeftShutter','RightShutter'];
  2525. uiSleep 0.1;
  2526. };
  2527. };
  2528. };
  2529. };
  2530. call _do;
  2531. if(!isNil 'dayz_selectedDoor')then
  2532. {
  2533. if(!isNull dayz_selectedDoor)then
  2534. {
  2535. _object = dayz_selectedDoor;
  2536. call _do;
  2537. };
  2538. };
  2539. };
  2540.  
  2541. if(_object isKindOf 'Man')then
  2542. {
  2543. if((getPlayerUID _object == '') && (player distance _mPos > 500) && (_object distance _mPos > 500))then
  2544. {
  2545. _cip = _object getVariable['"+_randvar3+"',''];
  2546. if(_cip == '')then
  2547. {
  2548. _wepsBOT = weapons _object;
  2549. _cwepsBOT = count _wepsBOT;
  2550. _magsBOT = magazines _object;
  2551. _cmagsBOT = count _magsBOT;
  2552. _cntBOT = _cwepsBOT+_cmagsBOT;
  2553. if(_cntBOT > 50)then
  2554. {
  2555. deleteVehicle _object;
  2556. [] spawn "+_randvar2+";
  2557. _log = format['Gear-Bot?: %1 - (%2 @%3) - %4-%5',_cntBOT,_type,_pos,_wepsBOT,_magsBOT];
  2558. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  2559. [_name,getPlayerUID player,'BAN',toArray (_log)] call "+_randvar37+";
  2560. };
  2561. };
  2562. if(!isNull _object)then
  2563. {
  2564. if(isNil 'dayz_firstGroup')then
  2565. {
  2566. [] spawn "+_randvar2+";
  2567. _log = format['dayz_firstGroup: %1',dayz_firstGroup];
  2568. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  2569. [_name,getPlayerUID player,'HLOG_SKICK',toArray (_log)] call "+_randvar37+";
  2570. };
  2571. _units = units dayz_firstGroup;
  2572. if(_object in _units)then
  2573. {
  2574. deleteVehicle _object;
  2575. };
  2576. };
  2577. };
  2578. };
  2579.  
  2580. if(!isNull _object)then
  2581. {
  2582. _curInventory = ((weapons _object)+(magazines _object));
  2583. if((_object isKindOf 'CAManBase') && (!alive _object))then
  2584. {
  2585. _skin_object = format['Skin_%1',_type];
  2586. _curInventory = _curInventory + [_skin_object];
  2587. };
  2588. _bagX = unitBackpack _object;
  2589. if(!isNull _bagX)then
  2590. {
  2591. _pUBM = (getMagazineCargo _bagX) select 0;
  2592. _curInventory = _curInventory + _pUBM;
  2593. _pUBW = (getWeaponCargo _bagX) select 0;
  2594. _curInventory = _curInventory + _pUBW;
  2595. _curInventory;
  2596. };
  2597. {_itemsNear = _itemsNear + [_x];} forEach _curInventory;
  2598.  
  2599. _infiSTAR = ((getWeaponCargo _object)+(getMagazineCargo _object));
  2600. if(str(_infiSTAR) != '[[],[],[],[]]')then
  2601. {
  2602. {_cntfnd = _cntfnd + _x;} forEach ((_infiSTAR select 1)+(_infiSTAR select 3));
  2603. {_curCargo = _curCargo + [_x];} forEach (_infiSTAR select 0);
  2604. {_curCargo = _curCargo + [_x];} forEach (_infiSTAR select 2);
  2605. {_itemsNear = _itemsNear + [_x];} forEach _curCargo;
  2606. };
  2607. if(_type in ['WeaponHolder'])then
  2608. {
  2609. _wpnsInObjT = _infiSTAR select 0;
  2610. _wpnsInObjC = _infiSTAR select 1;
  2611. {
  2612. if(_x > 30)then
  2613. {
  2614. _wpnT = _wpnsInObjT select _forEachIndex;
  2615. _log = format['WeaponHolder with %1 %2s looks suspicious',_x,_wpnT];
  2616. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  2617. [_name,getPlayerUID player,'HLOG',toArray (_log)] call "+_randvar37+";
  2618. };
  2619. } forEach _wpnsInObjC;
  2620. };
  2621.  
  2622. if("+str _CHB+")then
  2623. {
  2624. if(_type == 'USOrdnanceBox')then
  2625. {
  2626. _object hideObject true;
  2627. (findDisplay 106) closeDisplay 0;
  2628. }
  2629. else
  2630. {
  2631. _ctypes = ['MedBox0','AmmoBoxSmall_556','AmmoBoxSmall_762','FoodBox2','FoodBox3'];
  2632. if(_type in _ctypes)then
  2633. {
  2634. _BRLCD = 'xoxo';_BRLCD = _object getVariable['BRLCD','xoxo'];
  2635. if(_BRLCD in ['xoxo'])then
  2636. {
  2637. _dirBox = getDir _object;
  2638. _posBox = getPosATL _object;
  2639. deleteVehicle _object;
  2640.  
  2641. _object = createVehicle [_type,_posBox,[],0,'CAN_COLLIDE'];
  2642. _object setPosATL _posBox;
  2643. _object setDir _dirBox;
  2644. _object setVariable['BRLCD','kk',true];
  2645. player reveal _object;
  2646. };
  2647. };
  2648. _cntfndW = 0;
  2649. {_cntfndW = _cntfndW + _x;} forEach (_infiSTAR select 1);
  2650. _characterID = '0';_characterID = _object getVariable['CharacterID','0'];
  2651. if((_cntfnd > 10) || ((_type in _ctypes) && (_cntfndW > 1)))then
  2652. {
  2653. if((_type in _ctypes) || (_characterID == '0'))then
  2654. {
  2655. _fine = ['WeaponHolder','WeaponHolder_ItemVault','GraveDZE','CAManBase','TentStorageDomed2','GunRack_DZ','WoodCrate_DZ'];
  2656. if !((_type in _fine) || (_type isKindOf 'Bag_Base_EP1') || (_object isKindOf 'WeaponHolder') || (_object isKindOf 'LandVehicle') || (_object isKindOf 'Air') || (_object isKindOf 'Ship'))then
  2657. {
  2658. _afid = _infiSTAR select 2;
  2659. if(count _afid > 0)then
  2660. {
  2661. _fid = _afid find 'ItemBriefcase100oz';
  2662. if(_fid > -1)then
  2663. {
  2664. _acfid = _infiSTAR select 3;
  2665. _cfid = _acfid select _fid;
  2666. if(_cfid >= 3)then
  2667. {
  2668. _object setPosATL [_pos select 0,_pos select 1,(_pos select 2)+45];
  2669. };
  2670. };
  2671. };
  2672. };
  2673. };
  2674. };
  2675. if((_cntfnd > _maxx) && !(_type in ['WeaponHolder','Wooden_shed_DZ','VaultStorage','StorageShed_DZ','ArmoredSUV_PMC','ArmoredSUV_PMC_DZE','SeaFox']))then
  2676. {
  2677. if(_object isKindOf 'static')then
  2678. {
  2679. _object hideObject true;
  2680. _object setPosATL [_pos select 0,_pos select 1,(_pos select 2)+45];
  2681.  
  2682. _log = format['MaxCargo exceeded: %1 | %2 | @%3 %4 | %5 | %6',_type,_cntfnd,mapGridPosition _pos,_pos,_characterID,_infiSTAR];
  2683. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  2684. [_name,getPlayerUID player,'HLOG',toArray (_log)] call "+_randvar37+";
  2685. }
  2686. else
  2687. {
  2688. if(_cntfnd > _maxx + 100)then
  2689. {
  2690. {if(!isNull _x)then{_x action ['eject',_object];};} forEach (crew _object);
  2691. _object hideObject true;
  2692. _object setPosATL [_pos select 0,_pos select 1,(_pos select 2)+45];
  2693.  
  2694. _log = format['MaxCargo exceeded: %1 | %2 | @%3 %4 | %5 | %6',_type,_cntfnd,mapGridPosition _pos,_pos,_characterID,_infiSTAR];
  2695. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  2696. [_name,getPlayerUID player,'HLOG',toArray (_log)] call "+_randvar37+";
  2697. };
  2698. };
  2699. };
  2700. };
  2701. };
  2702. };
  2703. };
  2704. } forEach _nearestObjects;
  2705.  
  2706. _typePlr = typeOf player;
  2707. _invPLR = ((weapons player)+(magazines player));
  2708. _invPLR = _invPLR + [primaryWeapon player];
  2709. _invPLR = _invPLR + [currentWeapon player];
  2710. _invPLR = _invPLR + [(format['Skin_%1',_typePlr])];
  2711. _bagPlr = unitBackpack player;
  2712. if(!isNull _bagPlr)then
  2713. {
  2714. _pUBMPLR = (getMagazineCargo _bagPlr) select 0;
  2715. _invPLR = _invPLR + _pUBMPLR;
  2716. _pUBWPLR = (getWeaponCargo _bagPlr) select 0;
  2717. _invPLR = _invPLR + _pUBWPLR;
  2718. _invPLR;
  2719. };
  2720. if(isNil 'DayZ_onBack')then{DayZ_onBack = '';};
  2721. _TMP_onBack = DayZ_onBack;
  2722.  
  2723. uiSleep 0.5;
  2724.  
  2725. _inv_plrNEW = ((weapons player)+(magazines player));
  2726. _inv_plrNEW = _inv_plrNEW + [primaryWeapon player];
  2727. _inv_plrNEW = _inv_plrNEW + [currentWeapon player];
  2728. _newbag = unitBackpack player;
  2729. if(!isNull _newbag)then
  2730. {
  2731. if(str _bagPlr == str _newbag)then
  2732. {
  2733. _pUBM__pIrN = (getMagazineCargo _newbag) select 0;
  2734. _inv_plrNEW = _inv_plrNEW + _pUBM__pIrN;
  2735. _pUBW_plrN = (getWeaponCargo _newbag) select 0;
  2736. _inv_plrNEW = _inv_plrNEW + _pUBW_plrN;
  2737. _inv_plrNEW;
  2738. };
  2739. };
  2740. if(isNil 'DayZ_onBack')then{DayZ_onBack = '';};
  2741. _allowed = [DayZ_onBack,_TMP_onBack,'Throw','Flare','Put'];
  2742.  
  2743. _allIHave = [];
  2744. {
  2745. if !(_x in _allIHave)then
  2746. {
  2747. _allIHave = _allIHave + [_x];
  2748. };
  2749. } forEach (_invPLR+_allowed+_itemsNear);
  2750. _foundbad = [];
  2751. if !((currentWeapon player) in _allIHave)then
  2752. {
  2753. if !((currentWeapon player) in _foundbad)then
  2754. {
  2755. _foundbad = _foundbad + [(currentWeapon player)];
  2756. };
  2757. };
  2758. if !((primaryWeapon player) in _allIHave)then
  2759. {
  2760. if !((primaryWeapon player) in _foundbad)then
  2761. {
  2762. _foundbad = _foundbad + [(primaryWeapon player)];
  2763. };
  2764. };
  2765. _swep = '';
  2766. {
  2767. if((getNumber (configFile >> 'CfgWeapons' >> _x >> 'Type')) == 2)exitWith
  2768. {
  2769. _swep = _x;
  2770. };
  2771. } forEach (weapons player);
  2772. {
  2773. if(((_x in _watched) || (_x == currentWeapon player) || (_x == primaryWeapon player) || (_x == _swep)) && !(_x in _allIHave))then
  2774. {
  2775. if !(_x in _foundbad)then
  2776. {
  2777. _foundbad = _foundbad + [_x];
  2778. };
  2779. };
  2780. } forEach _inv_plrNEW;
  2781. if(count _foundbad > 0)then
  2782. {
  2783. {
  2784. _Iarray = toArray _x;
  2785. _Iarray resize 5;
  2786. _Iarray;
  2787. _short = toString _Iarray;
  2788. if(_short in ['Melee'])then
  2789. {
  2790. _foundbad = _foundbad - [_x];
  2791. };
  2792. } forEach _foundbad;
  2793. };
  2794.  
  2795. _ItemsAdded = [];
  2796. {
  2797. if !(_x in _ItemsAdded)then
  2798. {
  2799. _ItemsAdded = _ItemsAdded + [_x];
  2800. };
  2801. } forEach _foundbad;
  2802. _ItemsAdded = _ItemsAdded - ['Put'];
  2803. _ItemsAdded = _ItemsAdded - [''];
  2804. if(count _ItemsAdded > 0)then
  2805. {
  2806. if(_RAI)then
  2807. {
  2808. {
  2809. [_x] spawn {
  2810. _y = _this select 0;
  2811. for '_i' from 0 to ({_x == _y} count (weapons player)) do {player removeWeapon _y;};
  2812. player removeMagazines _y;
  2813. for '_w' from 0 to 10 do {uiSleep 0.1;player removeWeapon _y;player removeMagazines _y;};
  2814. };
  2815. } forEach _ItemsAdded;
  2816. };
  2817. };
  2818. }
  2819. else
  2820. {
  2821. uiSleep 0.25;
  2822. };
  2823. };
  2824. };
  2825. [] spawn {
  2826. while{1 == 1}do
  2827. {
  2828. _inv = [];
  2829. _inv = _inv + (magazines player);
  2830. _inv = _inv + (weapons player);
  2831. if(!isNull (unitBackpack player))then
  2832. {
  2833. _BW = (getWeaponCargo unitBackpack player) select 0;
  2834. _BM = (getMagazineCargo unitBackpack player) select 0;
  2835. _inv = _inv + _BW + _BM;
  2836. };
  2837. if(isNil 'DayZ_onBack')then{DayZ_onBack = '';};
  2838. _inv = _inv + [DayZ_onBack];
  2839.  
  2840. {
  2841. if((_x in _inv) && (_x != ''))then
  2842. {
  2843. [_x] spawn {
  2844. _y = _this select 0;
  2845. for '_i' from 0 to ({_x == _y} count (weapons player)) do {player removeWeapon _y;};
  2846. player removeMagazines _y;
  2847. for '_w' from 0 to 10 do {uiSleep 0.1;player removeWeapon _y;player removeMagazines _y;};
  2848. };
  2849. if(player distance "+str _mPos+" > 500)then
  2850. {
  2851. [] spawn {
  2852. player setDamage 5;
  2853. deleteVehicle player;
  2854. };
  2855.  
  2856. [] spawn "+_randvar2+";
  2857. _log = format['BadItem: %1',_x];
  2858. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  2859. [_name,getPlayerUID player,'BAN',toArray (_log)] call "+_randvar37+";
  2860. };
  2861. };
  2862. } forEach ("+str _ForbiddenItems+" + ['FakeWeapon','RocketPods','GyroGrenadeLauncher','FFARLauncher','FFARLauncher_12','Rifle','M16_base',
  2863. 'HandGunBase','Put','M240_veh','M240_veh_2','M240_veh_MG_Nest','PKT','PKT_MG_Nest','PKT_veh','DT_veh','M2',
  2864. 'M3P','DSHKM','KORD','KPVT','M168','M197','AZP85','2A14','GAU12','2A42','M242','GAU8','2A38M','AGS30','AGS17',
  2865. 'MK19','M119','M256','D30','D81','ZiS_S_53','2A46M','FFARLauncher_14','CamelGrenades','57mmLauncher',
  2866. '57mmLauncher_64','57mmLauncher_128','80mmLauncher','S8Launcher','MissileLauncher','SidewinderLaucher',
  2867. 'SidewinderLaucher_F35','SidewinderLaucher_AH1Z','AT5Launcher','AT5LauncherSingle','2A46MRocket','AT10LauncherSingle',
  2868. 'AT11LauncherSingle','AT13LauncherSingle','TOWLauncher','TOWLauncherSingle','HellfireLauncher','VikhrLauncher',
  2869. 'BombLauncher','BombLauncherF35','BombLauncherA10','SEARCHLIGHT','CarHorn','BikeHorn','TruckHorn','TruckHorn2',
  2870. 'SportCarHorn','MiniCarHorn','R73Launcher','R73Launcher_2','Ch29Launcher','Ch29Launcher_Su34','2A70Rocket','2A70',
  2871. 'AT6Launcher','AT9Launcher','AT2Launcher','HeliBombLauncher','AirBombLauncher','Mk82BombLauncher','Mk82BombLauncher_6',
  2872. 'StingerLaucher','StingerLauncher_twice','AALauncher_twice','Igla_twice','MaverickLauncher','9M311Laucher',
  2873. 'WeaponExplosive','M252','2B14','MeleeWeapon','m8_base','PKT_2','PKT_3','SidewinderLaucher_AH64','M230','BAF_L2A1',
  2874. 'BAF_M240_veh','BAF_L7A2','BAF_L94A1','BAF_static_GMG','BAF_GMG','CTWS','CRV7_PG','CRV7_HEPD','CRV7_FAT','M621','M68',
  2875. 'D10','PKTBC','PKTBC_veh','SGMT','HellfireLauncher_AH6','StingerLaucher_4x','M242BC','M240BC_veh','M2BC','MK19BC',
  2876. 'M120','GrenadeLauncher_EP1','SCAR_Base','SCAR_L_Base','SCAR_H_Base','PKT_high_AI_dispersion','PKT_high_AI_dispersion_tank',
  2877. 'AGS30_heli','M32_heli','CZ805_A1_ACR','CZ805_A1_GL_ACR','CZ805_B_GL_ACR','2A42_AI','ATKMK44_ACR_AI','M242_AI','M242BC_AI',
  2878. 'CTWS_AI','M256_AI','M68_AI','D81_AI','2A46M_AI','D81CZ_AI','D10_AI','ZiS_S_53_AI','ATKMK44_ACR','D81CZ','2A72','ItemMap_Debug',
  2879. 'CMFlareLauncher','FlareLauncher','GRAD','GSh23L','GSh23L_L39','GSh301','GSh302','M134','M134_2','MLRS',
  2880. 'SmokeLauncher','SPG9','TwinM134','TwinVickers','YakB']);
  2881. uiSleep 15;
  2882. };
  2883. };
  2884. [] spawn {
  2885. private ['_maxdist','_lastVeh','_curVeh','_lastPos','_curPos','_worldspace','_spawnPos'];
  2886. _mPos = "+str _mPos+";
  2887. _spawnPos = _mPos;
  2888. dayz_spawnPos = getPosATL player;
  2889. _spawnPos = getPosATL player;
  2890. _TPC = 0;
  2891. "+_oneachframe+"=time;
  2892. "+_clickOnMapTimer+" = 0;
  2893.  
  2894. {((findDisplay 12) displayCtrl 51) ctrlRemoveAllEventHandlers _x;} forEach ['MouseButtonDblClick','MouseButtonClick','MouseButtonDown','MouseButtonUp','Draw'];
  2895. "; if(_OMC)then{ _AHstring = _AHstring + "
  2896. _MBC = '
  2897. [] spawn {
  2898. uiSleep 0.5;
  2899. if(isNil''"+_clickOnMapTimer+"'')then{"+_clickOnMapTimer+"=time - 100;}else{if(typeName "+_clickOnMapTimer+" != ''SCALAR'')then
  2900. {
  2901. _log = ''MapSingleClick modified - VARIABLE TYPE CHANGED - BAN.'';
  2902. [name player,getPlayerUID player,''BAN'',toArray(_log)] call "+_randvar37+";
  2903. (findDisplay 46)closeDisplay 0;
  2904. };};
  2905. if(time - "+_clickOnMapTimer+" > 5)then
  2906. {
  2907. "+_clickOnMapTimer+" = time;
  2908. onMapSingleClick ''"+_clickOnMapTimer+" = time;'';
  2909. if(isNil''"+_clickOnMapCaught+"'')then{"+_clickOnMapCaught+" = 0};
  2910. "+_clickOnMapCaught+" = "+_clickOnMapCaught+" + 1;
  2911. if("+_clickOnMapCaught+" >= 3)then
  2912. {
  2913. _log = ''MapSingleClick modified - probably Teleport Hack'';
  2914. [name player,getPlayerUID player,''SLOG_SKICK'',toArray(_log)] call "+_randvar37+";
  2915. (findDisplay 46)closeDisplay 0;
  2916. };
  2917. };
  2918. };
  2919. ';
  2920. onMapSingleClick '"+_clickOnMapTimer+" = time;';
  2921. ((findDisplay 12) displayCtrl 51) ctrlSetEventHandler ['MouseButtonClick',_MBC];
  2922. ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ['MouseButtonClick',_MBC];
  2923. "; }; _AHstring = _AHstring + "
  2924.  
  2925. _name = name player;
  2926. _uid = getPlayerUID player;
  2927. _fn_sendToServer = compile('"+_randvar10+" = _this;publicVariableServer''"+_randvar10+"'';');
  2928. while{1 == 1}do
  2929. {
  2930. {((findDisplay 12) displayCtrl 51) ctrlRemoveAllEventHandlers _x;} forEach ['MouseButtonDblClick','MouseButtonClick','MouseButtonDown','MouseButtonUp','Draw'];
  2931. "; if(_OMC)then{ _AHstring = _AHstring + "
  2932. ((findDisplay 12) displayCtrl 51) ctrlSetEventHandler ['MouseButtonClick',_MBC];
  2933. ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ['MouseButtonClick',_MBC];
  2934. "; }; _AHstring = _AHstring + "
  2935. "; if(!_OMC)then{ _AHstring = _AHstring + "
  2936. onMapSingleClick '';
  2937. "; }; _AHstring = _AHstring + "
  2938.  
  2939.  
  2940. "; if(_REF)then{ _AHstring = _AHstring + "
  2941. if(typeName "+_oneachframe+" != 'SCALAR')then
  2942. {
  2943. [] spawn "+_randvar2+";
  2944. _log = 'onEachFrame injector detected';
  2945. [name player,getPlayerUID player,'BAN',toArray (_log)] call _fn_sendToServer;
  2946. };
  2947. if(time - "+_oneachframe+" > 20)then
  2948. {
  2949. [] spawn "+_randvar2+";
  2950. _log = format['onEachFrame injector detected - %1 (either lag spike on client or ESP Hack/Godmoe.. bad things..)',time - "+_oneachframe+"];
  2951. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  2952. [_name,getPlayerUID player,'BAN',toArray (_log)] call _fn_sendToServer;
  2953. };
  2954. onEachFrame {"+_oneachframe+"=time;};
  2955. "; }; _AHstring = _AHstring + "
  2956. "; if(_UAT)then{ _AHstring = _AHstring + "
  2957. _lastVeh = vehicle player;
  2958. _lastPos = getPosATL player;
  2959. _lastPosZ = [_lastPos select 0,_lastPos select 1,0];
  2960. if !(_lastVeh isKindOf 'Air')then
  2961. {
  2962. _vel = velocity _lastVeh;
  2963. if(_vel select 2 > 10)then
  2964. {
  2965. _velNew = [_vel select 0,_vel select 1,0];
  2966. _lastVeh SetVelocity _velNew;
  2967. _lastVeh setPosATL _lastPosZ;
  2968. };
  2969. };
  2970. uiSleep 0.35;
  2971. _curVeh = vehicle player;
  2972. _curPos = getPosATL player;
  2973. _distance1 = floor(_lastPosZ distance [_curPos select 0,_curPos select 1,0]);
  2974. _maxdist = 120;
  2975. if(_curVeh isKindOf 'Man')then
  2976. {
  2977. _maxdist = 100;
  2978. if(_curVeh == player)then
  2979. {
  2980. _speed = abs (speed player);
  2981. if(_speed <= 0.1)then{_maxdist = 3;};
  2982. };
  2983. };
  2984. if(_curVeh isKindOf 'Air')then{_maxdist = 750;};
  2985. if(_curVeh isKindOf 'LandVehicle')then{_maxdist = 400;};
  2986. if(_curVeh isKindOf 'Ship')then{_maxdist = 400;};
  2987. if(_distance1 > _maxdist)then
  2988. {
  2989.  
  2990. if((str _lastVeh == str _curVeh) && (_mPos distance _curPos < 350))then
  2991. {
  2992. player setPosATL _lastPos;
  2993. };
  2994. if((str _lastVeh == str _curVeh) && {(player == _driver) || (isNull _driver)})then
  2995. {
  2996. if(_mPos distance _lastPos < 500)exitWith{};
  2997. if(_mPos distance _curPos < 500)exitWith{};
  2998. if(_spawnPos distance _lastPos < 25)exitWith{};
  2999.  
  3000. player setVectorUp [0,0,1];
  3001. player setVelocity [0,0,0];
  3002. if(isNil '"+_AHpos+"')then
  3003. {
  3004. if(_distance1 < 15)then
  3005. {
  3006. player setPosATL _lastPos;
  3007. }
  3008. else
  3009. {
  3010. if(_TPC > 1)then
  3011. {
  3012. player setPosATL _lastPos;
  3013. if(_TPC > 3)then
  3014. {
  3015. _log = format['Player Teleport: %1 to %2 (%3m) | %4 | %5 to %6',mapGridPosition _lastPos,mapGridPosition _curPos,_distance1,typeOf _curVeh,_lastPos,_curPos];
  3016. [_name,_uid,'HLOG_SKICK',toArray (_log)] call _fn_sendToServer;
  3017. };
  3018. };
  3019. if(((_curVeh isKindOf 'ParachuteBase') || (_curVeh isKindOf 'BIS_Steerable_Parachute')) && ((floor (_curPos select 2)) > 35))then
  3020. {
  3021. _curVeh setPosATL _lastPosZ;
  3022. if(!isNull _curVeh)then{deleteVehicle _curVeh;};
  3023. _log = 'Player to fast with Parachute (Teleport?) put to Ground.';
  3024. [_name,_uid,'SLOG',toArray (_log)] call _fn_sendToServer;
  3025. }
  3026. else
  3027. {
  3028. _TPC = _TPC + 1;
  3029. };
  3030. };
  3031. }
  3032. else
  3033. {
  3034. [_name,_uid,'TPCHECK',"+_AHpos+"] call _fn_sendToServer;
  3035. "+_AHpos+" = nil;
  3036. };
  3037. };
  3038. };
  3039. "; }else{ _AHstring = _AHstring + "
  3040. uiSleep 0.35;
  3041. "; }; _AHstring = _AHstring + "
  3042. };
  3043. };
  3044. if !("+str _UIM+")then
  3045. {
  3046. if("+str _UFS+")then{
  3047. [] spawn {
  3048. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  3049. preProcessFileLineNumbers 'scan completed, bad content was not found.';
  3050. _sa = ['Settings##.ini'];
  3051. for '_i' from 0 to 333 do { _sa = _sa + [(format['Settings%1.ini',_i])]; };
  3052. _m = [(format['%1\tele.sqf',_name]),(format['%1\DefaultMenu.sqf',_name]),(format['%1\initmenu.sqf',_name]),(format['%1\Startup.sqf',_name])];
  3053. _farray =
  3054. [
  3055. 'blah.sqf',
  3056. 'A2MenuV2\MainFile.sqf','A2MenuV2\ExecME.sqf','FinizMenuzV4\run.sqf',
  3057. 'xoia24rfadfhw2\alishcahc.sqf','001.sqf','FinisTxTMenu\MainFile.sqf','FinisTxTMenu\cumpile\dahR_E.sqf',
  3058. 'WhippyV4\execv4.sqf','WhippyV4\Keybindiezz.sqf','V3\B1ND.sqf','l33tH4x0or\L33TMenu.sqf','run.sqf',
  3059. 'JHAction.sqf','V4Run.sqf','Whippymenu\activate.sqf','Whippymenu\keybindfz.sqf','WhippyV4\WHRSupplies.sqf',
  3060. 'oefexec.dll','stdafx.h','whippy\execute.sqf','MSSM\main.sqf','ScriptName.sqf','RommelV1\Rexecv1.sqf',
  3061. 'whippymenu\execute.sqf','ArmA2OAHackUCReleasebyCriibyy_[www.unknowncheats.me]_.dll','ArmA2OAHackUCReleasebyCriibyy.dll',
  3062. 'Mystic.sqf','debug_console','Xenos.exe','Xenos64.exe','hoen\sttart.sqf','hoen\compile\re.sqf',
  3063. 'freddiesexternalmenu\freddies_active.sqf','freddiesexternalmenuv8\freddies_active.sqf','Menu_Scripts\menu\menu_generate.sqf',
  3064. 'infiSTAR_[www.unknowncheats.me]_.dll','Missions\infiSTAR_[www.unknowncheats.me]_.dll','Deluxe_97\Deluxe.sqf',
  3065. 'Expansion\infiSTAR_[www.unknowncheats.me]_.dll','dll\infiSTAR_[www.unknowncheats.me]_.dll',
  3066. 'infiSTAR.dll','Missions\infiSTAR.dll','Expansion\infiSTAR.dll','dll\infiSTAR.dll',
  3067. 'VGLoader.exe','Missions\VGLoader.exe','Expansion\VGLoader.exe','dll\VGLoader.exe',
  3068. 'vgupdater.exe','Missions\vgupdater.exe','Expansion\vgupdater.exe','dll\vgupdater.exe',
  3069. '0100100110\start.sqf','Missions\0100100110\start.sqf','Expansion\0100100110\start.sqf','dll\0100100110\start.sqf',
  3070. '0100100110\Starts.sqf','Missions\0100100110\Starts.sqf','Expansion\0100100110\Starts.sqf','dll\0100100110\Starts.sqf',
  3071. 'epoch\epochMain.sqf','Missions\epoch\epochMain.sqf','Expansion\epoch\epochMain.sqf','dll\epoch\epochMain.sqf',
  3072. 'Hack-Dayz.exe','Missions\Hack-Dayz.exe','Expansion\Hack-Dayz.exe','dll\Hack-Dayz.exe','TM\keymenu.sqf',
  3073. 'DayZZ.exe','Missions\DayZZ.exe','Expansion\DayZZ.exe','dll\DayZZ.exe','OTHER\scripts\fly.sqf','TM\clearvar.sqf',
  3074. 'scrFuckOffInfistar1\start.sqf','epoch\targetall\fuckserver.sqf','boooooooobies.sqf','infiSTAR_GOLD\Startup.sqf',
  3075. 'settings26\init.sqf','settings26\start.sqf','settings26\load.sqf','settings26\go.sqf','Arma 2 OA Battleye Bypass.exe',
  3076. 'scroll\startmain.sqf','Exta_files\scrollMain.sqf','players\egeg.sqf','DCv3\dc.sqf','Supplys\giveloadout.sqf',
  3077. 'runme.dll','Missions\runme.dll','Expansion\runme.dll','dll\runme.dll','Scripts\runme.dll',
  3078. 'NR.exe','Missions\NR.exe','Expansion\NR.exe','dll\NR.exe','Scripts\NR.exe','wuat\start3.sqf',
  3079. 'activator_NR.exe','Missions\activator_NR.exe','Expansion\activator_NR.exe','dll\activator_NR.exe','Scripts\activator_NR.exe',
  3080. 'MedMen.exe','Missions\MedMen.exe','Expansion\MedMen.exe','dll\MedMen.exe','Scripts\MedMen.exe',
  3081. 'SpawnTool.exe','Missions\SpawnTool.exe','Expansion\SpawnTool.exe','dll\SpawnTool.exe','Scripts\SpawnTool.exe',
  3082. 'HVMRuntm.dll','Missions\HVMRuntm.dll','Expansion\HVMRuntm.dll','dll\HVMRuntm.dll','Scripts\HVMRuntm.dll',
  3083. 'D-DayZ.dll','Missions\D-DayZ.dll','Expansion\D-DayZ.dll','dll\D-DayZ.dll','Scripts\D-DayZ.dll',
  3084. 'ss3.dll','Missions\ss3.dll','Expansion\ss3.dll','dll\ss3.dll','Scripts\ss3.dll','epoch.sqf','epoch2.sqf','fixed.exe',
  3085. 'Scripts\darky.sqf','Scripts\explo.sqf','Scripts\explode_all.sqf','Scripts\explode.sqf','@Dayz_Namalsk\menu.sqf','@Dayz_Namalsk\HP.sqf',
  3086. 'Dayz_Namalsk\menu.sqf','Dayz_Namalsk\HP.sqf','youtube.dll','vg\Run.sqf','rus\mission_settings\create.sqf',
  3087. 'vg\Custommenu.sqf','vg\RunAH.sqf','vg\Startup.sqf','vg\exec.sqf','scr\Run.sqf','scr\Custommenu.sqf','scr\RunAH.sqf',
  3088. 'uhx_menu_first_ed\menu\logoblue.paa','Expansion\beta\dll\RayHook.dll','RayHook.dll','scr\Startup.sqf','scr\ahbypass.sqf',
  3089. 'cset.sqf','crawdaunt\crawdaunt.sqf','hangender\start.sqf','Scripts\ajmenu.sqf','wuat\screen.sqf','TM\menu.sqf','TM\screen.sqf',
  3090. 'Scripts\menu.sqf','crinkly\keymenu.sqf','ASM\startup.sqf','RSTMU\scr\startMenu.sqf','scr\startMenu.sqf','scr\STrial.sqf',
  3091. 'wuat\vet@start.sqf','TM\keybind.sqf','startup.sqf','start.sqf','startupMenu.sqf','xTwisteDx\menu.sqf','wuat\start.sqf','TM\startmenu.sqf',
  3092. 'infiSTAR_Menu\setup\startup.sqf','startMenu.sqf','custom.sqf','WiglegHacks\mainmenu.sqf','bowenisthebest.sqf',
  3093. 'Scripts\Menu_Scripts\empty.sqf','@mymod\Scripts\ajmenu.sqf','i_n_f_i_S_T_A_R___Menu\setup\scrollmenu.sqf',
  3094. 'yolo\w4ssup YoloMenu v2.sqf','Menus\infiSTAR_SEVEN\startup.sqf','Menus\battleHIGH_Menu\startup.sqf',
  3095. 'Missions\Menus\battleHIGH_Menu\startup.sqf','infiSTAR_EIGHT\startup.sqf','infiSTAR_SSH\startup.sqf',
  3096. 'TM\start.sqf','TM\DemonicMenu.sqf','Scripts\screen.sqf','Scripts\start.sqf','i_n_f_i_S_T_A_R___Menu\list.sqf',
  3097. 'battleHIGH_Menu\startup.sqf','infiSTAR_SEVEN\startup.sqf','Scripts\list.sqf','Scripts\mah.sqf','Menu\start.sqf',
  3098. 'Menu\startup.sqf','i_n_f_i_S_T_A_R.sqf','infiSTAR_Confin3d_edit\infiSTAR.sqf','infiSTAR_Confin3d_edit\startup.sqf',
  3099. 'YoloMenu Updated v6.sqf','Scripts\YoloMenu Updated v6.sqf','Scripts\startmenu.sqf','run.sqf','tm\starthack.sqf',
  3100. 'ASM\_for_keybinds\mystuff.sqf','wookie_wuat\startup.sqf','gc_menu\starten.sqf','sigdumper.dll','sigdumper.exe',
  3101. 'yolo\YoloMenu Updated v6.sqf','dll\Project1_[www.unknowncheats.me]_.exe','Scripts\Project1_[www.unknowncheats.me]_.exe',
  3102. 'gc_menu\uitvoeren.sqf','scr_wasteland\menu\initmenu.sqf','exec.sqf','infiSTAR_chewSTAR_Menu\infiSTAR_chewSTAR.sqf',
  3103. 'infiSTAR_chewSTAR_Menu\scrollmenu\addweapon.sqf','Demonic Menu\scr\startMenu.sqf','Demonic Menu\TM\STARTMENU.sqf',
  3104. 'scr\scr\keybinds.sqf','DayZLegendZ Scripts\mah.sqf','Pickled Menu 3.0\Scripts\ajmenu.sqf','invisible.sqf',
  3105. '@mHlopchik\Menu_Scripts\menu\keybind\funmenu','RustleSTAR_Menu\menu\initmenu.sqf','RustleSTAR_Menu\setup\startup.sqf',
  3106. 'Scripts\mpghmenu.sqf','DevCon.pbo','DayZLegendZ Scripts\startMenu.sqf','DayZLegendZ Scripts\mah.sqf','EASYTM\start.sqf',
  3107. 'TotalInjector.exe','Rusterl.exe','drhack.dll','drhack.exe','DayZ-Injector cracked by vovanre.exe','dayz-injector.sqf',
  3108. 'DayZ-Injector.dll','HackMenu.exe','d3d199.dll','Scintilla.dll','DayZ-Injector.dll','DayZ-Injector v0.4.exe','CFF-Hook.sqf',
  3109. 'CFF-Hook.dll','skriptexecuter2.exe','PEWPEWPEWPEW.dll','Injector.exe','@SPX\Spawn Weapon.sqf','@SPX\3b.sqf','MK\Scripts\startup.sqf',
  3110. 'Obama Drone 0.5.2.1.exe','NewDayZ.dll','dll\MyHack.dll','Radar_NewR.exe','YoloHack.dll','BESecureJect.exe','YoloMenu.sqf',
  3111. 'hidden.exe','ssl3.dll','DayZNavigator.exe','Spawner.exe','EmptyDll.dll','yolo\startup.sqf','script loader Warrock.exe','infiSTAR.sqf',
  3112. 'VX DAYZ.exe','CE_Engine-v5.exe','kenhack\alltome.sqf','kenhack\SM\AH6X_DZ.sqf','kenhack\veshi.sqf','skriptexecuter2.ini','lcc.exe',
  3113. 'scripts\new.sqf','new.sqf','Dayz Hack v 1.0.exe','dayz cheat\lcc.exe','Scripts\@Hak_script\1.GLAVNOYE\000.sqf','cheater.sqf',
  3114. '@Hak_script\1.GLAVNOYE\000.sqf','scripts\2dmap.sqf','2dmap.sqf','scripts\addweapon.sqf','addweapon.sqf','scripts\ammo 2.sqf',
  3115. 'ammo 2.sqf','DayZ-Injector v.0.2.2.exe','DayZ AimJunkies.exe','CheatDayZUniversal.exe','DayZ Private AIM,MAP,WH v1.2.exe',
  3116. 'AimJunkies.exe','FABISDayZLauncher.exe','gluemenu.sqf','DayZ Item spawner.exe','Dayz AIM ESP Shield.exe','ChernoNuke.sqf',
  3117. 'Scripts\Menu_Scripts\ChernoNuke.sqf','Menu_Scripts\ChernoNuke.sqf','Nuke.sqf','Scripts\Menu_Scripts\NWAFNuke.sqf',
  3118. 'NWAFNuke.sqf','Scripts\Menu_Scripts\newsbanner.sqf','newsbanner.sqf','Scripts\Menu_Scripts\ElektroNuke.sqf',
  3119. 'ElektroNuke.sqf','Scripts\Nuke.sqf','Scripts\different_AK\AKS-74 Kobra.sqf','Scripts\ESP\esp_TEST.sqf',
  3120. 'ESP\esp_TEST.sqf','esp_TEST.sqf','esp.sqf','Scripts\GodMode.sqf','GodMode.sqf','Scripts\God mode 1.sqf',
  3121. 'God mode 1.sqf','MapHack.sqf','infiSTAR_chewSTAR_Menu\all_misc\nukes\nuke.sqf','@Hak_script\1.Teleport.sqf',
  3122. 'TheBatmanHack v2.6.exe','X-ray.exe','Project1.exe','Dayz injector-by vovan.exe','explode_all.sqf','explode.sqf',
  3123. 'Ubu5Ukg3.sqf','customizethis.sqf','Z__i_n_f_i_S_T_A_R__Z\Run.sqf','Missions\infiSTAR_SEVEN\startup.sqf',
  3124. 'Missions\infiSTAR_SSH\startup.sqf','renamethis.sqf','round2\runthis.sqf','safe scripts\gm.sqf','scr\exec.sqf',
  3125. 'Scripts\exec.sqf','scrollz\tp.sqf','ShadowyFaze\exec.sqf','infiSTAR_BLACK\Startup.sqf','lol.sqf','teststartup.sqf',
  3126. 'infiSTAR_NEW\Startup.sqf','DayZ_Settings.txt','Optix_DayZ_Auto.txt','ldr.cnf','Custom_folder\scrollmenu\Click to Tp.sqf',
  3127. 'Aspire Menu v.0.5\ALL TEH SCRIPTS!\esp.sqf','Aspire Menu v.0.5\ALL TEH SCRIPTS!\heal.sqf','SpawnTool.exe','LoganNZL\LoganNZL@execute.sqf',
  3128. 'LoganNZL\LoganNZL@start.sqf','LoganNZL@start.sqf','nightsuck.sqf','Project1_[www.unknowncheats.me]_.exe','wuat\RUN.sqf',
  3129. 'Missions\Project1_[www.unknowncheats.me]_.exe','Expansion\Project1_[www.unknowncheats.me]_.exe','wuat\Scripts.txt','wuat\start1.sqf',
  3130. 'GiveItTheDLL.exe','Missions\GiveItTheDLL.exe','Expansion\GiveItTheDLL.exe','dll\GiveItTheDLL.exe','Scripts\GiveItTheDLL.exe',
  3131. 'spawner.dll','Missions\spawner.dll','Expansion\spawner.dll','dll\spawner.dll','Scripts\spawner.dll','wuat\scripts\runMagicaly.sqf',
  3132. 'inject.bat','Missions\inject.bat','Expansion\inject.bat','dll\inject.bat','Scripts\inject.bat','wuat\screen2.sqf','wuat\standalonemenu.sqf',
  3133. 'spawner\GiveItTheDLL.exe','spawner\Missions\GiveItTheDLL.exe','spawner\Expansion\GiveItTheDLL.exe','spawner\dll\GiveItTheDLL.exe','spawner\Scripts\GiveItTheDLL.exe',
  3134. 'spawner\spawner.dll','spawner\Missions\spawner.dll','spawner\Expansion\spawner.dll','spawner\dll\spawner.dll','spawner\Scripts\spawner.dll',
  3135. 'spawner\inject.bat','spawner\Missions\inject.bat','spawner\Expansion\inject.bat','spawner\dll\inject.bat','spawner\Scripts\inject.bat',
  3136. 'infiSTAR_SSH\setup\startup.sqf','Supplys\BBstart.sqf','TM\666.sqf','vscripts\Startup.sqf','Ronnie\Startup.sqf','MyScripts\cargo.sqf',
  3137. 'BE\update.sqf','ScriptBasic.sqf','ScriptTelePlayer.sqf','Deluxe.sqf','Moving_Gun_Menu\start.sqf','Whippy\playerTools.sqf','whippyv4\executev4.sqf',
  3138. 'WRMoney.sqf','allover_[www.unknowncheats.me]_.dll','allover.dll','WhippyMenu\keybindfz.sqf','WhippyMenu\SqfFiles\esp.sqf',
  3139. 'WhippyMenu\SqfFiles\destroyb.sqf','WhippyMenu\SqfFiles\setviewdistance500m.sqf','WhippyMenu\SqfFiles\night.sqf','WhippyMenu\SqfFiles\unlock.sqf',
  3140. 'initFunctions.sqf','tbb4malloc_bi.dll','PRaZ\start.sqf','jh\Action.sqf','ArmA2OA_Extars\BB_menu_BB.sqf','NovaHack.sqf',
  3141. 'ArmA2OA_Extras\ben_ex.sqf','decrypt.sqf','\z\addons\ui_addons\decrypt.sqf','A2MenuV2\ExecME.sqf','Expansion\Addons\ui_addons.pbo',
  3142. 'ui_addons\decrypt.sqf','testest.sqf','testestt.sqf','RooslahVeeSevan.sqf','localBox.sqf','News.sqf',
  3143. 'iFuckingLoveMemes\wowGetMemedSonXD_init.sqf','wowGetMemedSonXD_init.sqf','InfinityMenuV1.sqf','Infinity_Menu\InfinityMenuV1.sqf'
  3144. ]+_m+_sa;
  3145. while{1 == 1}do
  3146. {
  3147. _c = 0;
  3148. {
  3149. _c = _c + 1;
  3150. if(_c >= 10)then
  3151. {
  3152. _c = 0;
  3153. uiSleep 0.5;
  3154. };
  3155. _f = preprocessFileLineNumbers _x;
  3156. if(_f != '')then
  3157. {
  3158. [] spawn "+_randvar2+";
  3159. _log = format['BadFile: %1 - %2',_x,_f];
  3160. [_name,getPlayerUID player,'BAN',toArray (_log)] call "+_randvar37+";
  3161. };
  3162. uiSleep 0.01;
  3163. true
  3164. } count _farray;
  3165. uiSleep 600;
  3166. };
  3167. };
  3168. };
  3169. };
  3170. "+_randvar4+" = {
  3171. _bkey = _this select 0;
  3172. _log = format['<infiSTAR.de>: You have pressed a forbidden Key! (%1)',_bkey];
  3173. cutText [_log,'WHITE IN'];
  3174. hint _log;
  3175. systemchat _log;
  3176. if("+str _PBK+")then{for '_start' from 0 to 5 do {disableUserInput true;};};
  3177. if("+str _LBK+")then
  3178. {
  3179. _log = format['BadKey: %1',_bkey];
  3180. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  3181. [_name,getPlayerUID player,'SLOG_BK',toArray (_log)] call "+_randvar37+";
  3182. };
  3183. if("+str _PBK+")then{uiSleep 3;for '_stop' from 0 to 5 do {disableUserInput false;};};
  3184. };
  3185. "; if(_UIM)then{ _AHstring = _AHstring + "
  3186. "+_randvar6+" = ""
  3187. _key = _this select 1;
  3188. _shift = _this select 2;
  3189. _ctrl = _this select 3;
  3190. _alt = _this select 4;
  3191. _handled = false;
  3192. if(_key == "+str _ODK+")then
  3193. {
  3194. [] spawn fnc_debugX0;
  3195. _handled = true;
  3196. };
  3197. _handled
  3198. "";
  3199. "; }else{; _AHstring = _AHstring + "
  3200. "+_randvar6+" = ""
  3201. _key = _this select 1;
  3202. _shift = _this select 2;
  3203. _ctrl = _this select 3;
  3204. _alt = _this select 4;
  3205. _handled = false;
  3206.  
  3207. _fnc_punish_combatlog = {
  3208. _isInCombat = player getVariable['startcombattimer',0];
  3209. if(str _isInCombat != '0')then{ player setDamage 1; };
  3210. };
  3211.  
  3212. if(_key == "+str _ODK+")then{[] spawn fnc_debugX0;_handled=true};
  3213. "; if(_RCK)then{ _AHstring = _AHstring + "
  3214. if(_key == "+str _OpenMenuKey+")then{['AdminMenu Key'] spawn "+_randvar4+";_handled=true};
  3215. if(_key == 0xC7)then{['Home - Known to start HackMenus'] spawn "+_randvar4+";_handled=true};
  3216. if(_key == 0x3C)then{['F2 - Known to start HackMenus'] spawn "+_randvar4+";_handled=true};
  3217. if(_shift)then
  3218. {
  3219. if(_key == 0x19)then{['Shift + P to CombatLog'] spawn "+_randvar4+";call _fnc_punish_combatlog;_handled=true};
  3220. };
  3221. if(_alt)then
  3222. {
  3223. if(_key == 0x57)then{['ALT-F11'] spawn "+_randvar4+";};
  3224. if(_key == 0x3E)then{['ALT-F4 to CombatLog'] spawn "+_randvar4+";call _fnc_punish_combatlog;_handled=true};
  3225. };
  3226. "; }; _AHstring = _AHstring + "
  3227. _handled
  3228. "";
  3229. if("+str _VON+")then
  3230. {
  3231. [] spawn {
  3232. _voicecount = 0;
  3233. while{1 == 1}do
  3234. {
  3235. if(!isNull findDisplay 63)then
  3236. {
  3237. _ctrlText = ctrlText (findDisplay 63 displayCtrl 101);
  3238. _chID = switch _ctrlText do {
  3239. case localize 'STR_GLOBAL_CHANNEL' : {0};
  3240. case localize 'STR_SIDE_CHANNEL' : {1};
  3241. default {['',-1]};
  3242. };
  3243. if((!isNull findDisplay 55) && (_chID in [0,1]))then
  3244. {
  3245. _msg = '<infiSTAR.de>: NO VOICE ON SIDE/GLOBAL!';
  3246. hint _msg;
  3247. 1 cutText [format ['%1',_msg],'PLAIN DOWN'];
  3248. systemchat _msg;
  3249.  
  3250. _voicecount = _voicecount + 1;
  3251. if(_voicecount > 3)then
  3252. {
  3253. _log = format['Voice over Side Chat (KILLED) @%1',mapGridPosition player];
  3254. [name player,getPlayerUID player,'SLOG',toArray (_log)] call "+_randvar37+";
  3255. uiSleep 3;
  3256. findDisplay 46 closeDisplay 0;
  3257. };
  3258. };
  3259. };
  3260. uiSleep 0.5;
  3261. };
  3262. };
  3263. };
  3264. "; }; _AHstring = _AHstring + "
  3265. [_name,_puid] spawn {
  3266. _name = _this select 0;_puid = _this select 1;
  3267. _FTG = "+str _FTG+";
  3268. while{1 == 1}do
  3269. {
  3270. _ltxt = lbtext [12001,0];
  3271. if(!isNil 'TraderItemList')then
  3272. {
  3273. if(typeName TraderItemList == 'CODE')then
  3274. {
  3275. [] spawn "+_randvar2+";
  3276. _log = format['Active Menu: Trader Menu - not near a Trader! #1 - %1 @%2',_ltxt,getPosATL player];
  3277. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  3278. };
  3279. };
  3280.  
  3281. _cwep = currentWeapon player;
  3282. if(_cwep != '')then
  3283. {
  3284. _cammo = player ammo _cwep;
  3285. if(abs _cammo > 100000)then
  3286. {
  3287. [] spawn "+_randvar2+";
  3288. _log = format['AmmoCheck: %1',_cammo];
  3289. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  3290. };
  3291. };
  3292. if("+str _URC+")then
  3293. {
  3294. if(str(unitRecoilCoefficient player) != str(1))then
  3295. {
  3296. [] spawn "+_randvar2+";
  3297. [_name,_puid,'BAN',toArray ('NoRecoil')] call "+_randvar37+";
  3298. };
  3299. vehicle player setUnitRecoilCoefficient 1;
  3300. player setUnitRecoilCoefficient 1;
  3301. };
  3302. setTerrainGrid _FTG;
  3303. BIS_fnc_spawnCrew = {};
  3304. BIS_fnc_spawnGroup = {};
  3305. BIS_fnc_help = {};
  3306. bis_fnc_3Dcredits = {};
  3307. BIS_fnc_crows = {};
  3308. bis_fnc_customGPS = {};
  3309. bis_fnc_destroyCity = {};
  3310. BIS_fnc_dirIndicator = {};
  3311. bis_fnc_spawnvehicle = {};
  3312. BIS_fnc_spawnEnemy = {};
  3313. BIS_fnc_AAN = {};
  3314. bis_fnc_taskPatrol = {};
  3315. bis_fnc_taskDefend = {};
  3316. BIS_fnc_taskAttack = {};
  3317. BIS_fnc_supplydrop = {};
  3318. BIS_fnc_spotter = {};
  3319. BIS_fnc_listPlayers = {};
  3320. bis_fnc_customGPSvideo = {};
  3321. uiSleep 0.5;
  3322. _con = vehicle cameraOn;
  3323. _veh = vehicle player;
  3324. if(str _con != str _veh)then
  3325. {
  3326. if(typeName _con == 'OBJECT')then
  3327. {
  3328. if(str(_con) != '<NULL-object>')then
  3329. {
  3330. if(!isNull _con)then
  3331. {
  3332. if((_veh distance "+str _mPos+" > 250) && (_con distance "+str _mPos+" > 250) && (_con distance _veh > 150))then
  3333. {
  3334. if(str(vehicle cameraOn) != str(vehicle player))then
  3335. {
  3336. [] spawn "+_randvar2+";
  3337. _log = format['BadCamera: (%1) should be (%2), distance: %3m',_con,_veh,_con distance _veh];
  3338. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  3339. };
  3340. };
  3341. };
  3342. };
  3343. };
  3344. };
  3345. };
  3346. };
  3347. if("+str _UIC+")then
  3348. {
  3349. [_puid,_name] spawn {
  3350. _puid = _this select 0;_name = _this select 1;
  3351. while{1 == 1}do
  3352. {
  3353. uiSleep 3;
  3354. _posP = getPos player;
  3355. {
  3356. if((!isNull _x)&&{alive _x})then
  3357. {
  3358. if(str _x != str player)then
  3359. {
  3360. _type = typeOf _x;
  3361. _parachuteWest = ((_type == 'ParachuteWest') || (_type == 'ParachuteC'));
  3362. if(!_parachuteWest)then
  3363. {
  3364. _xID = _x getVariable['ObjectID','-3'];
  3365. _xUID = _x getVariable['ObjectUID','-3'];
  3366. if(_xID == '-3' && _xUID == '-3')then
  3367. {
  3368. _checkedTime = _x getVariable['ObjectIDCT',-1];
  3369. if(_checkedTime == -1)then
  3370. {
  3371. _x setVariable['ObjectIDCT',diag_tickTime];
  3372. }
  3373. else
  3374. {
  3375. if(diag_tickTime - _checkedTime > 30)then
  3376. {
  3377. _pos = getPos _x;
  3378. _mgp = mapGridPosition _pos;
  3379. _x setDamage 5;
  3380.  
  3381. _log = format['Vehicle with Invalid ID: %1 @%2 (waited 30 seconds..)',_type,_mgp];
  3382. [_name,_puid,'HLOG',toArray (_log)] call "+_randvar37+";
  3383. };
  3384. };
  3385. };
  3386. };
  3387. };
  3388. };
  3389. } forEach ([vehicle player]+(_posP nearEntities [['LandVehicle','Air','Ship'],25]));
  3390. };
  3391. };
  3392. };
  3393. if("+str _URG+")then
  3394. {
  3395. [_name,_puid] spawn {
  3396. _name = _this select 0;_puid = _this select 1;
  3397. private ['_fuelpumparray','_fueltruckarray','_fuelsources'];
  3398. _antirefuel = true;
  3399. _anticargod = true;
  3400. _cheatref = 0;
  3401. _cheatrep = 0;
  3402. _impparts = ['HitLFWheel','HitLBWheel','HitRFWheel','HitRBWheel','HitEngine'];
  3403. _fuelpumparray =
  3404. [
  3405. 'FuelPump_DZ','Land_A_FuelStation_Feed','Land_Ind_FuelStation_Feed_EP1','Land_FuelStation_Feed_PMC','FuelStation',
  3406. 'Land_ibr_FuelStation_Feed','Land_fuelstation_army','Land_fuelstation','land_fuelstation_w','Land_benzina_schnell'
  3407. ];
  3408. if(!isNil 'dayz_fuelpumparray')then
  3409. {
  3410. if(typeName dayz_fuelpumparray == 'ARRAY')then
  3411. {
  3412. _fuelpumparray = _fuelpumparray + dayz_fuelpumparray;
  3413. };
  3414. };
  3415. _fueltruckarray =
  3416. [
  3417. 'KamazRefuel_DZ','UralRefuel_TK_EP1_DZ','MtvrRefuel_DES_EP1_DZ','V3S_Refuel_TK_GUE_EP1_DZ','MtvrRefuel_DZ',
  3418. 'KamazRefuel_DZE','UralRefuel_TK_EP1_DZE','MtvrRefuel_DES_EP1_DZE','V3S_Refuel_TK_GUE_EP1_DZE','MtvrRefuel_DZE'
  3419. ];
  3420. if(!isNil 'DZE_fueltruckarray')then
  3421. {
  3422. if(typeName DZE_fueltruckarray == 'ARRAY')then
  3423. {
  3424. _fueltruckarray = _fueltruckarray + DZE_fueltruckarray;
  3425. };
  3426. };
  3427. _fuelsources =
  3428. [
  3429. 'Land_Ind_TankSmall','Land_fuel_tank_big','Land_fuel_tank_stairs','Land_fuel_tank_stairs_ep1',
  3430. 'Land_wagon_tanker','Land_fuelstation','Land_fuelstation_army','land_fuelstation_w','Land_benzina_schnell'
  3431. ];
  3432. if(!isNil 'dayz_fuelsources')then
  3433. {
  3434. if(typeName dayz_fuelsources == 'ARRAY')then
  3435. {
  3436. _fuelsources = _fuelsources + dayz_fuelsources;
  3437. };
  3438. };
  3439. vehicle_getHitpoints = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\vehicle_getHitpoints.sqf';
  3440. _getHitpoints = vehicle_getHitpoints;
  3441. object_getHit = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\object_getHit.sqf';
  3442. _getHit = object_getHit;
  3443. while{1 == 1}do
  3444. {
  3445. _vehold = vehicle player;
  3446. if((_vehold != player) && (player == driver _vehold) && ((typeOf _vehold) != 'Tractor'))then
  3447. {
  3448. _oldpos = getPosATL _vehold;
  3449. _oldfuel = fuel _vehold;
  3450. _oldtime = time;
  3451. _damold = false;
  3452. _hitp = _vehold call _getHitpoints;
  3453. {
  3454. _damage = [_vehold,_x] call _getHit;
  3455. if((_x in _impparts) && (_damage == 1))exitWith
  3456. {
  3457. _damold = true;
  3458. };
  3459. } forEach _hitp;
  3460. uiSleep 3;
  3461. _vehnew = vehicle player;
  3462. if((_vehnew == _vehold) && (player == driver _vehnew))then
  3463. {
  3464. _newpos = getPosATL _vehnew;
  3465. _newfuel = fuel _vehnew;
  3466. _newtime = time;
  3467. if((_newfuel > _oldfuel) || (_damold))then
  3468. {
  3469. _distance = [_oldpos select 0,_oldpos select 1,0] distance [_newpos select 0,_newpos select 1,0];
  3470. _difftime = _newtime - _oldtime;
  3471. _speed = (_distance / _difftime)*3.6;
  3472. _typeveh = typeOf _vehnew;
  3473. _topSpeed = getNumber (configFile >> 'CfgVehicles' >> _typeveh >> 'maxSpeed');
  3474. _nearSpeed = 30*(_topSpeed/100);
  3475. if(_speed > _nearSpeed)then
  3476. {
  3477. _adm = false;
  3478. _ppls = crew _vehnew;
  3479. _nameppls = [];
  3480. {
  3481. _uid = getPlayerUID _x;
  3482. if(_uid != '')then
  3483. {
  3484. if(_x != player)then{
  3485. _namexx = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_namexx = name _x;};
  3486. _nameppls = _nameppls + [[_namexx,_uid]];
  3487. };
  3488. };
  3489. } forEach _ppls;
  3490. if(!_adm)then
  3491. {
  3492. if((_damold) && (_anticargod))then
  3493. {
  3494. _dampart = [];
  3495. _damnew = false;
  3496. {
  3497. _damage = [_vehnew,_x] call _getHit;
  3498. if((_x in _impparts) && (_damage == 1))then
  3499. {
  3500. _dampart = _dampart + [[_x,_damage]];
  3501. _damnew = true;
  3502. };
  3503. } forEach _hitp;
  3504. if(_damnew)then{_cheatrep = _cheatrep + 1;};
  3505. if(_cheatrep > 2)then
  3506. {
  3507. _cheatrep = 0;
  3508. [_vehnew] spawn {
  3509. _vehnew = _this select 0;
  3510.  
  3511. vehicle_getHitpoints = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\vehicle_getHitpoints.sqf';
  3512. _getHitpoints = vehicle_getHitpoints;
  3513. _hitp = _vehnew call _getHitpoints;
  3514. _selections = [];
  3515. {
  3516. _selections = _selections + [getText (configFile >> 'CfgVehicles' >> (typeOf _vehnew) >> 'HitPoints' >> _x >> 'name')];
  3517. } forEach _hitp;
  3518. while{1 == 1}do
  3519. {
  3520. {
  3521. _strH = 'hit_' + (_x);
  3522. _dam = _vehnew getvariable[_strH,0];
  3523. if(_dam != 0)then{_vehnew setHit [_x,_dam];};
  3524. } forEach _selections;
  3525. if((_vehnew == player) || (player != driver _vehnew))exitWith {};
  3526. uiSleep 0.005;
  3527. };
  3528. };
  3529. _log = format['%1 DRIVING %2 WITH CHEAT REPAIRING | speed: %4km/h | damage: %3 | position: %5 (%6) | players in vehicle: %7',_name,_typeveh,_dampart,round _speed,_newpos,mapGridPosition _newpos,_nameppls];
  3530. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  3531. [] spawn "+_randvar2+";
  3532. };
  3533. };
  3534. if((_newfuel > _oldfuel) && (_antirefuel))then
  3535. {
  3536. _fsources = _fuelpumparray + _fuelsources;
  3537. _listfuel = (nearestObjects [_posnew, _fsources, 100]) + (nearestObjects [_posold, _fsources, 100]);
  3538. _listveh = ((_posnew nearEntities [['Landvehicle'], 100]) + (_posold nearEntities [['Landvehicle'], 100]));
  3539. _fveh = false;
  3540. {
  3541. if((typeOf _x) in _fueltruckarray)exitWith {_fveh = true;};
  3542. } forEach _listveh;
  3543.  
  3544. if(!_fveh && ((count _listfuel) == 0))then{_cheatref = _cheatref + 1;};
  3545. if(_cheatref > 2)then
  3546. {
  3547. _cheatref = 0;
  3548. _vehnew setVelocity [0,0,0];
  3549. {_x action ['eject',_vehnew];} forEach (crew _vehnew);
  3550. deleteVehicle _vehnew;
  3551. _log = format['AUTO REFUEL %10 IN MOVEMENT (x3) | speed: %2km/h | old position: %3 (%4) - new position: %5 (%6) | old fuel: %7 - new fuel: %8 | players in vehicle: %9',_name,round _speed,_oldpos,mapGridPosition _oldpos,_newpos,mapGridPosition _newpos,_oldfuel,_newfuel,_nameppls,_typeveh];
  3552. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  3553. [] spawn "+_randvar2+";
  3554. };
  3555. };
  3556. };
  3557. };
  3558. };
  3559. };
  3560. }
  3561. else
  3562. {
  3563. uiSleep 3;
  3564. };
  3565. };
  3566. };
  3567. }
  3568. else
  3569. {
  3570. [] spawn {
  3571. vehicle_getHitpoints = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\vehicle_getHitpoints.sqf';
  3572. _getHitpoints = vehicle_getHitpoints;
  3573. while{1 == 1}do
  3574. {
  3575. _veh = vehicle player;
  3576. if((_veh != player) && (player == driver _veh))then
  3577. {
  3578. _hitp = _veh call _getHitpoints;
  3579. _selections = [];
  3580. {
  3581. _selections = _selections + [getText (configFile >> 'CfgVehicles' >> (typeOf _veh) >> 'HitPoints' >> _x >> 'name')];
  3582. } forEach _hitp;
  3583. while{1 == 1}do
  3584. {
  3585. {
  3586. _strH = 'hit_' + (_x);
  3587. _dam = _veh getvariable[_strH,0];
  3588. if(_dam != 0)then{_veh setHit [_x,_dam];};
  3589. } forEach _selections;
  3590. if((_veh == player) || (player != driver _veh))exitWith {};
  3591. uiSleep 0.005;
  3592. };
  3593. };
  3594. uiSleep 2;
  3595. };
  3596. };
  3597. };
  3598. _version = productVersion select 3;
  3599. if(_version < 125548)then
  3600. {
  3601. _log1 = format['BadVersion: %1 - install newer arma2oa beta!',_version];
  3602. hint _log1;
  3603. cutText [_log1,'PLAIN DOWN'];
  3604.  
  3605. _log2 = format['BadVersion: %1 (has to be a newer arma2oa beta - disconnected)',_version];
  3606. [name player,getPlayerUID player,'SLOG',toArray (_log2)] call "+_randvar37+";
  3607.  
  3608. (findDisplay 46) closeDisplay 0;
  3609. };
  3610. };
  3611. [_name,_puid] spawn {
  3612. disableSerialization;
  3613. _name = _this select 0;_puid = _this select 1;
  3614. _idcount = 0;
  3615. _startTime = time;
  3616. _fnc_inString = {
  3617. private ['_needle','_haystack','_needleLen','_hay','_found'];
  3618. _needle = _this select 0;
  3619. if(isNil'_needle')exitWith{};
  3620. if(typeName _needle != 'STRING')exitWith{};
  3621. if(_needle == '')exitWith{};
  3622. _needle = toLower _needle;
  3623.  
  3624. _haystack = _this select 1;
  3625. if(isNil'_haystack')exitWith{};
  3626. if(typeName _haystack != 'STRING')exitWith{};
  3627. if(_haystack == '')exitWith{};
  3628. _haystack = toLower _haystack;
  3629. _haystack = toArray _haystack;
  3630.  
  3631.  
  3632. _needleLen = count toArray _needle;
  3633. _hay = +_haystack;
  3634. _hay resize _needleLen;
  3635. _found = false;
  3636. for '_i' from _needleLen to count _haystack do {
  3637. if(toString _hay == _needle)exitWith {_found = true};
  3638. _hay set [_needleLen, _haystack select _i];
  3639. _hay set [0, 'x'];
  3640. _hay = _hay - ['x']
  3641. };
  3642. _found
  3643. };
  3644. _veryBadTexts =
  3645. [
  3646. '/item','/gunbox','/run','/backpack','/morph','/start','/exec','/menu','/skin','/ban','adminstart','admin_start','.ban','.sqf','bbhelp','bbammo','bbbox','bbdel','bbesp','bbgod','bbtp','bbunlock',
  3647. '/pesp','/pmarkers','/ptp','/pdel','/pammo','/pnuke','/pgunbox','/pepochbox','/pteleportall','/pgod','t3l3all','n00k3','t3p3','4mm0','3sp','j3sus','v3hj3sus','m4rk3rs','z3dz','inf4mm0','b0mb4ll','bombtrgt',
  3648. '/troll','/troll funces','/trollf','/trollfu','/trollfun','/trollfunk','/trollfunks','/troll funks','/trollf','/trollfuc','/trollfuck','/trollfucku','/trollfuckup','/spawn100','irap3','irap3bt','irap3ex','irap3mrk',
  3649. 'irap35p','irap37a','irap3d3l','/bot','/tp','/2ndtp','/playermarker','/safemarkers','/fini','/finikillall','/banall','/givecoins','/itemspawn','/itemmassspawn','/vehspawn','/finitpall','/finiinfistar',
  3650. '/finiactivatere','/kickall','/finialldance','/god','/fixvehicle','/time','/keybind','/esp'
  3651. ];
  3652. while{1 == 1}do
  3653. {
  3654. if(animationState player == 'awoppercmstpsoptwbindnon_awoppknlmstpsoptwbindnon_lnr')then
  3655. {
  3656. player setDamage 1;
  3657. uiSleep 1;
  3658. _log = format['Launcher glitch trying to crash server @%1',mapGridPosition player];
  3659. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  3660. };
  3661. if(!isNil 'PVCDZ_plr_Login')then
  3662. {
  3663. if(typeName PVCDZ_plr_Login != 'ARRAY')then
  3664. {
  3665. [] spawn "+_randvar2+";
  3666. _log = format['PlayerLogin: %1 != ARRAY %2',typeName PVCDZ_plr_Login,time];
  3667. [_name,_puid,'HLOG_SKICK',toArray (_log)] call "+_randvar37+";
  3668. };
  3669. };
  3670. if(isNil 'dayz_characterID')then
  3671. {
  3672. [] spawn "+_randvar2+";
  3673. [_name,_puid,'HLOG_SKICK',toArray ('CharacterID is NIL')] call "+_randvar37+";
  3674. }
  3675. else
  3676. {
  3677. if(typeName dayz_characterID != 'STRING')then
  3678. {
  3679. [] spawn "+_randvar2+";
  3680. _log = format['typeName CharacterID is %1 != STRING %2',typeName dayz_characterID,time];
  3681. [_name,_puid,'HLOG_SKICK',toArray (_log)] call "+_randvar37+";
  3682. };
  3683. };
  3684. uiSleep 0.2;
  3685. if !("+str _UIM+")then
  3686. {
  3687. _display = findDisplay 24;
  3688. if(isNull _display)then
  3689. {
  3690. uiSleep 0.3;
  3691. }
  3692. else
  3693. {
  3694. _chat = _display displayCtrl 101;
  3695. _txt = ctrlText _chat;
  3696. if(_txt != '')then
  3697. {
  3698. _txtArray = toArray _txt;
  3699. if((_txtArray select 0) in [44,36,37,38,92,124,194,176,45,95,60,62])then{_chat ctrlSetText '';};
  3700. _txt = toLower _txt;
  3701. if("+str _UCF+")then
  3702. {
  3703. if(_txt in ['/scream','scream'])then
  3704. {
  3705. (_display) closeDisplay 0;
  3706. _sound = ['z_scream_3','z_scream_4'] call BIS_fnc_selectRandom;
  3707. [nil,player,rSAY,[_sound,250]] call RE;
  3708. [player,500,true,(getPosATL player)] spawn player_alertZombies;
  3709. };
  3710. if(isNil 'canbuild')then{ canbuild = true; } else { if(typeName canbuild != 'BOOL')then{ canbuild = true;YOLO = true; }; };
  3711. if(vehicle player == player)then
  3712. {
  3713. if((count (nearestObjects [player, ['Plastic_Pole_EP1_DZ'],65]) == 0) && (canbuild))then
  3714. {
  3715. if(_txt in ['stop','/stop'])then
  3716. {
  3717. (_display) closeDisplay 0;
  3718. [objNull, player, rswitchMove,''] call RE;
  3719. player playActionNow 'stop';
  3720. };
  3721. if(_txt in ['pushup','/pushup'])then
  3722. {
  3723. (_display) closeDisplay 0;
  3724. [objNull, player, rplayMove,'AmovPercMstpSnonWnonDnon_exercisePushup'] call RE;
  3725. };
  3726. if(_txt in ['handstand','/handstand'])then
  3727. {
  3728. (_display) closeDisplay 0;
  3729. [objNull, player, rplayMove,'AmovPercMstpSnonWnonDnon_idle70chozeniPoRukou'] call RE;
  3730. };
  3731. if(_txt in ['boxing','/boxing'])then
  3732. {
  3733. (_display) closeDisplay 0;
  3734. [objNull, player, rplayMove,'AmovPercMstpSnonWnonDnon_idle68boxing'] call RE;
  3735. };
  3736. if(_txt in ['karate','/karate','fighter','/fighter'])then
  3737. {
  3738. (_display) closeDisplay 0;
  3739. [objNull, player, rplayMove,'AmovPercMstpSnonWnonDnon_exerciseKata'] call RE;
  3740. };
  3741. if(_txt in ['boogie','/boogie'])then
  3742. {
  3743. (_display) closeDisplay 0;
  3744. [objNull, player, rplayMove,'ActsPercMstpSnonWnonDnon_DancingDuoIvan'] call RE;
  3745. };
  3746. if(_txt in ['dance','/dance'])then
  3747. {
  3748. (_display) closeDisplay 0;
  3749. [objNull, player, rplayMove,'ActsPercMstpSnonWnonDnon_DancingStefan'] call RE;
  3750. };
  3751. if(_txt in ['clubbing','/clubbing'])then
  3752. {
  3753. (_display) closeDisplay 0;
  3754. [objNull, player, rplayMove,'ActsPercMstpSnonWnonDnon_DancingDuoStefan'] call RE;
  3755. };
  3756. if(_txt in ['excercise','/excercise'])then
  3757. {
  3758. (_display) closeDisplay 0;
  3759. [objNull, player, rplayMove,'AmovPercMstpSnonWnonDnon_idle69drepy'] call RE;
  3760. };
  3761. };
  3762. };
  3763. if(_txt in ['/killme','killme','/suicide','suicide'])then
  3764. {
  3765. _waitTime = 180;
  3766. if(time > _startTime + _waitTime)then
  3767. {
  3768. _chat ctrlSetText 'GOOD BYE CRUEL WORLD';
  3769. player setDamage 1;
  3770. _startTime = time;
  3771. }
  3772. else
  3773. {
  3774. _chat ctrlSetText format['You have to wait %1s',ceil((_startTime + _waitTime) - time)];
  3775. };
  3776. };
  3777. if(_txt in ['/cry','cry','!cry'])then
  3778. {
  3779. (_display) closeDisplay 0;
  3780. [nil,player,rSAY,['babycry_1', 100]] call RE;
  3781. };
  3782. };
  3783. if("+str _UDN+")then
  3784. {
  3785. if(_txt in ['!vote day','/vote day','vote day','!day','/day'])then
  3786. {
  3787. (_display) closeDisplay 0;
  3788. [player,'DAY'] call "+_randvar37+";
  3789. };
  3790. if(_txt in ['!vote night','/vote night','vote night','!night','/night'])then
  3791. {
  3792. (_display) closeDisplay 0;
  3793. [player,'NIGHT'] call "+_randvar37+";
  3794. };
  3795. };
  3796. if(_txt in ['!help','/help','help'])then
  3797. {
  3798. (_display) closeDisplay 0;
  3799. systemChat 'infiSTAR.de ChatCommands:';
  3800. systemChat '/stop, stop, /pushup, pushup, /handstand, handstand, /boxing, boxing,';
  3801. systemChat '/karate, karate, /fighter, fighter, /boogie, boogie,';
  3802. systemChat '/dance, dance, /clubbing, clubbing, /excercise, excercise,';
  3803. if("+str _UDN+")then{systemChat '!vote day,/vote day, vote day,!vote night,/vote night, vote night';};
  3804. systemChat '/killme, killme, /suicide, suicide';
  3805. systemChat '/cry, cry, !cry';
  3806. };
  3807. if(_txt in _veryBadTexts)then
  3808. {
  3809. (_display) closeDisplay 0;
  3810. _log = format['BadText: %1',_txt];
  3811. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  3812. (findDisplay 46)closeDisplay 0;
  3813. }
  3814. else
  3815. {
  3816. {
  3817. _found = [_x,_txt] call _fnc_inString;
  3818. if(_found)exitWith
  3819. {
  3820. (_display) closeDisplay 0;
  3821. _log = format['BadText: %1',_txt];
  3822. [_name,_puid,'HLOG_SKICK',toArray (_log)] call "+_randvar37+";
  3823. (findDisplay 46)closeDisplay 0;
  3824. };
  3825. } forEach _veryBadTexts;
  3826. };
  3827. if(_txt in ['/m'])then
  3828. {
  3829. [] spawn {
  3830. for '_i' from 0 to 10 do
  3831. {
  3832. closeDialog 0;closeDialog 0;closeDialog 0;
  3833. uiSleep 0.2;
  3834. };
  3835. };
  3836. (_display) closeDisplay 0;
  3837. _log = format['BadText: %1',_txt];
  3838. [_name,_puid,'HLOG',toArray (_log)] call "+_randvar37+";
  3839. };
  3840. if!(_puid in "+str _allAdmins+")then
  3841. {
  3842. if(_txt in [format['.ban %1',toLower _name],format['.ban %1 true',toLower _name],format['.ban %1 true;',toLower _name]])then
  3843. {
  3844. _log = format['BadText: %1',_txt];
  3845. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  3846. };
  3847. if(_txt in ['adminstart','admin_start'])then
  3848. {
  3849. _log = format['BadText: %1',_txt];
  3850. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  3851. };
  3852. };
  3853. };
  3854. };
  3855. if(!isNil 'r_player_unconscious')then
  3856. {
  3857. if(typeName r_player_unconscious != 'BOOL')then{r_player_unconscious = false;};
  3858. if(isNil 'deathHandled')then{ deathHandled = true; } else { if(typeName deathHandled != 'BOOL')then{ deathHandled = true;YOLO = true; }; };
  3859.  
  3860. _obj = player;
  3861. if(isNil 'inSafeZone')then{ inSafeZone = false; } else { if(typeName inSafeZone != 'BOOL')then{ inSafeZone = false;YOLO = true; }; };
  3862. if(inSafeZone)then
  3863. {
  3864. if(r_player_unconscious)then
  3865. {
  3866. player setVariable ['NORRN_unconscious',false,true];
  3867. player setVariable ['unconsciousTime',0,true];
  3868. player setVariable ['USEC_isCardiac',false,true];
  3869. r_player_unconscious = false;
  3870. r_player_cardiac = false;
  3871. r_player_handler1 = false;
  3872. disableUserInput false;
  3873. if(vehicle player == player)then{
  3874. [nil, player, rSWITCHMOVE, 'AinjPpneMstpSnonWnonDnon'] call RE;
  3875. player SWITCHMOVE 'AinjPpneMstpSnonWnonDnon';
  3876. PVDZ_plr_SwitchMove = [player,'AinjPpneMstpSnonWnonDnon'];
  3877. publicVariableServer 'PVDZ_plr_SwitchMove';
  3878.  
  3879. player playMoveNow 'AmovPpneMstpSnonWnonDnon_healed';
  3880. };
  3881. };
  3882. };
  3883. if((r_player_unconscious) && (!deathHandled))then
  3884. {
  3885. if(_obj getVariable['infiUnconDone','0'] == '0')then
  3886. {
  3887. _obj setVariable['infiUnconDone','1'];
  3888. [] spawn {
  3889. endLoadingScreen;
  3890. _mytime = 0;
  3891. if(!isNull player)then{_mytime = player getVariable['unconsciousTime',0];};
  3892. if(_mytime == 0)then{_mytime = 30;};
  3893. _steps = 1 / _mytime;
  3894. for '_i' from 0 to _mytime do
  3895. {
  3896. _txt = format['infiSTAR.de unconscious: %1s',_mytime - _i];
  3897. startLoadingScreen [_txt,'DayZ_loadingScreen'];
  3898. progressLoadingScreen (_steps*_i);
  3899. uiSleep 1;
  3900. if(isNil 'r_player_unconscious')then{ r_player_unconscious = true; } else { if(typeName r_player_unconscious != 'BOOL')then{ r_player_unconscious = true;YOLO = true; }; };
  3901. if(!r_player_unconscious)exitWith {endLoadingScreen;};
  3902. if(isNil 'deathHandled')then{ deathHandled = true; } else { if(typeName deathHandled != 'BOOL')then{ deathHandled = true;YOLO = true; }; };
  3903. if(deathHandled)exitWith {endLoadingScreen;};
  3904. };
  3905. endLoadingScreen;
  3906. };
  3907. };
  3908. (findDisplay 24) closeDisplay 0;
  3909. }
  3910. else
  3911. {
  3912. if(_obj getVariable['infiUnconDone','-1'] == '1')then
  3913. {
  3914. _obj setVariable['infiUnconDone','0'];comment '#13252';
  3915. };
  3916. };
  3917. };
  3918. };
  3919. };
  3920. };
  3921. if !("+str _UIM+")then
  3922. {
  3923. [_name,_puid] spawn {
  3924. _name = _this select 0;_puid = _this select 1;
  3925. _colorTXT = "+str _EscColor+";
  3926. _btnTitle0TXT = "+str _TopOfESC+";
  3927. _btnTitle1TXT = "+str _LowerTop+";
  3928. _btnTitle2TXT = "+str _LowerBottom+";
  3929. disableSerialization;
  3930. _startTime = time;
  3931. while{1 == 1}do
  3932. {
  3933. waitUntil {uiSleep 0.1;!isNull findDisplay 49};
  3934. _display = findDisplay 49;
  3935. if(!isNull _display)then
  3936. {
  3937. _btnSave = _display displayCtrl 103;
  3938. _btnSave ctrlShow true;
  3939. _btnSave ctrlEnable false;
  3940. _btnSave ctrlSetScale 0.8;
  3941. _btnSave ctrlSetText 'PlayerUID (SteamID):';
  3942. _btnSave ctrlCommit 0;
  3943.  
  3944. _btnRestart = _display displayCtrl 119;
  3945. _btnRestart ctrlShow true;
  3946. _btnRestart ctrlEnable false;
  3947. _btnRestart ctrlSetScale 0.9;
  3948. _btnRestart ctrlSetText (format['%1',getPlayerUID player]);
  3949. _btnRestart ctrlCommit 0;
  3950.  
  3951. _btnRespawn = _display displayCtrl 1010;
  3952. _btnRespawn ctrlShow true;
  3953. _btnRespawn ctrlSetScale 0.9;
  3954. if((canStand player) || (deathHandled))then
  3955. {
  3956. _btnRespawn ctrlEnable false;
  3957. _btnRespawn ctrlSetText 'by infiSTAR.de';
  3958. }
  3959. else
  3960. {
  3961. _waitTime = 180;
  3962. _btnRespawn ctrlEnable false;
  3963. _btnRespawn ctrlSetText format['wait %1s',round((_startTime + _waitTime) - time)];
  3964. if(time > _startTime + _waitTime)then
  3965. {
  3966. _btnRespawn ctrlEnable true;
  3967. _btnRespawn ctrlSetText 'Respawn';
  3968. _startTime = time;
  3969. };
  3970. };
  3971. _btnRespawn buttonSetAction '
  3972. [player,''btnRespawn''] call player_death;
  3973. ';
  3974. _btnRespawn ctrlCommit 0;
  3975.  
  3976. _btnTitle0 = _display displayCtrl 523;
  3977. _btnTitle0 ctrlSetText _btnTitle0TXT;
  3978. _btnTitle0 ctrlSetTextColor _colorTXT;
  3979. _btnTitle0 ctrlSetScale 0.9;
  3980. _btnTitle0 ctrlCommit 0;
  3981.  
  3982. _btnTitle1 = _display displayCtrl 121;
  3983. _btnTitle1 ctrlSetText _btnTitle1TXT;
  3984. _btnTitle1 ctrlSetTextColor _colorTXT;
  3985. _btnTitle1 ctrlSetScale 0.9;
  3986. _btnTitle1 ctrlCommit 0;
  3987.  
  3988. _btnTitle2 = _display displayCtrl 120;
  3989. _btnTitle2 ctrlSetText _btnTitle2TXT;
  3990. _btnTitle2 ctrlSetTextColor _colorTXT;
  3991. _btnTitle2 ctrlSetScale 0.9;
  3992. _btnTitle2 ctrlCommit 0;
  3993. };
  3994. };
  3995. };
  3996. };
  3997. [] spawn {
  3998. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  3999. _puid = getPlayerUID player;
  4000. while{1 == 1}do
  4001. {
  4002. local_lockUnlock = fn_infiSTAR_local_lockUnlock;
  4003.  
  4004. "; if(_LEM)then{ _AHstring = _AHstring + "
  4005. 'PVDZE_maintainArea' addPublicVariableEventHandler
  4006. {
  4007. private['_input','_player','_targetObj'];
  4008. _input = (_this select 1);
  4009. _player = _input select 0;
  4010. _targetObj = _input select 2;
  4011.  
  4012. _log = format['%1(%2) maintained %3 @%4',name _player,getPlayerUID _player,typeOf _targetObj,mapGridPosition _targetObj];
  4013. ['MAINTAIN',_log] call fn_custom_log;
  4014.  
  4015. _input spawn server_maintainArea
  4016. };
  4017. "; }; _AHstring = _AHstring + "
  4018. if(isNil 's_player_deleteBuild')then{s_player_deleteBuild = -1;};
  4019. if(s_player_deleteBuild == 1)then
  4020. {
  4021. _obj = cursorTarget;
  4022. if(!isNull _obj)then
  4023. {
  4024. if(typeOf _obj == 'Plastic_Pole_EP1_DZ')then
  4025. {
  4026. if(isNil 'deleteBuildAnnounced')then{deleteBuildAnnounced = [];};
  4027. if !(_obj in deleteBuildAnnounced)then
  4028. {
  4029. deleteBuildAnnounced = deleteBuildAnnounced + [_obj];
  4030. _pos = getPosATL _obj;
  4031. _log = format['Plot Pole removed @%1',mapGridPosition _pos];
  4032. [_name,_puid,'SLOG_PP',toArray (_log)] call "+_randvar37+";
  4033. };
  4034. };
  4035. };
  4036. };
  4037. uiSleep 2;
  4038. if(!isNil 'infiSTAR_UPTIMER')then
  4039. {
  4040. private['_stime','_hours','_minutes','_minutes2','_upTimeLeft'];
  4041. _stime = 0;
  4042. if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;};
  4043. _upTimeLeft = infiSTAR_UPTIMER - _stime;
  4044. _hours = (_upTimeLeft/60/60);
  4045. _hours = toArray (str _hours);
  4046. _hours resize 1;
  4047. _hours = toString _hours;
  4048. _hours = compile _hours;
  4049. _hours = call _hours;
  4050. _minutes = floor(_upTimeLeft/60);
  4051. _minutes2 = ((_minutes - (_hours*60)) min 60) max 0;if(_minutes2 < 10)then{_minutes2 = format['0%1',_minutes2];};
  4052. _mytime = format['Restart in: %1h %2min',_hours,_minutes2];
  4053. ['<t size=''0.35'' align=''right'' font=''TahomaB''>'+_mytime+'</t>',safezoneX*-1,0.98 * safezoneH + safezoneY,15,0,0,1338] spawn bis_fnc_dynamicText;
  4054. };
  4055. if(!isNil 'infiSTAR_Advert')then
  4056. {
  4057. ['<t size=''0.35'' align=''left'' font=''TahomaB''>'+infiSTAR_Advert+'</t>',safezoneX,0.98 * safezoneH + safezoneY,15,0,0,1339] spawn bis_fnc_dynamicText;
  4058. };
  4059. };
  4060. [] spawn {uiSleep 5;AntiHack_RELoopBroken = 'AntiHack_RELoopBroken';publicVariable 'AntiHack_RELoopBroken';};
  4061. YOLO = true;
  4062. };
  4063. if("+str _UBC+")then{
  4064. [_puid,_name] spawn {
  4065. _puid = _this select 0;_name = _this select 1;
  4066. _worldName = toArray worldName;
  4067. uiSleep 45;
  4068. _worldName resize 9;
  4069. _worldName = toString _worldName;
  4070. _worldName;
  4071. if(_worldName == 'Chernarus')then
  4072. {
  4073. _array =
  4074. [
  4075. 'grass','prunus','picea','fallentree','phragmites','acer','amygdalusn',
  4076. 'Brush','fiberplant','amygdalusc','boulder','Land_Farm_Cowshed_a','Land_Farm_Cowshed_b',
  4077. 'Land_Farm_Cowshed_c','Land_HouseV_1L2','Land_HouseV2_02_Interier','Land_Church_02',
  4078. 'Land_HouseV2_03B','Land_HouseV2_01B','Land_HouseV2_04_interier','c_grasstall'
  4079. ];
  4080. _bad = [];
  4081. {
  4082. _obj = _x createVehicleLocal [2500,2500,0];
  4083. uiSleep 0.3;
  4084. _size = sizeOf _x;
  4085. if(_size == 0)then
  4086. {
  4087. _bad = _bad + [_x];
  4088. };
  4089. uiSleep 0.1;
  4090. deleteVehicle _obj;
  4091. } forEach _array;
  4092. if(count _bad > 1)then
  4093. {
  4094. [] spawn "+_randvar2+";
  4095. _log = format['BadSize: %1 - Plants and/or Clutter pbo(s) removed..!',_bad];
  4096. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  4097. };
  4098. };
  4099. };
  4100. };
  4101. [_puid,_name] spawn {
  4102. _puid = _this select 0;_name = _this select 1;
  4103. _CEA1 = "+str _CEA1+";
  4104. while{1 == 1}do
  4105. {
  4106. _CE0 = (getText(configFile >> 'RscDisplayDSinterface' >> 'onLoad'));
  4107. _CE1 = (getText(configFile >> 'RscDisplayOptionsVideo' >> 'onLoad'));
  4108. _CE2 = (getText(configFile >> 'RscDisplayOptionsVideo' >> 'onUnload'));
  4109. _CE3 = (getText(configFile >> 'RscDisplayOptionsVideo' >> 'controls' >> 'G_VideoOptionsControls' >> 'controls' >> 'HideAdvanced' >> 'OnButtonClick'));
  4110. _CE4 = (getText(configFile >> 'RscDisplayOptions' >> 'controls' >> 'BCredits' >> 'OnButtonClick'));
  4111. _CE5 = (getText(configFile >> 'RscDisplayOptions' >> 'controls' >> 'BCredits' >> 'action'));
  4112. _CE6 = (getText(configFile >> 'RscDisplayOptions' >> 'controls' >> 'ButtonCancel' >> 'OnButtonClick'));
  4113. _CE7 = (getText(configFile >> 'RscDisplayOptions' >> 'controls' >> 'ButtonCancel' >> 'action'));
  4114. _CEA2 = [_CE0,_CE1,_CE2,_CE3,_CE4,_CE5,_CE6,_CE7];
  4115. for '_i' from 0 to (count _CEA1)-1 do
  4116. {
  4117. _a = _CEA1 select _i;
  4118. _a = _a - [32];
  4119. _a = _a - [9];
  4120. if(count _a > 120)then{_a resize 120;};
  4121. _b = toArray (_CEA2 select _i);
  4122. _b = _b - [32];
  4123. _b = _b - [9];
  4124. if(count _b > 120)then{_b resize 120;};
  4125. if(str _a != str _b)then
  4126. {
  4127. _log = format['CheatEngine %1: %2 != %3',_i,toString _a,toString _b];
  4128. if("+str _UCC+")then
  4129. {
  4130. [] spawn "+_randvar2+";
  4131. [_name,_puid,'HLOG_SKICK',toArray (_log)] call "+_randvar37+";
  4132. };
  4133. };
  4134. };
  4135. uiSleep 60;
  4136. };
  4137. };
  4138. BIS_fnc_numberDigits = {
  4139. private ['_number','_step','_stepLocal','_result','_numberLocal','_add'];
  4140. _number = [_this,0,0,[0]] call bis_fnc_param;
  4141. if(_number < 10)then
  4142. {
  4143. [_number]
  4144. }
  4145. else
  4146. {
  4147. _step = 10;
  4148. _stepLocal = _step;
  4149. _result = [0];
  4150. _add = false;
  4151. while{_stepLocal < (_number * _step)}do
  4152. {
  4153. _numberLocal = _number % (_stepLocal);
  4154. {
  4155. _numberLocal = _numberLocal - _x;
  4156. } foreach _result;
  4157. _numberLocal = floor (_numberLocal / _stepLocal * _step);
  4158. if(_numberLocal < 0)then{_numberLocal = 9};
  4159. _result = [_numberLocal] + _result;
  4160. _stepLocal = _stepLocal * (_step);
  4161. };
  4162. if((_result select 0) == 0)then{_result = [1] + _result;};
  4163. _result resize (count _result - 1);
  4164. _result
  4165. };
  4166. };
  4167. BIS_fnc_numberText = {
  4168. private ['_number','_mod','_digots','_digitsCount','_modBase','_numberText'];
  4169. _number = [_this,0,0,[0, '']] call bis_fnc_param;
  4170. _mod = [_this,1,3,[0]] call bis_fnc_param;
  4171. if(typeName _number == 'STRING')then
  4172. {
  4173. _number = parseNumber _number;
  4174. };
  4175. _digits = _number call BIS_fnc_numberDigits;
  4176. _digitsCount = count _digits - 1;
  4177. _modBase = _digitsCount % _mod;
  4178. _numberText = '';
  4179. {
  4180. _numberText = _numberText + str _x;
  4181. if((_forEachIndex - _modBase) % (_mod) == 0 && _forEachIndex != _digitsCount)then{_numberText = _numberText + ',';};
  4182. } foreach _digits;
  4183. _numberText
  4184. };
  4185. fnc_format_humanity = {
  4186. private ['_number', '_minus', '_out'];
  4187. _number = _this select 0;
  4188. _minus = false;
  4189. if(_number < 0)then
  4190. {
  4191. _hummanity = abs _number;
  4192. _minus = true;
  4193. };
  4194. _out = [_number] call BIS_fnc_numberText;
  4195. if(_minus)then
  4196. {
  4197. _out = '-' + _out;
  4198. };
  4199. _out
  4200. };
  4201. if("+str _DMS+")then{
  4202. [] spawn {
  4203. hint 'Loading..';
  4204. uiSleep 4;
  4205. if("+str _DMW+")then{
  4206. [] spawn {
  4207. while{1 == 1}do
  4208. {
  4209. if(isNil 's_player_debug')then{s_player_debug = -1;};
  4210. if(isNil 'unit_veh')then{unit_veh = vehicle player;};
  4211. if(s_player_debug == -1)then
  4212. {
  4213. s_player_debug = unit_veh addAction [('<t color=''#0066CC''>' + ('Debug') +'</t>'),'ca\modules\MP\data\scriptCommands\moveIn.sqf','Driver ObjNull;([] spawn fnc_debugX0);',5,false,false,'',''];
  4214. };
  4215. if(unit_veh != vehicle player)then
  4216. {
  4217. unit_veh removeAction s_player_debug;
  4218. unit_veh = nil;
  4219. s_player_debug = -1;
  4220. };
  4221. uiSleep 1.5;
  4222. };
  4223. };
  4224. };
  4225. fnc_debugX0 = {
  4226. if !("+str _DMS+")exitWith {};
  4227. if(isNil 'debugMonitorX')then
  4228. {
  4229. debugMonitorX = true;
  4230. [] spawn fnc_debugX;
  4231. }
  4232. else
  4233. {
  4234. debugMonitorX = !debugMonitorX;
  4235. hintSilent '';
  4236. [] spawn fnc_debugX;
  4237. };
  4238. };
  4239. fnc_debugX = {
  4240. if !("+str _UIM+")then
  4241. {
  4242. admin_debug_run = false;
  4243. _BottomDebug = "+str _BottomDebug+";
  4244. while{debugMonitorX}do
  4245. {
  4246. _pic = (getText (configFile >> 'CfgVehicles' >> (typeOf vehicle player) >> 'picture'));
  4247. if(player == vehicle player)then{_pic = (getText (configFile >> 'CfgWeapons' >> (currentWeapon player) >> 'picture'));
  4248. }else{_pic = (getText (configFile >> 'CfgVehicles' >> (typeOf vehicle player) >> 'picture'));};
  4249.  
  4250. _txt = '';
  4251. _txt = (getText (configFile >> 'CfgVehicles' >> (typeOf vehicle player) >> 'displayName'));
  4252. private['_stime','_hours','_minutes','_minutes2'];
  4253. _stime = 0;
  4254. if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;};
  4255. _hours = (_stime/60/60);
  4256. _hours = toArray (str _hours);
  4257. _hours resize 1;
  4258. _hours = toString _hours;
  4259. _hours = compile _hours;
  4260. _hours = call _hours;
  4261. _minutes = floor(_stime/60);
  4262. _minutes2 = ((_minutes - (_hours*60)) min 60) max 0;if(_minutes2 < 10)then{_minutes2 = format['0%1',_minutes2];};
  4263.  
  4264. _pOn = [];
  4265. {
  4266. if(!isNull _x)then
  4267. {
  4268. if(getPlayerUID _x != '')then
  4269. {
  4270. _y = _x;
  4271. if(isPlayer _y)then
  4272. {
  4273. {
  4274. if(!((getPlayerUID _x) in _pOn) && (isPlayer _x))then
  4275. {
  4276. _pOn = _pOn + [getPlayerUID _x];
  4277. };
  4278. } forEach (crew _y);
  4279. };
  4280. };
  4281. };
  4282. } forEach ([0,0,0] nearEntities ['AllVehicles', 35000]);
  4283. _pOn = count _pOn;
  4284.  
  4285. _humanity = player getVariable['humanity',0];
  4286. if(_humanity > 999999)then
  4287. {
  4288. _humanity = [_humanity] call fnc_format_humanity;
  4289. _humanity = toArray _humanity;
  4290. _humanity = _humanity - [44];
  4291. _humanity = toString _humanity;
  4292. };
  4293.  
  4294. private['_stime','_hours','_minutes','_minutes2','_upTimeLeft'];
  4295. _timertext = 'UPTIME: ';
  4296. if(!isNil 'infiSTAR_UPTIMER')then
  4297. {
  4298. _timertext = 'Restart in: ';
  4299. _stime = 0;
  4300. if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;};
  4301. _upTimeLeft = infiSTAR_UPTIMER - _stime;
  4302. if(_upTimeLeft > 0)then
  4303. {
  4304. _hours = (_upTimeLeft/60/60);
  4305. _hours = toArray (str _hours);
  4306. _hours resize 1;
  4307. _hours = toString _hours;
  4308. _hours = compile _hours;
  4309. _hours = call _hours;
  4310. _minutes = floor(_upTimeLeft/60);
  4311. _minutes2 = ((_minutes - (_hours*60)) min 60) max 0;if(_minutes2 < 10)then{_minutes2 = format['0%1',_minutes2];};
  4312. }
  4313. else
  4314. {
  4315. _hours = '0';
  4316. _minutes2 = '00';
  4317. };
  4318. };
  4319.  
  4320.  
  4321. hintSilent parseText format[""
  4322. <t size='1' font='Bitstream' align='Center' >[%1]</t><br/>
  4323. <t size='0.8' font='Bitstream' align='Center' >Players Online: %12</t><br/>
  4324. <img size='4.75' image='%4'/><br/>
  4325. <t size='1' font='Bitstream' align='left' color='#CC0000'>Blood: </t><t size='1' font='Bitstream' align='right'>%2</t><br/>
  4326. <t size='1' font='Bitstream' align='left' color='#0066CC'>Humanity: </t><t size='1' font='Bitstream' align='right'>%3</t><br/>
  4327. <br/>
  4328. <t size='1' font='Bitstream' align='left' color='#FFBF00'>Zombie Kills: </t><t size='1' font='Bitstream' align='right'>%9</t><br/>
  4329. <t size='1' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='1' font='Bitstream' align='right'>%10</t><br/>
  4330. <t size='1' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='1' font='Bitstream' align='right'>%11</t><br/>
  4331. <br/>
  4332. <t size='1' font='Bitstream' align='left' color='#FFBF00'>%13</t><t size='1' font='Bitstream' align='right'>%5h %6min</t><br/>
  4333. <t size='1' font='Bitstream' align='left' color='#FFBF00'>FPS: </t><t size='1' font='Bitstream' align='right'>%8</t><br/>
  4334. <t size='1' font='Bitstream' align='left' color='#FFBF00'>GPS: </t><t size='1' font='Bitstream' align='right'>%14</t><br/>
  4335. <t size='1' font='Bitstream' align='Center' color='#CC0000'>%7</t>
  4336. "",
  4337. _txt,
  4338. (r_player_blood),
  4339. _humanity,
  4340. _pic,
  4341. _hours,
  4342. _minutes2,
  4343. _BottomDebug,
  4344. (round diag_fps),
  4345. (player getVariable['zombieKills', 0]),
  4346. (player getVariable['humanKills', 0]),
  4347. (player getVariable['banditKills', 0]),
  4348. _pOn,
  4349. _timertext,
  4350. (mapGridPosition getPos player)
  4351. ];
  4352. uiSleep 1;
  4353. };
  4354. };
  4355. };
  4356. [] spawn fnc_debugX0;
  4357. };
  4358. };
  4359. [] spawn {
  4360. uiSleep 5;
  4361. ["+str _TopOfESC+","+str _LowerTop+","+str _LowerBottom+"] spawn BIS_fnc_infoText;
  4362. if !("+str _UIM+")then
  4363. {
  4364. uiSleep 5;
  4365. ['AntiHack &','AdminTools by','infiSTAR.de'] spawn BIS_fnc_infoText;
  4366. };
  4367. };
  4368. if !("+str _UIM+")then
  4369. {
  4370. systemChat '<infiSTAR.de>: Successfully Loaded In.';
  4371. if("+str _DMS+")then{systemChat '<infiSTAR.de>: -END- key toggles the debugmonitor';};
  4372. diag_log format['<infiSTAR.de> 06-08-2017 19-43-14-v1442 - Successfully Loaded on Client ID13252 (%1)',time];
  4373. }
  4374. else
  4375. {
  4376. diag_log format['Successfully Loaded on Client ID13252 (%1)',time];
  4377. };
  4378. "+_randvar27+" = true;
  4379. diag_log (format['<infiSTAR.de> randvar1 created randvar27 (%1)',time]);
  4380. };
  4381. fnc_VoteTimeServer =
  4382. {
  4383. _array = _this;
  4384.  
  4385. _playerObj = _array select 0;
  4386. if(_playerObj in [''])exitWith {};
  4387. if(typeName _playerObj != 'OBJECT')exitWith {};
  4388. if(isNull _playerObj)exitWith {};
  4389.  
  4390. _clientUID = getPlayerUID _playerObj;
  4391. _vote = _array select 1;
  4392.  
  4393. if(isNil 'TimeVoteCooldown')then{TimeVoteCooldown = 300;};
  4394. if(isNil 'LastVoteGoneThrough')then{LastVoteGoneThrough = 600;};
  4395. if((LastVoteGoneThrough == 0) || ((TimeVoteCooldown + LastVoteGoneThrough) < time))then
  4396. {
  4397. if(isNil 'VoteArray')then{VoteArray = [];};
  4398. if !(_clientUID in VoteArray)then
  4399. {
  4400. VoteArray = VoteArray + [_clientUID,_vote];
  4401. _cntAll = count playableUnits;
  4402. _cntVoted = {getPlayerUID _x in VoteArray} count playableUnits;
  4403. if((_cntAll > 0) && (_cntVoted > 0))then
  4404. {
  4405. _cntday = 0;
  4406. _cntnight = 0;
  4407. if((_cntVoted / _cntAll) > 0.7)then
  4408. {
  4409. _oUIDs = [];
  4410. {
  4411. _xUID = getPlayerUID _x;
  4412. if(_xUID != '')then
  4413. {
  4414. _oUIDs = _oUIDs + [_xUID];
  4415. };
  4416. } forEach playableUnits;
  4417. for '_i' from 0 to (count VoteArray)-1 step 2 do
  4418. {
  4419. _cUID = VoteArray select _i;
  4420. _cVOTE = VoteArray select (_i+1);
  4421. if(_cUID in _oUIDs)then
  4422. {
  4423. if(_cVOTE == 'DAY')then{_cntday = _cntday + 1;};
  4424. if(_cVOTE == 'NIGHT')then{_cntnight = _cntnight + 1;};
  4425. };
  4426. };
  4427.  
  4428. _txt = format['%1 of %2 Players voted. %3 for Day and %4 for Night.',_cntVoted,_cntAll,_cntday,_cntnight];
  4429. fnc_show_colorAdminMsg = [_txt,'#0B6121'];
  4430. publicVariable 'fnc_show_colorAdminMsg';
  4431.  
  4432. _date = date;
  4433. _date set [3,11];
  4434. if(_cntnight > _cntday)then
  4435. {
  4436. _date set [3,23];
  4437. };
  4438. if(!isNil 'dayzSetDate')then{
  4439. dayzSetDate = _date;
  4440. publicVariable 'dayzSetDate';
  4441. };
  4442. setDate _date;
  4443. server_timeSync = {};
  4444. VoteArray = [];
  4445. LastVoteGoneThrough = time;
  4446. }
  4447. else
  4448. {
  4449. _txt = format['%1 of %2 Players voted (/vote day or /vote night).',_cntVoted,_cntAll];
  4450. fnc_show_colorAdminMsg = [_txt,'#0B6121'];
  4451. publicVariable 'fnc_show_colorAdminMsg';
  4452. };
  4453. };
  4454. };
  4455. }
  4456. else
  4457. {
  4458. _txt = format['Wait %1s more until next daytime vote can be done!',round((TimeVoteCooldown + LastVoteGoneThrough) - time)];
  4459. fnc_show_colorAdminMsg = [_txt,'#0B6121'];
  4460. publicVariable 'fnc_show_colorAdminMsg';
  4461. };
  4462. };
  4463. "+_fnc_handlerandvar10+" =
  4464. {
  4465. _array = _this select 1;
  4466. _cnt = count _array;
  4467. if(_cnt == 2)exitWith
  4468. {
  4469. _playerObj = _array select 0;
  4470. _what = _array select 1;
  4471. if(_playerObj in [''])exitWith {};
  4472. if(typeName _playerObj != 'OBJECT')exitWith {};
  4473. if(isNull _playerObj)exitWith {};
  4474. if(_what in ['DAY','NIGHT'])exitWith
  4475. {
  4476. _array call fnc_VoteTimeServer;
  4477. };
  4478. };
  4479. if(_cnt == 4)exitWith
  4480. {
  4481. _name = _array select 0;
  4482. _puid = _array select 1;
  4483. if(_puid == '')exitWith {};
  4484. _what = _array select 2;
  4485. _work = _array select 3;
  4486. if(typeName _work == 'ARRAY')then{_work = toString _work;};
  4487. if((count PV_hackerL0og) > 100)then
  4488. {
  4489. for '_i' from 0 to 49 do
  4490. {
  4491. PV_hackerL0og = PV_hackerL0og - [PV_hackerL0og select 0];
  4492. };
  4493. };
  4494. if((count PV_SurveillanceLog) > 100)then
  4495. {
  4496. for '_i' from 0 to 49 do
  4497. {
  4498. PV_SurveillanceLog = PV_SurveillanceLog - [PV_SurveillanceLog select 0];
  4499. };
  4500. };
  4501. private['_stime','_hours','_minutes','_minutes2'];
  4502. _stime = 0;
  4503. if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;};
  4504. _hours = (_stime/60/60);
  4505. _hours = toArray (str _hours);
  4506. _hours resize 1;
  4507. _hours = toString _hours;
  4508. _hours = compile _hours;
  4509. _hours = call _hours;
  4510. _minutes = floor(_stime/60);
  4511. _minutes2 = ((_minutes - (_hours*60)) min 60) max 0;if(_minutes2 < 10)then{_minutes2 = format['0%1',_minutes2];};
  4512. _log = format['%1 (%2) | %3',_name,_puid,_work];
  4513. [_what,_log] call fn_remote_log;
  4514. if(_what == 'TPCHECK')exitWith
  4515. {
  4516. private ['_sentKey'];
  4517. _varName = format['AHpos%1',_puid];
  4518. _tpKey = missionNameSpace getVariable [_varName,''];
  4519.  
  4520. if(count _array >= 4)then{_sentKey = if(isNil{_array select 3})then{''}else{_array select 3};};
  4521. if(isNil'_sentKey')then{_sentKey = '';};
  4522. if(typeName _sentKey != 'STRING')then{_sentKey = '';};
  4523. if(typeName _tpKey != 'STRING')then{_tpKey = '';};
  4524.  
  4525. if(_sentKey != _tpKey || _sentKey == '' || _tpKey == '')then
  4526. {
  4527. _uidFromKey = missionNameSpace getVariable [format['AHposUID%1',_sentKey],''];
  4528. if(_uidFromKey != '')then
  4529. {
  4530. _log = format['%1(%2) | Bad TP Key: %3 != %4',_name,_puid,_sentKey,_tpKey];
  4531. [_what,_log] call fn_remote_log;
  4532.  
  4533. _log2 = format['%3h %4min | %1 (%2) | Bad TP Key: %5 != %6',_name,_puid,_hours,_minutes2,_sentKey,_tpKey];
  4534. PV_hackerL0og = PV_hackerL0og + [[_log2,'','0','1','0','0',[]]];
  4535. publicVariable 'PV_hackerL0og';
  4536.  
  4537. "+_randvar13+" = _log2;
  4538. publicVariable '"+_randvar13+"';
  4539. };
  4540. };
  4541. };
  4542. if(_what in ['BAN','HLOG','HLOG_SKICK'])exitWith
  4543. {
  4544. [_what,_log] call fn_remote_log;
  4545.  
  4546. _log2 = format['%3h %4min | %1 (%2) | %5',_name,_puid,_hours,_minutes2,_work];
  4547. PV_hackerL0og = PV_hackerL0og + [[_log2,'','0','1','0','0',[]]];
  4548. publicVariable 'PV_hackerL0og';
  4549.  
  4550. "+_randvar13+" = _log2;
  4551. publicVariable '"+_randvar13+"';
  4552.  
  4553. if(_what in ['BAN','HLOG_SKICK'])exitWith
  4554. {
  4555. [_name,_puid,objNull,_log] call fnc_infiSTAR_ServerkickNew;
  4556. if(_what=='BAN')exitWith
  4557. {
  4558. missionNameSpace setVariable [format['ban_status_%1',_puid],1];
  4559. if(isNil 'PVAH_AHTMPBAN')then{PVAH_AHTMPBAN = [];} else {if(typeName PVAH_AHTMPBAN != 'ARRAY')then{PVAH_AHTMPBAN = [];};};
  4560. if!(_puid in PVAH_AHTMPBAN)then{PVAH_AHTMPBAN = PVAH_AHTMPBAN + [_puid];publicVariable 'PVAH_AHTMPBAN';};
  4561. };
  4562. };
  4563. };
  4564. if(_what in ['SLOG','SLOG_SKICK','SLOG_NP','SLOG_BK','SLOG_EC','SLOG_PP'])exitWith
  4565. {
  4566. [_what,_log] call fn_remote_log;
  4567.  
  4568. if(_what == 'SLOG_NP')exitWith
  4569. {
  4570. "+_randvar13+"NEWPLAYER = format['%1 (%2) Time: %3h %4min',_name,_puid,_hours,_minutes2];
  4571. publicVariable '"+_randvar13+"NEWPLAYER';
  4572. };
  4573.  
  4574. _log2 = format['%3h %4min | %1 (%2) | %5',_name,_puid,_hours,_minutes2,_work];
  4575. PV_SurveillanceLog = PV_SurveillanceLog + [[[_name,_puid,_log2],'','0','1','0','0',[]]];
  4576. publicVariable 'PV_SurveillanceLog';
  4577.  
  4578. if(_what == 'SLOG_SKICK')then{
  4579. [_name,_puid,objNull,_log] call fnc_infiSTAR_ServerkickNew;
  4580. };
  4581. };
  4582. };
  4583. };
  4584. '"+_randvar10+"' addPublicVariableEventHandler
  4585. {
  4586. _this call "+_fnc_handlerandvar10+";
  4587. diag_log format['%1',_this];
  4588. };
  4589. _randvar19Local = {
  4590. while{1 == 1}do
  4591. {
  4592. _exit = false;
  4593. if(!isNil 'player')exitWith {[] spawn "+_randvar2+";};
  4594. if(typeName player == 'OBJECT')then
  4595. {
  4596. if(str(player) != '<NULL-object>')then
  4597. {
  4598. if(!isNull player)then
  4599. {
  4600. if(getPlayerUID player != '')then{_exit = true;};
  4601. };
  4602. };
  4603. };
  4604. if(_exit)exitWith {};
  4605. };
  4606. _puid = getPlayerUID player;
  4607. if(_puid in ['',' ','0'])then
  4608. {
  4609. [] spawn "+_randvar2+";
  4610. };
  4611. _name = name player;
  4612. if(isNil 'dayz_playerUID')then{dayz_playerUID = _puid;};
  4613. if(str dayz_playerUID != str _puid)then
  4614. {
  4615. [] spawn "+_randvar2+";
  4616. _log = format['dayz_playerUID [%1] is not equal to PlayerUID [%2]',dayz_playerUID,_puid];
  4617. [_name,_puid,'BAN',toArray (_log)] call "+_randvar37+";
  4618. };
  4619. if!(_puid in "+str _allAdmins+")then
  4620. {
  4621. if("+str _UPW+")then{
  4622. if !(_puid in "+str _WHITELIST+")then
  4623. {
  4624. if(isNil'NOTWHITELISTED')then{NOTWHITELISTED = 'NOTWHITELISTED';};publicVariable'NOTWHITELISTED';
  4625. (findDisplay 46) closeDisplay 0;
  4626. };
  4627. };
  4628. };
  4629. if(isNil 'PVAH_AHTMPBAN')then{PVAH_AHTMPBAN = [];} else {if(typeName PVAH_AHTMPBAN != 'ARRAY')then{PVAH_AHTMPBAN = [];};};
  4630. _AHBANNED = (("+str _BLOCKED+") + PVAH_AHTMPBAN);
  4631. if(_puid in _AHBANNED)then{[] spawn "+_randvar2+";};
  4632. if(!isNil '"+_randvar26+"')exitWith{
  4633. if("+_randvar26+" != _puid)then{
  4634. [] spawn "+_randvar2+";
  4635. _log = format['StoredPlayerUID [%1] is not equal to PlayerUID [%2]',"+_randvar26+",_puid];
  4636. [_name,"+_randvar26+",'BAN',toArray (_log)] call "+_randvar37+";
  4637. };
  4638. };
  4639. "+_randvar26+" = _puid;
  4640. waitUntil {((!isNil 'dayz_animalCheck') || (!isNil 'dayz_medicalH') || (!isNil 'dayz_slowCheck') || (!isNil 'dayz_gui'))};
  4641. if((isNil '"+_randvar27+"') || (isNil '"+_randvar25+"'))then
  4642. {
  4643. [_puid,_name] spawn {
  4644. _puid = _this select 0;_name = _this select 1;
  4645. uiSleep 35;
  4646. if((isNil '"+_randvar27+"') || (isNil '"+_randvar25+"'))then
  4647. {
  4648. [] spawn {sleep 0.5;AntiHack_NotRunningTHREE = 'AntiHack_NotRunningTHREE';publicVariable 'AntiHack_NotRunningTHREE';};
  4649. _log = format['RunCheck: _randvar27: %1, _randvar25: %2',(isNil '"+_randvar27+"'),(isNil '"+_randvar25+"')];
  4650. [_name,_puid,'SLOG',toArray (_log)] call "+_randvar37+";
  4651. (findDisplay 46) closeDisplay 0;
  4652. };
  4653. };
  4654. };
  4655. diag_log (format['<infiSTAR.de> randvar26 created (%1)',time]);
  4656. [] spawn {
  4657. waitUntil {uiSleep 1;!isNil 'PVCDZ_plr_Login'};
  4658. waitUntil {uiSleep 1;str PVCDZ_plr_Login != '[]'};
  4659. if(PVCDZ_plr_Login select 8)then
  4660. {
  4661. _log = format['New Player: %1',PVCDZ_plr_Login];
  4662. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  4663. [_name,getPlayerUID player,'SLOG_NP',toArray (_log)] call "+_randvar37+";
  4664. };
  4665. };
  4666. if(!isNil 'dayzSetOvercast')then{drn_fnc_DynamicWeather_SetWeatherLocal = {};0 setOvercast dayzSetOvercast;0 setfog 0;};
  4667. if(!isNil 'dayzSetViewDistance')then{setViewDistance dayzSetViewDistance;};
  4668. [_puid,_name] spawn {
  4669. _puid = _this select 0;_name = _this select 1;
  4670. waitUntil {!isNil '"+_randvar1+"'};
  4671. [_puid,_name] spawn "+_randvar1+";
  4672. if(38 in (toArray _name))then
  4673. {
  4674. [] spawn "+_randvar2+";
  4675. [_name,_puid,'HLOG_SKICK',toArray ('& in name breaks BattleEye..')] call "+_randvar37+";
  4676. };
  4677. diag_log (format['<infiSTAR.de> randvar1 started (%1)',time]);
  4678. };
  4679.  
  4680. if(_puid in "+str _allAdmins+")then
  4681. {
  4682. if(isNil 'PV_LowLevel_List')then
  4683. {
  4684. PV_LowLevel_List = "+str _LAdmins+";
  4685. PV_NormalLevel_List = "+str _NAdmins+";
  4686. PV_SuperLevel_List = "+str _SAdmins+";
  4687. PV_DevUlDs = "+str _PV_DevUlDs+";
  4688. admin_d0 = {
  4689. deleteMarker '"+_remark+"';
  4690. (createMarker ['"+_remark+"', [0,0,0]]) setMarkerText (_this select 0);
  4691. PVAH_AdminReq = [69,player];publicVariableServer 'PVAH_AdminReq';
  4692. };
  4693. admin_d0_server = {
  4694. deleteMarker '"+_remark+"';
  4695. (createMarker ['"+_remark+"', [0,0,0]]) setMarkerText (_this select 0);
  4696. PVAH_AdminReq = [69,player,0];publicVariableServer 'PVAH_AdminReq';
  4697. };
  4698. };
  4699. if(isNil 'PV_hackerL0og')then{PV_hackerL0og = [[]];};
  4700. if(isNil 'PV_SurveillanceLog')then{PV_SurveillanceLog = [[]];};
  4701. [_puid] spawn {
  4702. _puid = _this select 0;
  4703. PVAH_AdminReq = [1234,player,_puid];
  4704. publicVariableServer 'PVAH_AdminReq';
  4705. waitUntil {!isNil 'PV_AdminMainCode'};
  4706. MOD_EPOCH = "+str _MEH+";
  4707. adminKeybinds = {false;};
  4708. [] spawn PV_AdminMainCode;
  4709. '"+_randvar13+"' addPublicVariableEventHandler
  4710. {
  4711. if(admin_announce)then{
  4712. _show = format['%1',(_this select 1)];
  4713. taskHint [_show, [1,0,0.1,1], 'taskNew'];
  4714. hint _show;
  4715. hint _show;
  4716. hint _show;
  4717. _show2 = format['<infiSTAR.de>: %1',(_this select 1)];
  4718. systemChat _show2;
  4719. };
  4720. };
  4721. '"+_randvar13+"NEWPLAYER' addPublicVariableEventHandler
  4722. {
  4723. if(admin_announce)then{systemChat format['<<infiSTAR.de> New Player>: %1',(_this select 1)];};
  4724. };
  4725. [] spawn {
  4726. r_player_timeout = 0;
  4727. player setVariable['medForceUpdate',true,true];
  4728. player setVariable['unconsciousTime', r_player_timeout, true];
  4729. r_player_unconscious = false;
  4730. player setVariable['NORRN_unconscious',false,true];
  4731. };
  4732. admindefaultKeybinds =
  4733. {
  4734. private ['_key','_shift','_ctrl','_alt'];
  4735. _key = _this select 1;
  4736. _shift = _this select 2;
  4737. _ctrl = _this select 3;
  4738. _alt = _this select 4;
  4739. altstate_Admin = false;
  4740. altstate_Admin = _alt;
  4741. if(_key == "+str _ODK+")then{[] spawn fnc_debugX0;};
  4742. if(_key == "+str _OpenMenuKey+")then{call admin_init;};
  4743. if((_key == 0x29) && {_shift})then{if(!isNil 'infiSTAR_A2_debug')then{call infiSTAR_A2_debug;};};
  4744. if((_key == 0x57) && {_alt})then{call compile preprocessFileLineNumbers 'admin_start.sqf';};
  4745. };
  4746. if(isNil 'start_admin_Keybind_loop')then
  4747. {
  4748. start_admin_Keybind_loop = true;
  4749. [] spawn {
  4750. while{1 == 1}do
  4751. {
  4752. if(!isNil 'admindefaultKeybindsVAR')then{(findDisplay 46) displayRemoveEventHandler ['KeyDown',admindefaultKeybindsVAR];admindefaultKeybindsVAR = nil;};
  4753. admindefaultKeybindsVAR = (findDisplay 46) displayAddEventHandler ['KeyDown', '_this call admindefaultKeybinds;false;'];
  4754. if(!isNil 'adminKeybindsVAR')then{(findDisplay 46) displayRemoveEventHandler ['KeyDown',adminKeybindsVAR];adminKeybindsVAR = nil;};
  4755. adminKeybindsVAR = (findDisplay 46) displayAddEventHandler ['KeyDown', '_this call adminKeybinds;false;'];
  4756. uiSleep 0.05;
  4757. };
  4758. };
  4759. };
  4760. };
  4761. }
  4762. else
  4763. {
  4764. [] spawn {uiSleep 15;if(isNil '"+_randvar4+"')then{[] spawn "+_randvar2+";};};
  4765. };
  4766.  
  4767. if(isNil 'ADMINCHECK')then{ADMINCHECK = toString [32,32,32,65,110,116,105,72,97,99,107,32,98,121,32,105,110,102,105,83,84,65,82,46,100,101];};
  4768. player createDiarySubject [ADMINCHECK,ADMINCHECK];
  4769. 'dayzSetViewDistance' addPublicVariableEventHandler {setViewDistance dayzSetViewDistance;};
  4770. 'dayzSetOvercast' addPublicVariableEventHandler {drn_fnc_DynamicWeather_SetWeatherLocal = {};3 setOvercast dayzSetOvercast;0 setfog 0;};
  4771. if(!isNil 'fnc_infiSTAR_DeathMSG')then{[] spawn fnc_infiSTAR_DeathMSG;};
  4772. if(!isNil 'fnc_infiSTAR_Publish')then{[] spawn fnc_infiSTAR_Publish;};
  4773. if(!isNil 'fnc_infiSTAR_custom')then{[] spawn fnc_infiSTAR_custom;};
  4774. if(!isNil 'fnc_infiSTAR_SafeZone')then{[] spawn fnc_infiSTAR_SafeZone;};
  4775. '"+_randvar31+"' addPublicVariableEventHandler
  4776. {
  4777. _cdate = date;
  4778. _cH = _cdate select 3;
  4779. _cMin = _cdate select 4;
  4780.  
  4781. _sdate = (_this select 1);
  4782. _sH = _sdate select 3;
  4783. _sMin = _sdate select 4;
  4784. if(((abs(_cH - _sH)) > 1) || ((abs(_cMin - _sMin)) >= 3))then
  4785. {
  4786. setDate _sdate;
  4787. [_sdate] spawn {
  4788. _sdate = _this select 0;
  4789. _sH = _sdate select 3;
  4790. _sMin = _sdate select 4;
  4791. uiSleep 3;
  4792. _cdate = date;
  4793. _cH = _cdate select 3;
  4794. _cMin = _cdate select 4;
  4795. if(((abs(_cH - _sH)) > 1) || (((abs(_cMin - _sMin)) >= 15) && ((abs(_cMin - _sMin)) < 60)))then
  4796. {
  4797. _log = format['ClientTime %1 is not equal to ServerTime %2',_cdate,_sdate];
  4798. _name = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_name = name player;};
  4799. _log = [_name,getPlayerUID player,'SLOG',toArray (_log)];
  4800. ['SERVER',_log] call "+_fnc_handlerandvar10+";
  4801. };
  4802. };
  4803. };
  4804. };
  4805. 'fnc_show_colorAdminMsg' addPublicVariableEventHandler
  4806. {
  4807. _array = _this select 1;
  4808. _msg = _array select 0;
  4809. _clr = _array select 1;
  4810. ['<t size=''0.55'' font=''Zeppelin32'' color='+(str _clr)+'>'+(_msg)+'</t>',
  4811. safeZoneXAbs/safeZoneWAbs/4,SafeZoneY+0.02,10,0,0,3079] spawn bis_fnc_dynamicText;
  4812. };
  4813. if(isNil '"+_clientoncetwo+"')then
  4814. {
  4815. "+_clientoncetwo+" = true;
  4816. [] spawn {
  4817. waitUntil {!isNull player};
  4818. while{1 == 1}do
  4819. {
  4820. waitUntil {str (player getVariable['"+_randvar3+"','']) != str (getPlayerUID player)};
  4821. player setVariable['"+_randvar3+"',"+_randvar26+",true];
  4822. };
  4823. "+_clientoncetwo+" = nil;
  4824. };
  4825. };
  4826. };
  4827. publicVariable """+_randvar1+""";
  4828. "+_randvar19+" = _randvar19Local;
  4829. "+_randvar39+" = _randvar19Local;
  4830. publicVariable """+_randvar19+""";
  4831. publicVariable """+_randvar39+""";
  4832. "; if(_MEH)then{ _AHstring = _AHstring + "
  4833. [] spawn {
  4834. waitUntil {!isNil 'sm_done'};
  4835. uiSleep 5;
  4836. if(isNil 'AllowedVehiclesList')exitWith {diag_log 'infiSTAR.de: AllowedVehiclesList not defined..';};
  4837. if(isNil 'infiAllowedVehiclesList')then
  4838. {
  4839. if(str AllowedVehiclesList != '[]')then
  4840. {
  4841. infiAllowedVehiclesList = [];
  4842. {
  4843. if(typeName _x == 'ARRAY')then
  4844. {
  4845. if(count _x == 2)then
  4846. {
  4847. _k = _x select 0;
  4848. if !(_k in infiAllowedVehiclesList)then
  4849. {
  4850. infiAllowedVehiclesList = infiAllowedVehiclesList + [_k];
  4851. for '_i' from 0 to 4 do
  4852. {
  4853. _y = format['%1_DZE%2',_k,_i];
  4854. if(!(_y in infiAllowedVehiclesList) && (_y isKindOf 'AllVehicles'))then
  4855. {
  4856. infiAllowedVehiclesList = infiAllowedVehiclesList + [_y];
  4857. };
  4858. };
  4859. };
  4860. };
  4861. };
  4862. } forEach AllowedVehiclesList;
  4863. publicVariable 'infiAllowedVehiclesList';
  4864. };
  4865. };
  4866. };
  4867. "; }; _AHstring = _AHstring + "
  4868. _kickfnc = {
  4869. KICKED = 'k';publicVariableServer 'KICKED';
  4870. for '_i' from 0 to 99 do {(findDisplay _i) closeDisplay 0;};
  4871. _d = (findDisplay 0) createDisplay 'RscDisplayMission';(findDisplay 0) closeDisplay 0;
  4872. };
  4873. "+_randvar2+" = _kickfnc;
  4874. "+_randvar0+" = _kickfnc;
  4875. publicVariable """+_randvar2+""";
  4876. publicVariable """+_randvar0+""";
  4877. _toserver = {"+_randvar10+" = _this;publicVariableServer'"+_randvar10+"';};
  4878. "+_randvar37+" = _toserver;publicVariable '"+_randvar37+"';
  4879. _unit = 'Old_bike_TK_CIV_EP1' createVehicle [3500,3500,0];
  4880. _unit removeAllEventHandlers ""HandleDamage"";
  4881. _unit addEventHandler [""HandleDamage"", { false }];
  4882. _unit allowDamage false;
  4883. _unit setVehicleInit ""this allowDamage false;"";
  4884. _unit setVehicleInit ""
  4885. if(!isNil'"+_randvar0+"')then
  4886. {
  4887. [] spawn {
  4888. waitUntil {if(isNil'"+_randvar2+"')then{"+_randvar2+"='';};if(isNil'"+_randvar0+"')then{"+_randvar0+"='';};str "+_randvar2+" != str "+_randvar0+"};
  4889. [] spawn { for '_i' from 0 to 99 do {(findDisplay _i) closeDisplay 0;}; };
  4890. [] spawn { _d = (findDisplay 0) createDisplay 'RscDisplayMission';(findDisplay 0) closeDisplay 0; };
  4891. [] spawn {sleep 2; RANDVAR0ISEXISTING = 'RANDVAR0ISEXISTING';publicVariable 'RANDVAR0ISEXISTING'; };
  4892. };
  4893. };
  4894. if(!isNil'"+_randvar39+"')then
  4895. {
  4896. [] spawn {
  4897. waitUntil {if(isNil'"+_randvar19+"')then{"+_randvar19+"='';};if(isNil'"+_randvar39+"')then{"+_randvar39+"='';};str "+_randvar19+" != str "+_randvar39+"};
  4898. [] spawn { for '_i' from 0 to 99 do {(findDisplay _i) closeDisplay 0;}; };
  4899. [] spawn { _d = (findDisplay 0) createDisplay 'RscDisplayMission';(findDisplay 0) closeDisplay 0; };
  4900. [] spawn {sleep 2; RANDVAR39ISEXISTING = 'RANDVAR39ISEXISTING';publicVariable 'RANDVAR39ISEXISTING'; };
  4901. };
  4902. };
  4903. "";
  4904. processInitCommands;
  4905. ";
  4906. call compile _AHstring;
  4907. diag_log ("<infiSTAR.de> AntiHack LOADED!");
  4908.  
  4909.  
  4910.  
  4911. diag_log ("<infiSTAR.de> CREATING AdminMenu");
  4912. #include "AT.sqf"
  4913. diag_log ("<infiSTAR.de> AdminMenu LOADED!");
  4914.  
  4915.  
  4916.  
  4917. diag_log ("<infiSTAR.de> ADDING SERVERSIDE HANDLERS");
  4918. [] spawn {
  4919. fnc_AdminReqProceed = {
  4920. diag_log format['infiSTAR.de fnc_AdminReqProceed: %1',_array];
  4921. if(_option == 0)then
  4922. {
  4923. _sl = format["%1 (%2) spawned %3 @%4",_clientName,_clientUID,(_array select 2), mapGridPosition _playerObj];
  4924. PVAH_WriteLogReq = [_playerObj,toArray _sl];
  4925. publicVariableServer 'PVAH_WriteLogReq';
  4926.  
  4927. [(_array select 2),(_array select 3),_playerObj] spawn
  4928. {
  4929. _type = _this select 0;
  4930. _pos = _this select 1;
  4931. _player = _this select 2;
  4932. _dirPlr = getDir _player;
  4933. _object = _type createVehicle _pos;
  4934. _key = "";
  4935. {
  4936. _x = _x * 10;
  4937. if( _x < 0 )then{ _x = _x * -10 };
  4938. _key = _key + str(round(_x));
  4939. } count _pos;
  4940. _key = _key + str(round(_dirPlr));
  4941. _object setVariable["ObjectID", "0", true];
  4942. _object setVariable["ObjectUID", _key, true];
  4943. _object setvelocity [0,0,1];
  4944. clearWeaponCargoGlobal _object;
  4945. clearMagazineCargoGlobal _object;
  4946. _object setDir _dirPlr;
  4947. dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object];
  4948. };
  4949. };
  4950. if(_option == -3)then
  4951. {
  4952. _class = (_array select 2);
  4953. _worldspace = (_array select 3);
  4954. _keySelected = (_array select 4);
  4955.  
  4956. _location = _worldspace select 1;
  4957. _object = _class createVehicle _location;
  4958. _object setDir (_worldspace select 0);
  4959.  
  4960. _characterID = str(getNumber(configFile >> "CfgWeapons" >> _keySelected >> "keyid"));
  4961. _uid = _worldspace call dayz_objectUID2;
  4962.  
  4963. _key = format["CHILD:308:%1:%2:%3:%4:%5:%6:%7:%8:%9:",dayZ_instance, _class, 0 , _characterID, _worldspace, [], [], 1,_uid];
  4964. _key call server_hiveWrite;
  4965.  
  4966. [_object,_uid,_characterID,_class] spawn {
  4967. _object = _this select 0;
  4968. _uid = _this select 1;
  4969. _characterID = _this select 2;
  4970. _class = _this select 3;
  4971.  
  4972. _done = false;
  4973. _retry = 0;
  4974. while{_retry < 10}do
  4975. {
  4976. uiSleep 0.3;
  4977. _key = format["CHILD:388:%1:",_uid];
  4978. _result = _key call server_hiveReadWrite;
  4979. _outcome = _result select 0;
  4980. if(_outcome == "PASS")then
  4981. {
  4982. _oid = _result select 1;
  4983. _object setVariable["ObjectID", _oid, true];
  4984. _done = true;
  4985. _retry = 100;
  4986. }
  4987. else
  4988. {
  4989. _done = false;
  4990. _retry = _retry + 1;
  4991. };
  4992. };
  4993.  
  4994. _object setvelocity [0,0,1];
  4995. _object setVehicleLock "LOCKED";
  4996. if(_object isKindOf "Bicycle")then
  4997. {
  4998. _object setVehicleLock "UNLOCKED";
  4999. };
  5000. clearWeaponCargoGlobal _object;
  5001. clearMagazineCargoGlobal _object;
  5002. _object allowDamage false;
  5003. _object setVariable["lastUpdate",time];
  5004. if(!isNil '_characterID')then{_object setVariable["CharacterID", _characterID, true];};
  5005. dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object];
  5006. uiSleep 1;
  5007. _object call fnc_veh_ResetEH;
  5008. PVDZE_veh_Init = _object;publicVariable "PVDZE_veh_Init";
  5009. [_object,"all"] spawn server_updateObject;
  5010. _object allowDamage true;
  5011. };
  5012. _sl = format["%1 (%2) hivespawned %3 @%4",_clientName,_clientUID,_class,_worldspace];
  5013. PVAH_WriteLogReq = [_playerObj,toArray _sl];
  5014. publicVariableServer 'PVAH_WriteLogReq';
  5015. };
  5016. if(_option == -2)then
  5017. {
  5018. _deletethis = _array select 2;
  5019. _sl = '';
  5020. if(typeName _deletethis == 'ARRAY')then
  5021. {
  5022. {
  5023. if(!isNull _x)then
  5024. {
  5025. _objectID = _x getVariable['ObjectID','0'];
  5026. _objectUID = _x getVariable['ObjectUID','0'];
  5027. deleteVehicle _x;
  5028. [_objectID,_objectUID,_clientUID] call server_deleteObj;
  5029. };
  5030. true
  5031. } count _deletethis;
  5032. _sl = format['%1 (%2) deleted %3 objects @%4 - characterID %5 - objectID: %6 - objectUID: %7',_clientName,_clientUID,count _deletethis,mapGridPosition _playerObj];
  5033. }
  5034. else
  5035. {
  5036. if(!isNull _deletethis)then
  5037. {
  5038. _pos = getPos _deletethis;
  5039. _type = typeOf _deletethis;
  5040.  
  5041. _objectID = _deletethis getVariable['ObjectID','0'];
  5042. _objectUID = _deletethis getVariable['ObjectUID','0'];
  5043. deleteVehicle _deletethis;
  5044. [_objectID,_objectUID,_clientUID] call server_deleteObj;
  5045.  
  5046. _sl = format['%1 (%2) deleted %3 @%4 - characterID %5 - objectID: %6 - objectUID: %7',_clientName,_clientUID,_type,mapGridPosition _pos,_characterID,_objectID,_objectUID];
  5047. };
  5048. };
  5049. PVAH_WriteLogReq = [_playerObj,toArray _sl];
  5050. publicVariableServer 'PVAH_WriteLogReq';
  5051. };
  5052. if(_option == -1)then
  5053. {
  5054. _sl = format["%1 (%2) hivespawned %3 @%4",_clientName,_clientUID,(_array select 2), mapGridPosition _playerObj];
  5055. PVAH_WriteLogReq = [_playerObj,toArray _sl];
  5056. publicVariableServer 'PVAH_WriteLogReq';
  5057.  
  5058. [(_array select 2),(_array select 3),_playerObj] spawn
  5059. {
  5060. _type = _this select 0;
  5061. _pos = _this select 1;
  5062. _player = _this select 2;
  5063. _dirPlr = getDir _player;
  5064. _object = _type createVehicle _pos;
  5065. clearWeaponCargoGlobal _object;
  5066. clearMagazineCargoGlobal _object;
  5067. _object addMPEventHandler ["MPKilled",{_this call vehicle_handleServerKilled;}];
  5068. _key = "";
  5069. {
  5070. _x = _x * 10;
  5071. if( _x < 0 )then{ _x = _x * -10 };
  5072. _key = _key + str(round(_x));
  5073. } count _pos;
  5074. _key = _key + str(round(_dirPlr));
  5075. _object setVariable["ObjectID", "0", true];
  5076. _object setVariable["ObjectUID", _key, true];
  5077. _object setVariable["lastUpdate",time,true];
  5078. _object setDir _dirPlr;
  5079. dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object];
  5080. waitUntil {(!isNull _object)};
  5081. uiSleep 3;
  5082. _typeObj = typeOf _object;
  5083. _posObj = getPos _object;
  5084. _dirObj = getDir _object;
  5085. _key = format["CHILD:999:select `id` from `vehicle` where `class_name` = '?' LIMIT 1:[""%1""]:",_typeObj];
  5086. _data = "HiveEXT" callExtension _key;
  5087. _result = call compile format["%1", _data];
  5088. _status = _result select 0;
  5089. if(_status == "CustomStreamStart")then
  5090. {
  5091. "HiveEXT" callExtension _key;
  5092. _temp = _result select 1;
  5093. if(_temp == 0)then
  5094. {
  5095. _data = "HiveEXT" callExtension format["CHILD:999:Insert into vehicle
  5096. (class_name,damage_min, damage_max, fuel_min, fuel_max, limit_min, limit_max, parts, inventory)
  5097. values
  5098. ('?',0,0,1.0,1.0,0,99,'',''):[""%1""]:", _typeObj];
  5099. };
  5100. };
  5101. _data = "HiveEXT" callExtension format["CHILD:999:Insert into world_vehicle
  5102. (vehicle_id, world_id, worldspace, chance)
  5103. values
  5104. ((SELECT `id` FROM `vehicle` where `class_name` = '?' LIMIT 1), 1, '%3',1):[""%1"", ""%2""]:", _typeObj, worldName, [_dirObj, _posObj]];
  5105. _data = "HiveEXT" callExtension format["CHILD:999:Insert into instance_vehicle
  5106. (world_vehicle_id, instance_id, worldspace, inventory, parts, fuel, damage)
  5107. values
  5108. ((SELECT `id` FROM `world_vehicle` where `vehicle_id` = (SELECT `id` FROM `vehicle` where `class_name` = '%1' LIMIT 1) LIMIT 1), %3, '%2','[[[],[]],[[],[]],[[],[]]]','[]',1,0):[]:", _typeObj, [_dirObj, _posObj], dayZ_instance];
  5109. _key = format["CHILD:999:SELECT `id` FROM `instance_vehicle` ORDER BY `id` DESC LIMIT 1:[]:"];
  5110. _data = "HiveEXT" callExtension _key;
  5111. _result = call compile format["%1", _data];
  5112. _status = _result select 0;
  5113. if(_status == "CustomStreamStart")then
  5114. {
  5115. _temp = _result select 1;
  5116. if(_temp == 1)then
  5117. {
  5118. _data = "HiveEXT" callExtension _key;
  5119. _result = call compile format["%1", _data];
  5120. _status = _result select 0;
  5121. };
  5122. };
  5123. _object setVariable["lastUpdate",time];
  5124. _object setVariable["ObjectID", str(_status), true];
  5125. _object setVariable["CharacterID", "1337", true];
  5126. [_object,"all"] spawn server_updateObject;
  5127. };
  5128. };
  5129. if(_option == 2)then
  5130. {
  5131. _do = format["if(getPlayerUID player == '%1')then
  5132. {
  5133. _unit = player;
  5134. _selection = ""legs"";
  5135. _damage = 1;
  5136. _unit setHit[_selection,_damage];
  5137. };", getPlayerUID (_array select 2)];
  5138. _do call fn_executeGlobal;
  5139. };
  5140. if(_option == 3)then
  5141. {
  5142. if(_array select 2)then
  5143. {
  5144. _playerObj setVehicleInit 'this hideObject true;';
  5145. }
  5146. else
  5147. {
  5148. _playerObj setVehicleInit 'this hideObject false;';
  5149. };
  5150. processInitCommands;
  5151. };
  5152. if(_option == 4)then
  5153. {
  5154. (_array select 2) setDamage 5;
  5155. };
  5156. if(_option == 5)then
  5157. {
  5158. _unit = _array select 2;
  5159. _do = format["if(getPlayerUID player == '%1')then
  5160. {
  5161. disableSerialization;
  5162. r_player_blood = r_player_bloodTotal;
  5163. r_player_unconscious = false;
  5164. r_player_injured = false;
  5165. r_player_Sepsis = [false, 0];
  5166. r_player_lowblood = false;
  5167. r_player_inpain = false;
  5168. r_player_handler = false;
  5169. r_player_cardiac = false;
  5170. r_player_infected = false;
  5171. r_player_dead = false;
  5172. r_player_loaded = false;
  5173. r_player_timeout = 0;
  5174. r_player_Nutrition = 0;
  5175. r_fracture_legs = false;
  5176. r_fracture_arms = false;
  5177. r_handlercount = 0;
  5178. dayz_sourceBleeding = objNull;
  5179. call fnc_usec_resetWoundPoints;
  5180. player setVariable ['unconsciousTime',0,true];
  5181. player setVariable ['sepsisStarted', nil];
  5182. player setVariable ['USEC_Sepsis', false, true];
  5183. player setVariable ['USEC_isCardiac',false, false];
  5184. player setVariable['USEC_infected',false,true];
  5185. player setVariable ['USEC_BloodQty',r_player_bloodTotal,true];
  5186. player setVariable ['USEC_lowBlood',false,true];
  5187. player setVariable ['USEC_isCardiac',false,true];
  5188. player setVariable['USEC_injured',false,true];
  5189. player setVariable['USEC_inPain',false,true];
  5190. player setVariable ['NORRN_unconscious', false, false];
  5191. player setVariable['hit_legs',0,true];
  5192. player setVariable['hit_hands',0,true];
  5193. player setHit['legs',0];
  5194. player setHit['hands',0];
  5195. player setdamage 0;
  5196. _display = uiNamespace getVariable 'DAYZ_GUI_display';
  5197. (_display displayCtrl 1303) ctrlShow false;
  5198. (_display displayCtrl 1203) ctrlShow false;
  5199. dayz_temperatur = 37;
  5200. dayz_nutrition = 0;
  5201. dayz_hunger = 0;
  5202. dayz_thirst = 0;
  5203. dayz_lastMeal = time;
  5204. dayz_lastDrink = time;
  5205. player setVariable['medForceUpdate',true,true];
  5206. };", getPlayerUID (_array select 2)];
  5207. _do call fn_executeGlobal;
  5208. };
  5209. if(_option == 51)then
  5210. {
  5211. _plr = _playerObj;
  5212. _vehicle = _array select 2;
  5213. _type = typeOf _vehicle;
  5214. _vehicle setDamage 0;
  5215. _vehicle setVehicleInit 'this setFuel 1';
  5216.  
  5217. _hitpoints = _vehicle call vehicle_getHitpoints;
  5218. {
  5219. _hitpoint = _x;
  5220. _selection = getText(configFile >> "cfgVehicles" >> _type >> "HitPoints" >> _hitpoint >> "name");
  5221. _vehicle setHit[_selection,0];
  5222. _strH = ("hit_" + (_selection));
  5223. _vehicle setVariable[_strH,0,true];
  5224. } forEach _hitpoints;
  5225. if(!isNil "server_updateObject")then
  5226. {
  5227. [_vehicle,"repair"] call server_updateObject;
  5228. };
  5229. _sl = format["%1 AdminRepair %2",_clientName,_type];
  5230. PVAH_WriteLogReq = [_playerObj,toArray _sl];
  5231. publicVariableServer 'PVAH_WriteLogReq';
  5232. };
  5233. if(_option == 52)then
  5234. {
  5235. _pos = _array select 2;
  5236. _vehicles = _pos nearEntities [['LandVehicle','Air','Ship'],15];
  5237.  
  5238. {
  5239. if(!isNull _x)then
  5240. {
  5241. clearVehicleInit _x;
  5242. _x setVehicleInit 'this setVectorUp [0,0,1];';
  5243. };
  5244. } forEach _vehicles;
  5245.  
  5246. _sl = format["%1 Flipped vehicles @%2",_clientName,_pos];
  5247. PVAH_WriteLogReq = [_playerObj,toArray _sl];
  5248. publicVariableServer 'PVAH_WriteLogReq';
  5249. };
  5250. if(_option == 8)then
  5251. {
  5252. _do = format["if(getPlayerUID player == '%1')then
  5253. {
  5254. {player removeMagazine _x;} forEach (magazines player);
  5255. removeAllWeapons player;
  5256. removebackpack player;
  5257. };", getPlayerUID (_array select 2)];
  5258. _do call fn_executeGlobal;
  5259. };
  5260. if(_option == 91)then
  5261. {
  5262. _msg = _array select 2;
  5263. _clr = _array select 3;
  5264. if(typeName _msg == 'ARRAY')then{_msg = toString _msg;};
  5265. fnc_show_colorAdminMsg = [_msg,_clr];
  5266. publicVariable 'fnc_show_colorAdminMsg';
  5267. };
  5268. if(_option == 10)then
  5269. {
  5270. _do = format["if(getPlayerUID player == '%1')then{ (findDisplay 46) closeDisplay 0; };", getPlayerUID (_array select 2)];
  5271. _do call fn_executeGlobal;
  5272. };
  5273. if(_option == 111)then
  5274. {
  5275. _do = format['if(!isServer)then
  5276. {
  5277. {
  5278. if(name _x == ''%1'')then
  5279. {
  5280. _i = [_x,4,time,false,false] spawn BIS_Effects_Burn;
  5281. };
  5282. } forEach ([0,0,0] nearEntities [''AllVehicles'', 10000000]);
  5283. if(name player == ''%1'')then
  5284. {
  5285. [] spawn {
  5286. _addup = 0;
  5287. while{alive player}do
  5288. {
  5289. _xxx = (round(random 250));
  5290. _yyy = (round(random 250));
  5291. _equals = _xxx + _yyy;
  5292. if(_equals < 300)then{_equals = 333;};
  5293. r_player_blood = r_player_blood - _equals;
  5294. _addup = _addup + _equals;
  5295. if(_addup >= 12000)exitWith {(findDisplay 46) closeDisplay 0;};
  5296. uiSleep 0.5;
  5297. };
  5298. };
  5299. };
  5300. };', name (_array select 2)];
  5301. _do call fn_executeGlobal;
  5302. };
  5303. if(_option == 110)then
  5304. {
  5305. _do = format["if(!isServer)then
  5306. {
  5307. if(getPlayerUID player == '%1')then
  5308. {
  5309. _vehicle = vehicle player;
  5310. _hitpoint = '%2';
  5311. _type = typeOf _vehicle;
  5312. _selection = getText(configFile >> 'cfgVehicles' >> _type >> 'HitPoints' >> _hitpoint >> 'name');
  5313. _vehicle setHit[_selection,%3];
  5314. _strH = ('hit_' + (_selection));
  5315. _vehicle setVariable[_strH,%3,true];
  5316. };
  5317. };", getPlayerUID (_array select 2),_array select 3,_array select 4];
  5318. _do call fn_executeGlobal;
  5319. };
  5320. if(_option == 112)then
  5321. {
  5322. _do = format['if(!isServer)then
  5323. {
  5324. if(getPlayerUID player == "%1")then{disableUserInput true;};
  5325. };', getPlayerUID (_array select 2)];
  5326. _do call fn_executeGlobal;
  5327. };
  5328. if(_option == 113)then
  5329. {
  5330. _do = format['if(!isServer)then
  5331. {
  5332. if(getPlayerUID player == "%1")then{disableUserInput false;};
  5333. };', getPlayerUID (_array select 2)];
  5334. _do call fn_executeGlobal;
  5335. };
  5336. if(_option == 11)then
  5337. {
  5338. _do = format['if(getPlayerUID player == "%1")then
  5339. {
  5340. fnc_usec_unconscious = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_unconscious.sqf";
  5341. _unit = player;
  5342. if(_unit == player)then
  5343. {
  5344. r_player_timeout = 30;
  5345. r_player_unconscious = true;
  5346. player setVariable["medForceUpdate",true,true];
  5347. player setVariable["unconsciousTime", r_player_timeout, true];
  5348. };
  5349. if(vehicle _unit != _unit)then
  5350. {
  5351. _unit spawn {
  5352. private["_veh","_unit"];
  5353. _veh = vehicle _this;
  5354. _unit = _this;
  5355. waitUntil{(((getPos _veh select 2 < 1) && (speed _veh < 1)) || (!r_player_unconscious))};
  5356. if(r_player_unconscious)then{
  5357. _unit action ["eject", _veh];
  5358. waitUntil{((vehicle _this) != _this)};
  5359. uiSleep 1;
  5360. _unit setVariable["NORRN_unconscious", true, true];
  5361. _unit playActionNow "Die";
  5362. };
  5363. };
  5364. }
  5365. else
  5366. {
  5367. _unit setVariable["NORRN_unconscious", true, true];
  5368. _unit playActionNow "Die";
  5369. };
  5370. };', getPlayerUID (_array select 2)];
  5371. _do call fn_executeGlobal;
  5372. };
  5373. if(_option == 14)then
  5374. {
  5375. {deleteVehicle _x;} forEach allMissionObjects "USOrdnanceBox";
  5376. {deleteVehicle _x;} forEach allMissionObjects "Foodbox0";
  5377. {
  5378. if((((count ((getWeaponCargo _x) select 1))+(count ((getMagazineCargo _x) select 1))) > 200) || (count ([currentWeapon _x] + (weapons _x) + (magazines _x)) > 40))then
  5379. {
  5380. deleteVehicle _x;
  5381. };
  5382. } forEach allMissionObjects "ALL";
  5383. };
  5384. if(_option == 15)then
  5385. {
  5386. _do = format['if(getPlayerUID player == "%1")then
  5387. {
  5388. [] spawn {
  5389. if(isNil "druggedbiatch")then
  5390. {
  5391. druggedbiatch = true;
  5392. hint "You took drugs YOLOLOLO";
  5393. _mytime = time;
  5394. while{druggedbiatch}do
  5395. {
  5396. nonapsi_ef = ppEffectCreate ["colorCorrections", 1555];
  5397. nonapsi_ef ppEffectEnable true;
  5398. nonapsi_ef ppEffectAdjust [1.0, 1.0, -0.03, [0.0, 0.0, 0.0, 0.0], [3.0, 5.0, 9.0, 5.0],[0.4,0.0,0.0, 0.7]];
  5399. nonapsi_ef ppEffectCommit 1;
  5400. uiSleep random(1);
  5401. wetdist1 = ppEffectCreate ["wetDistortion", 2006];
  5402. wetdist1 ppEffectAdjust [0, 8, 0.8,8,8, 0.2, 1, 0, 0, 0.08, 0.08, 0, 0, 0, 0.77];
  5403. wetdist1 ppEffectEnable true;
  5404. wetdist1 ppEffectCommit 0;
  5405. ppe = ppEffectCreate ["colorCorrections", 1555];
  5406. ppe ppEffectAdjust [1, 1, 0, [1.5,6,2.5,0.5], [5,3.5,5,-0.5], [-3,5,-5,-0.5]];
  5407. ppe ppEffectCommit 1;
  5408. ppe ppEffectEnable true;
  5409. ppe2 = ppEffectCreate ["chromAberration", 1555];
  5410. ppe2 ppEffectAdjust [0.01,0.01,true];
  5411. ppe2 ppEffectCommit 1;
  5412. ppe2 ppEffectEnable true;
  5413. ppe3 = ppEffectCreate ["radialBlur", 1555];
  5414. ppe3 ppEffectEnable true;
  5415. ppe3 ppEffectAdjust [0.02,0.02,0.15,0.15];
  5416. ppe3 ppEffectCommit 1;
  5417. uiSleep random(1);
  5418. wetdist1 = ppEffectCreate ["wetDistortion", 2006];
  5419. wetdist1 ppEffectAdjust [1, 1.16, 0.32, 2.56, 0.8, 0.64, 2.64, 0, 0, 1.08, 0.08, 0, 0, 0, 1.77];
  5420. wetdist1 ppEffectEnable true;
  5421. wetdist1 ppEffectCommit 0;
  5422. uiSleep random(1);
  5423. nonapsi_ef = ppEffectCreate ["colorCorrections", 1555];
  5424. nonapsi_ef ppEffectEnable true;
  5425. nonapsi_ef ppEffectAdjust [1.0, 1.0, -0.02, [9.5, 1.5, 2.5, 0.2], [2.0, 7.0, 6.0, 2.0],[0.4,0.0,0.0, 0.7]];
  5426. nonapsi_ef ppEffectCommit 1;
  5427. uiSleep random(1);
  5428. if(_mytime + 30 < time)exitWith {};
  5429. };
  5430. ppEffectDestroy nonapsi_ef;
  5431. ppEffectDestroy ppe;
  5432. ppEffectDestroy ppe2;
  5433. ppEffectDestroy ppe3;
  5434. ppEffectDestroy wetdist1;
  5435. setaperture 0;
  5436. "dynamicBlur" ppEffectAdjust [0];
  5437. "dynamicBlur" ppEffectCommit 16;
  5438. "colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 1], [1, 1, 1, 0.0]];
  5439. "colorCorrections" ppEffectCommit 0;
  5440. };
  5441. };
  5442. };', getPlayerUID (_array select 2)];
  5443. _do call fn_executeGlobal;
  5444. };
  5445. if(_option == 16)then
  5446. {
  5447. { missionNameSpace setVariable [format['ban_status_%1',_x],-1]; }forEach PVAH_AHTMPBAN;
  5448. PVAH_AHTMPBAN = [];
  5449. publicVariable 'PVAH_AHTMPBAN';
  5450. };
  5451. if(_option == 17)then
  5452. {
  5453. _playerObj = _array select 2;
  5454. _clientUID = (getPlayerUID _playerObj);
  5455. _clientName = 'DEAD';if((alive _playerObj)&&(getPlayerUID _playerObj != ''))then{_clientName = name _playerObj;};
  5456. [_clientName,_clientUID,_playerObj,'Kicked by Admin'] call fnc_infiSTAR_ServerkickNew;
  5457. };
  5458. if(_option == 18)then
  5459. {
  5460. _playerObj = _array select 2;
  5461. _clientUID = (getPlayerUID _playerObj);
  5462. _clientName = 'DEAD';if((alive _playerObj)&&(getPlayerUID _playerObj != ''))then{_clientName = name _playerObj;};
  5463. [_clientUID,_clientName,_playerObj,'Banned by Admin'] call fnc_infiSTAR_ServerkickNew;
  5464.  
  5465. missionNameSpace setVariable [format['ban_status_%1',_clientUID],1];
  5466. if(isNil 'PVAH_AHTMPBAN')then{PVAH_AHTMPBAN = [];} else {if(typeName PVAH_AHTMPBAN != 'ARRAY')then{PVAH_AHTMPBAN = [];};};
  5467. if!(_clientUID in PVAH_AHTMPBAN)then{PVAH_AHTMPBAN = PVAH_AHTMPBAN + [_clientUID];publicVariable 'PVAH_AHTMPBAN';};
  5468. };
  5469. if(_option == 182)then
  5470. {
  5471. _uid = _array select 2;
  5472. _name = _array select 3;
  5473.  
  5474. missionNameSpace setVariable [format['ban_status_%1',_uid],-1];
  5475. if(isNil 'PVAH_AHTMPBAN')then{PVAH_AHTMPBAN = [];} else {if(typeName PVAH_AHTMPBAN != 'ARRAY')then{PVAH_AHTMPBAN = [];};};
  5476. if!(_uid in PVAH_AHTMPBAN)then{PVAH_AHTMPBAN = PVAH_AHTMPBAN - [_uid];publicVariable 'PVAH_AHTMPBAN';};
  5477. };
  5478. if(_option == 19)then
  5479. {
  5480. _selection = _array select 2;
  5481. _intensity = _array select 3;
  5482. switch (_selection) do {
  5483. case 1:
  5484. {
  5485. dayzSetViewDistance = _intensity;publicVariable "dayzSetViewDistance";
  5486.  
  5487. _sl = format["%1 Viewdistance %2",_clientName,_intensity];
  5488. PVAH_WriteLogReq = [_playerObj,toArray _sl];
  5489. publicVariableServer 'PVAH_WriteLogReq';
  5490. };
  5491. case 2:
  5492. {
  5493. dayzSetOvercast = _intensity;publicVariable "dayzSetOvercast";
  5494.  
  5495. _sl = format["%1 Weather %2",_clientName,_intensity];
  5496. PVAH_WriteLogReq = [_playerObj,toArray _sl];
  5497. publicVariableServer 'PVAH_WriteLogReq';
  5498. };
  5499. };
  5500. };
  5501. if(_option == 20)then
  5502. {
  5503. _offset = _array select 2;
  5504. _date = [2012,1,1,_offset,0];
  5505. if(!isNil 'dayzSetDate')then{
  5506. dayzSetDate = _date;
  5507. publicVariable 'dayzSetDate';
  5508. };
  5509. setDate _date;
  5510. server_timeSync = {};
  5511.  
  5512. _sl = format["%1 Time to %2",_clientName,_date];
  5513. PVAH_WriteLogReq = [_playerObj,toArray _sl];
  5514. publicVariableServer 'PVAH_WriteLogReq';
  5515. };
  5516. if(_option == 21)then
  5517. {
  5518. _do = format['if(getPlayerUID player == "%1")then
  5519. {
  5520. [] spawn {
  5521. _vehicle_player = vehicle player;
  5522. playsound "Ivn_notscared";
  5523. playsound "Ivn_notscared";
  5524. uiSleep 2;
  5525. playSound "Gul_youshouldbe";
  5526. playSound "Gul_youshouldbe";
  5527. uiSleep 4;
  5528. playSound "beat04";playSound "beat04";
  5529. playSound "beat04";playSound "beat04";
  5530. _vehicle_player SetVelocity [6,6,2];
  5531. uiSleep 1.25;
  5532. playSound "beat04";playSound "beat04";
  5533. playSound "beat04";playSound "beat04";
  5534. _vehicle_player SetVelocity [6,6,2];
  5535. uiSleep 1.25;
  5536. playSound "All_haha";
  5537. playSound "All_haha";
  5538. playSound "All_haha";
  5539. playSound "All_haha";
  5540. uiSleep 2.25;
  5541. playSound "All_haha";
  5542. playSound "All_haha";
  5543. playSound "All_haha";
  5544. playSound "All_haha";
  5545.  
  5546. cutText ["You Got Punished By An Admin", "PLAIN"];
  5547. };
  5548. };', getPlayerUID (_array select 2)];
  5549. _do call fn_executeGlobal;
  5550. };
  5551. if(_option == 22)then
  5552. {
  5553. _UID = getPlayerUID (_array select 2);
  5554. _do = "if(getPlayerUID player == "+str _UID+")then
  5555. {
  5556. [] spawn {
  5557. canAbort = true;
  5558. _swep = '';
  5559. {
  5560. if((getNumber (configFile >> 'CfgWeapons' >> _x >> 'Type')) == 2)exitWith
  5561. {
  5562. _swep = _x;
  5563. };
  5564. } forEach (weapons player);
  5565. if(_swep != '')then
  5566. {
  5567. player selectWeapon _swep;
  5568. };
  5569.  
  5570. cutText [format['You think about your family... 10 Seconds'], 'PLAIN DOWN'];
  5571. uiSleep 4;
  5572. cutText [format['Your little daughter, and what happened to her... 6 Seconds'], 'PLAIN DOWN'];
  5573. uiSleep 4;
  5574. cutText [format['You cant take this shit any longer... 2 Seconds'], 'PLAIN DOWN'];
  5575. uiSleep 2;
  5576. cutText [format['I come to you Sahra! Goodbye cruel world!'], 'PLAIN DOWN'];
  5577. canAbort = false;
  5578. player playmove 'ActsPercMstpSnonWpstDnon_suicide1B';
  5579. uiSleep 8.4;
  5580. player_fired = { player setDamage 1; };
  5581. player addEventHandler ['Fired', {_this call player_fired;}];
  5582. player fire (currentWeapon player);
  5583. };
  5584. };";
  5585. _do call fn_executeGlobal;
  5586. };
  5587. if(_option == 23)then
  5588. {
  5589. PVDZE_plr_DeathBResult = PlayerDeaths;
  5590. if(!isNull _playerObj)then{
  5591. _clientID publicVariableClient "PVDZE_plr_DeathBResult";
  5592. };
  5593. };
  5594. if(_option == 24)then
  5595. {
  5596. _do = format["if(name player == '%1')then
  5597. {
  5598. [] spawn {
  5599. closedialog 0;cutText ['','PLAIN',0];Titletext ['','PLAIN',0];endLoadingScreen;0 fadeSound 1;disableUserInput false;
  5600. _model = '%2';
  5601. if(_model isKindOf 'CAAnimalBase')then
  5602. {
  5603. {player removeMagazine _x;} forEach (magazines player);
  5604. removeAllWeapons player;
  5605. removebackpack player;
  5606. };
  5607. [dayz_playerUID,dayz_characterID,_model] spawn player_humanityMorph;
  5608. waitUntil {typeOf player == _model};
  5609. _ok = player getVariable['Admin_1_Morph','ok'];if(_ok == 'ok')then{player setVariable['Admin_1_Morph',_model,true];};
  5610. uiSleep 0.1;
  5611. _ok = player getVariable['Admin_1_Morph','ok'];if(_ok == 'ok')then{player setVariable['Admin_1_Morph',_model,true];};
  5612. vehicle player switchCamera 'EXTERNAL';
  5613. };
  5614. };",(_array select 2),(_array select 3)];
  5615. _do call fn_executeGlobal;
  5616. };
  5617. if(_option == 25)then
  5618. {
  5619. _do = format["if(name player == '%1')then
  5620. {
  5621. [] spawn {
  5622. _obj = player;
  5623. _mags = getArray (configFile >> 'CfgWeapons' >> currentWeapon vehicle _obj >> 'magazines');
  5624. if ((count _mags) > 0) then
  5625. {
  5626. _mag = _mags select 0;
  5627. vehicle _obj addMagazine _mag;
  5628. };
  5629. };
  5630. };",(_array select 2)];
  5631. _do call fn_executeGlobal;
  5632. };
  5633. if(_option == 26)then
  5634. {
  5635. _object = (_array select 2);
  5636. _class = typeOf _object;
  5637. _worldspace = [getDir _object,getPosATL _object];
  5638.  
  5639. _characterID = _object getVariable["CharacterID","0"];
  5640. _uid = _worldspace call dayz_objectUID2;
  5641.  
  5642. _key = format["CHILD:308:%1:%2:%3:%4:%5:%6:%7:%8:%9:",dayZ_instance, _class, 0 , _characterID, _worldspace, [], [], 1,_uid];
  5643. _key call server_hiveWrite;
  5644.  
  5645. [_object,_uid,_characterID,_class] spawn {
  5646. _object = _this select 0;
  5647. _uid = _this select 1;
  5648. _characterID = _this select 2;
  5649. _class = _this select 3;
  5650.  
  5651. _done = false;
  5652. _retry = 0;
  5653. while{_retry < 10}do
  5654. {
  5655. uiSleep 0.3;
  5656. _key = format["CHILD:388:%1:",_uid];
  5657. _result = _key call server_hiveReadWrite;
  5658. _outcome = _result select 0;
  5659. if(_outcome == "PASS")then
  5660. {
  5661. _oid = _result select 1;
  5662. _object setVariable["ObjectID", _oid, true];
  5663. _done = true;
  5664. _retry = 100;
  5665. }
  5666. else
  5667. {
  5668. _done = false;
  5669. _retry = _retry + 1;
  5670. };
  5671. };
  5672.  
  5673. _object setvelocity [0,0,1];
  5674. _object setVariable["lastUpdate",time];
  5675. _object setVariable["CharacterID", _characterID, true];
  5676. dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object];
  5677. _object call fnc_veh_ResetEH;
  5678. PVDZE_veh_Init = _object;publicVariable "PVDZE_veh_Init";
  5679. [_object,"all"] spawn server_updateObject;
  5680. };
  5681.  
  5682. _sl = format["%1 saved - %2 (characterID: %3) - to the database",_clientName,typeOf (_array select 2),_characterID];
  5683. PVAH_WriteLogReq = [_playerObj,toArray _sl];
  5684. publicVariableServer 'PVAH_WriteLogReq';
  5685. };
  5686. if(_option == 666)then
  5687. {
  5688. _UID = getPlayerUID (_array select 2);
  5689. _do = "if(getPlayerUID player == "+str _UID+")then
  5690. {
  5691. r_player_blood = r_player_blood - 200;
  5692. player setVariable['USEC_BloodQty',r_player_blood,true];
  5693. };";
  5694. _do call fn_executeGlobal;
  5695. };
  5696. if(_option == 9001)then
  5697. {
  5698. _dir = getdir _playerObj;
  5699. _pos = getPosATL _playerObj;
  5700. _pos = [(_pos select 0)+2*sin(_dir),(_pos select 1)+2*cos(_dir),(_pos select 2)];
  5701. [_dir,_pos] spawn {
  5702. _dir = _this select 0;
  5703. _pos = _this select 1;
  5704. _b0x = 'USOrdnanceBox' createVehicle _pos;
  5705. _b0x setPosATL _pos;
  5706. clearWeaponCargoGlobal _b0x;
  5707. clearmagazinecargoGlobal _b0x;
  5708.  
  5709. _b0x_wpnlist =
  5710. ['AK_107_GL_Kobra','AK_107_Kobra','AK_107_PSO','AKM_DZ',
  5711. 'AK_47_S','AK74_DZ','AK_74_GL','AK_74_GL_Kobra','AKS_74','AK74_Kobra_DZ',
  5712. 'AKS_74_PSO','AKS74U_DZ','AKS_74_UN_Kobra','AKS_GOLD','BAF_AS50_scoped',
  5713. 'BAF_AS50_TWS','BAF_L110A1_Aim','BAF_L7A2_GPMG','BAF_L85A2_RIS_ACOG',
  5714. 'BAF_L85A2_RIS_CWS','L85_Holo_DZ','BAF_L85A2_RIS_SUSAT',
  5715. 'BAF_L85A2_UGL_ACOG','BAF_L85A2_UGL_Holo','BAF_L85A2_UGL_SUSAT',
  5716. 'BAF_L86A2_ACOG','BAF_LRR_scoped','BAF_LRR_scoped_W','Bizon_DZ','Bizon_SD_DZ',
  5717. 'M1911_DZ','Crossbow','DMR_DZ','G36_C_SD_camo','G36_C_SD_eotech','G36a',
  5718. 'G36A_Camo_DZ','G36C_DZ','G36C_camo','G36K','G36K_Camo_DZ','FNFAL_DZ','FN_FAL_ANPVS4_DZE',
  5719. 'G17_FL_DZ','CZ550_DZ','ksvk','LeeEnfield_DZ','M1014_DZ','m107_DZ',
  5720. 'M14_CCO_DZ','M16A2_DZ','M16A2_GL_DZ','m16a4','M16A4_ACOG_DZ','M16A4_ACG_GL','M16A4_GL',
  5721. 'M24_DZ','M24_des_EP1','M240','m240_scoped_EP1','M249','M249_EP1','M249_m145_EP1',
  5722. 'M40A3_Gh_DZ','M4A1_DZ','M4A1_CCO_DZ','M4A1_Aim_camo','M4A1_AIM_SD_camo','M4A1_HWS_GL',
  5723. 'M4A1_HWS_GL_camo','M4A1_HWS_GL_SD_Camo','M4A1_RCO_GL','M4A3_CCO_EP1',
  5724. 'M4A3_RCO_GL_EP1','M4SPR','M60A4_EP1','M9_DZ','M9_SD_DZ','Makarov_DZ','Makarov_SD_DZ',
  5725. 'MeleeHatchet','MeleeCrowbar','MG36','Mk_48_DES_EP1','Mk48_CCO_DZ','MP5_DZ',
  5726. 'MP5_SD_DZ','MR43_DZ','Pecheneg','PK','Remington870_FL_DZ','Revolver_DZ',
  5727. 'revolver_gold_EP1','RPK74_DZ','Sa61_EP1','Saiga12K','SVD_DZ','SVD_Gh_DZ',
  5728. 'SVD_des_EP1','SVD_NSPU_EP1','PDW_DZ','UZI_SD_EP1','Winchester1866_DZ',
  5729. 'Binocular','Binocular_Vector','ItemCompass','ItemEtool','ItemFlashlight',
  5730. 'ItemFlashlightRed','ItemGPS','ItemHatchet','ItemKnife','ItemMap',
  5731. 'ItemMatchbox','ItemRadio','ItemToolbox','ItemWatch','NVGoggles'];
  5732. _b0x_maglist =
  5733. ['2Rnd_12Gauge_Slug','2Rnd_12Gauge_Buck','5Rnd_127x108_KSVK',
  5734. '5Rnd_127x99_as50','5Rnd_762x51_M24','5Rnd_86x70_L115A1','5Rnd_17HMR',
  5735. '6Rnd_45ACP','7Rnd_45ACP_1911','8Rnd_9x18_Makarov','8Rnd_9x18_MakarovSD',
  5736. '8Rnd_12Gauge_Slug','8Rnd_12Gauge_Buck','8Rnd_B_Saiga12_74Slug',
  5737. '8Rnd_B_Saiga12_Pellets','10Rnd_127x99_M107','10Rnd_762x54_SVD',
  5738. '10Rnd_303British','15Rnd_9x19_M9','15Rnd_9x19_M9SD','15Rnd_W1866_Slug',
  5739. '15Rnd_W1866_Pellet','17Rnd_9x19_glock17','20Rnd_556x45_Stanag',
  5740. '20Rnd_762x51_DMR','20Rnd_762x51_FNFAL','20Rnd_B_765x17_Ball',
  5741. '30Rnd_545x39_AK','30Rnd_545x39_AKSD','30Rnd_556x45_G36','30Rnd_556x45_G36SD',
  5742. '30Rnd_556x45_Stanag','30Rnd_556x45_StanagSD','30Rnd_762x39_AK47',
  5743. '30Rnd_9x19_MP5','30Rnd_9x19_MP5SD','30Rnd_9x19_UZI','30Rnd_9x19_UZI_SD',
  5744. '50Rnd_127x108_KORD','64Rnd_9x19_Bizon','64Rnd_9x19_SD_Bizon','75Rnd_545x39_RPK',
  5745. '100Rnd_762x51_M240','100Rnd_762x54_PK','100Rnd_556x45_BetaCMag','100Rnd_556x45_M249',
  5746. '200Rnd_556x45_L110A1','200Rnd_556x45_M249','BoltSteel','1Rnd_HE_GP25',
  5747. '1Rnd_HE_M203','1Rnd_Smoke_GP25','1Rnd_SmokeGreen_GP25','1Rnd_SmokeRed_GP25',
  5748. '1Rnd_SmokeYellow_GP25','1Rnd_Smoke_M203','1Rnd_SmokeGreen_M203',
  5749. '1Rnd_SmokeRed_M203','1Rnd_SmokeYellow_M203','6Rnd_HE_M203','BAF_ied_v1',
  5750. 'FlareGreen_GP25','FlareRed_GP25','FlareWhite_GP25','FlareYellow_GP25',
  5751. 'FlareGreen_M203','FlareRed_M203','FlareWhite_M203','FlareYellow_M203',
  5752. 'HandGrenade_East','HandGrenade_West','M136','SmokeShell','SmokeShellBlue',
  5753. 'SmokeShellGreen','SmokeShellOrange','SmokeShellPurple','SmokeShellRed',
  5754. 'SmokeShellYellow','PipeBomb','FoodCanBakedBeans','FoodCanFrankBeans',
  5755. 'FoodCanPasta','FoodCanSardines','FoodBeefCooked','FoodBeefRaw',
  5756. 'HandChemBlue','HandChemGreen','HandChemRed','HandRoadFlare','ItemAntibiotic',
  5757. 'ItemBandage','ItemBloodbag','ItemEpinephrine','ItemHeatPack','ItemJerrycan',
  5758. 'ItemJerrycanEmpty','ItemMorphine','ItemPainkiller','ItemSandbag','ItemSodaCoke',
  5759. 'ItemSodaEmpty','ItemSodaMdew','ItemSodaPepsi','ItemTankTrap','ItemTent',
  5760. 'ItemWire','ItemWaterbottle','ItemWaterbottleUnfilled','PartEngine',
  5761. 'PartFueltank','PartGeneric','PartGlass','PartWheel','PartWoodPile',
  5762. 'PartVRotor','TrapBear','TrashTinCan','TrashJackDaniels','Skin_Camo1_DZ',
  5763. 'Skin_Soldier1_DZ','Skin_Sniper1_DZ','Skin_Survivor2_DZ'];
  5764.  
  5765. {_b0x addWeaponCargoGlobal [_x, 5];} forEach _b0x_wpnlist;
  5766. {_b0x addMagazineCargoGlobal [_x, 20];} forEach _b0x_maglist;
  5767. _b0x addBackpackCargoGlobal ['DZ_Backpack_EP1', 1];
  5768. };
  5769. };
  5770. if(_option == 9002)then
  5771. {
  5772. _dir = getdir _playerObj;
  5773. _pos = getPosATL _playerObj;
  5774. _pos = [(_pos select 0)+2*sin(_dir),(_pos select 1)+2*cos(_dir),(_pos select 2)];
  5775. [_dir,_pos] spawn {
  5776. _dir = _this select 0;
  5777. _pos = _this select 1;
  5778. _b0x = 'USOrdnanceBox' createVehicle _pos;
  5779. _b0x setPosATL _pos;
  5780. clearWeaponCargoGlobal _b0x;
  5781. clearmagazinecargoGlobal _b0x;
  5782.  
  5783. if(isNil "PV_b0x_wpnlist")then
  5784. {
  5785. PV_b0x_wpnlist = [];
  5786. _CfgWeapons = configFile >> "CfgWeapons";
  5787. for "_i" from 0 to (count _CfgWeapons)-1 do
  5788. {
  5789. _weapon = _CfgWeapons select _i;
  5790. if(isClass _weapon)then
  5791. {
  5792. _wpn_type = configName(_weapon);
  5793. _plx = toArray _wpn_type;
  5794. _plx resize 7;
  5795. _plx;
  5796. _plx = toString _plx;
  5797. if(((_plx != "ItemKey") || (_wpn_type == "ItemKeyKit")) && (_wpn_type != "MineE"))then
  5798. {
  5799. if(((getNumber (_weapon >> "scope") == 0) || (getNumber (_weapon >> "scope") == 2)) && (getText (_weapon >> "picture") != ""))then
  5800. {
  5801. PV_b0x_wpnlist = PV_b0x_wpnlist + [_wpn_type];
  5802. };
  5803. };
  5804. };
  5805. };
  5806. uiSleep 2;
  5807. };
  5808.  
  5809. if(isNil "PV_b0x_maglist")then
  5810. {
  5811. PV_b0x_maglist = [];
  5812. _CfgWeapons = configFile >> "CfgMagazines";
  5813. for "_i" from 0 to (count _CfgWeapons)-1 do
  5814. {
  5815. _weapon = _CfgWeapons select _i;
  5816. if(isClass _weapon)then
  5817. {
  5818. _wpn_type = configName(_weapon);
  5819. if(((getNumber (_weapon >> "scope") == 0) || (getNumber (_weapon >> "scope") == 2)) && (getText (_weapon >> "picture") != "") && !(_wpn_type in ['AngelCookies','Skinbase']))then
  5820. {
  5821. PV_b0x_maglist = PV_b0x_maglist + [_wpn_type];
  5822. };
  5823. };
  5824. };
  5825. uiSleep 2;
  5826. };
  5827.  
  5828. {_b0x addWeaponCargoGlobal [_x, 5];} forEach PV_b0x_wpnlist;
  5829. {_b0x addMagazineCargoGlobal [_x, 20];} forEach PV_b0x_maglist;
  5830. _b0x addBackpackCargoGlobal ["DZ_Backpack_EP1", 1];
  5831. };
  5832. };
  5833. if(_option == 9003)then
  5834. {
  5835. _dir = getdir _playerObj;
  5836. _pos = getPosATL _playerObj;
  5837. _pos = [(_pos select 0)+2*sin(_dir),(_pos select 1)+2*cos(_dir),(_pos select 2)];
  5838. [_dir,_pos] spawn {
  5839. _dir = _this select 0;
  5840. _pos = _this select 1;
  5841. _b0x = 'USOrdnanceBox' createVehicle _pos;
  5842. _b0x setPosATL _pos;
  5843. clearWeaponCargoGlobal _b0x;
  5844. clearmagazinecargoGlobal _b0x;
  5845.  
  5846. {_b0x addMagazineCargoGlobal [_x, 40];} forEach ['ItemWoodWallGarageDoor','ItemWoodWallGarageDoorLocked',
  5847. 'ItemWoodFloorHalf','ItemWoodWallDoorLg','ItemWoodWallWithDoorLgLocked','ItemWoodWallLg',
  5848. 'ItemWoodWallWindowLg','ItemWoodFloorQuarter','ItemWoodWallDoor','ItemWoodWallWithDoorLocked',
  5849. 'ItemWoodWall','ItemWoodWallWindow','ItemWoodWallThird','ItemWoodLadder','ItemWoodFloor','ItemWoodStairs',
  5850. 'ItemWoodStairsSupport','ItemDomeTent','ItemDesertTent','ItemTent','ItemTankTrap',
  5851. 'ItemSandbagLarge','ItemSandbag','ItemPole','ItemCorrugated','ItemCanvas','ItemBurlap','PartWoodLumber',
  5852. 'PartWoodPlywood','bulk_empty','wooden_shed_kit','wood_shack_kit','workbench_kit','stick_fence_kit',
  5853. 'sandbag_nest_kit','sun_shade_kit','rusty_gate_kit','outhouse_kit','storage_shed_kit','light_pole_kit',
  5854. 'ItemLightBulb','desert_net_kit','forest_net_kit','desert_large_net_kit','forest_large_net_kit',
  5855. 'metal_panel_kit','ItemComboLock','FoodMRE','CinderBlocks','deer_stand_kit',
  5856. 'ItemGoldBar10oz','ItemSilverBar10oz','ItemGoldBar','ItemSilverBar','MortarBucket',
  5857. 'ItemCopperBar','ItemCopperBar10oz','ItemBriefcase100oz','ItemBriefcase80oz','ItemFireBarrel_kit',
  5858. 'ItemBriefcase60oz','ItemBriefcase40oz','ItemBriefcase20oz','ItemGunRackKit','ItemOilBarrel','ItemFuelBarrel',
  5859. 'm240_nest_kit','ItemLockbox','metal_floor_kit','half_cinder_wall_kit','cinder_garage_kit','cinder_door_kit',
  5860. 'ItemVault','ItemGenerator','Skin_Rocker2_DZ','plot_pole_kit','Skin_SurvivorW2_DZ','Skin_Functionary1_EP1_DZ',
  5861. 'Skin_Haris_Press_EP1_DZ','Skin_Priest_DZ','Skin_SurvivorWpink_DZ','Skin_SurvivorWurban_DZ',
  5862. 'Skin_SurvivorWcombat_DZ','Skin_SurvivorWdesert_DZ','Skin_Survivor2_DZ','fuel_pump_kit',
  5863. 'Skin_Rocker1_DZ','Skin_Rocker3_DZ','Skin_RU_Policeman_DZ','Skin_Pilot_EP1_DZ',
  5864. 'Skin_Rocker4_DZ','Skin_Bandit1_DZ','Skin_Bandit2_DZ','Skin_GUE_Commander_DZ',
  5865. 'Skin_GUE_Soldier_2_DZ','Skin_GUE_Soldier_CO_DZ','Skin_GUE_Soldier_Crew_DZ',
  5866. 'Skin_GUE_Soldier_MG_DZ','Skin_GUE_Soldier_Sniper_DZ','Skin_Ins_Soldier_GL_DZ',
  5867. 'Skin_TK_INS_Soldier_EP1_DZ','Skin_TK_INS_Warlord_EP1_DZ','Skin_BanditW1_DZ','park_bench_kit',
  5868. 'Skin_BanditW2_DZ','Skin_CZ_Special_Forces_GL_DES_EP1_DZ','Skin_Drake_Light_DZ','PartPlankPack',
  5869. 'Skin_Soldier_Sniper_PMC_DZ','Skin_FR_OHara_DZ','Skin_FR_Rodriguez_DZ','ItemSandbagExLarge',
  5870. 'Skin_CZ_Soldier_Sniper_EP1_DZ','Skin_Graves_Light_DZ','Skin_Soldier_Bodyguard_AA12_PMC_DZ',
  5871. 'Skin_Camo1_DZ','Skin_Rocket_DZ','Skin_Sniper1_DZ','Skin_Soldier1_DZ','Skin_Soldier_TL_PMC_DZ','wood_ramp_kit'];
  5872. {_b0x addWeaponCargoGlobal [_x, 20];} forEach ['ItemFishingPole','ItemSledge','ItemKeyKit','ItemToolbox','ItemEtool'];
  5873. };
  5874. };
  5875. if(_option == 9004)then
  5876. {
  5877. _dir = getdir _playerObj;
  5878. _pos = getPos _playerObj;
  5879. _pos = [(_pos select 0)+2*sin(_dir),(_pos select 1)+2*cos(_dir),(_pos select 2)];
  5880. [_dir,_pos,_playerObj] spawn {
  5881. _dir = _this select 0;
  5882. _pos = _this select 1;
  5883. _b0x = 'USVehicleBox_EP1' createVehicle _pos;
  5884. clearWeaponCargoGlobal _b0x;
  5885. clearmagazinecargoGlobal _b0x;
  5886. _b0x setPosATL _pos;
  5887. {_b0x addMagazineCargoGlobal [_x, 1];} forEach ['ItemWoodWallLg','ItemWoodFloorQuarter','ItemWoodStairs',
  5888. 'ItemWoodWallWithDoorLgLocked','ItemWoodWallGarageDoorLocked','ItemLockBox','ItemVault','ItemSledgeHead','ItemSledgeHandle','plot_pole_kit','workbench_kit'];
  5889. _b0x addWeaponCargoGlobal ['ItemToolbox', 1];
  5890. _b0x addWeaponCargoGlobal ['ItemCrowbar', 1];
  5891. _b0x addWeaponCargoGlobal ['ItemEtool', 1];
  5892. };
  5893. };
  5894. if(_option == 9005)then
  5895. {
  5896. _dir = getdir _playerObj;
  5897. _pos = getPos _playerObj;
  5898. _pos = [(_pos select 0)+2*sin(_dir),(_pos select 1)+2*cos(_dir),(_pos select 2)];
  5899. [_dir,_pos,_playerObj] spawn {
  5900. _dir = _this select 0;
  5901. _pos = _this select 1;
  5902. _b0x = 'USVehicleBox_EP1' createVehicle _pos;
  5903. clearWeaponCargoGlobal _b0x;
  5904. clearmagazinecargoGlobal _b0x;
  5905. _b0x setPosATL _pos;
  5906. {_b0x addMagazineCargoGlobal [_x, 1];} forEach ['ItemVault','ItemSledgeHead','ItemSledgeHandle','storage_shed_kit','plot_pole_kit','workbench_kit'];
  5907. _b0x addMagazineCargoGlobal ['half_cinder_wall_kit', 15];
  5908. _b0x addMagazineCargoGlobal ['MortarBucket', 10];
  5909. _b0x addMagazineCargoGlobal ['CinderBlocks', 30];
  5910. _b0x addMagazineCargoGlobal ['cinder_garage_kit', 2];
  5911. _b0x addMagazineCargoGlobal ['ItemTankTrap', 6];
  5912. _b0x addMagazineCargoGlobal ['ItemPole', 6];
  5913. _b0x addMagazineCargoGlobal ['ItemComboLock', 2];
  5914. _b0x addMagazineCargoGlobal ['ItemWoodLadder', 2];
  5915. _b0x addMagazineCargoGlobal ['ItemWoodStairs', 3];
  5916. _b0x addMagazineCargoGlobal ['metal_floor_kit', 8];
  5917. {_b0x addWeaponCargoGlobal [_x, 1];} forEach
  5918. [
  5919. 'ItemToolbox',
  5920. 'ItemCrowbar',
  5921. 'ItemEtool'
  5922. ];
  5923. };
  5924. };
  5925. if(_option == 9006)then
  5926. {
  5927. _dir = getdir _playerObj;
  5928. _pos = getPos _playerObj;
  5929. _pos = [(_pos select 0)+2*sin(_dir),(_pos select 1)+2*cos(_dir),(_pos select 2)];
  5930. [_dir,_pos,_playerObj] spawn {
  5931. _dir = _this select 0;
  5932. _pos = _this select 1;
  5933. _b0x = 'USVehicleBox_EP1' createVehicle _pos;
  5934. clearWeaponCargoGlobal _b0x;
  5935. clearmagazinecargoGlobal _b0x;
  5936. _b0x setPosATL _pos;
  5937. {_b0x addMagazineCargoGlobal [_x, 1];} forEach ['plot_pole_kit','workbench_kit'];
  5938. {_b0x addMagazineCargoGlobal [_x, 25];} forEach
  5939. [
  5940. 'half_cinder_wall_kit'
  5941. ];
  5942. {_b0x addMagazineCargoGlobal [_x, 15];} forEach
  5943. [
  5944. 'MortarBucket'
  5945. ];
  5946. {_b0x addMagazineCargoGlobal [_x, 50];} forEach
  5947. [
  5948. 'CinderBlocks'
  5949. ];
  5950. {_b0x addMagazineCargoGlobal [_x, 4];} forEach
  5951. [
  5952. 'cinder_garage_kit',
  5953. 'ItemComboLock',
  5954. 'ItemWoodLadder'
  5955. ];
  5956. {_b0x addMagazineCargoGlobal [_x, 12];} forEach
  5957. [
  5958. 'ItemTankTrap',
  5959. 'ItemPole'
  5960. ];
  5961. {_b0x addMagazineCargoGlobal [_x, 6];} forEach
  5962. [
  5963. 'ItemWoodStairs'
  5964. ];
  5965. {_b0x addMagazineCargoGlobal [_x, 15];} forEach
  5966. [
  5967. 'metal_floor_kit'
  5968. ];
  5969. {_b0x addMagazineCargoGlobal [_x, 2];} forEach
  5970. [
  5971. 'ItemVault',
  5972. 'ItemSledgeHead',
  5973. 'ItemSledgeHandle',
  5974. 'storage_shed_kit'
  5975. ];
  5976. {_b0x addWeaponCargoGlobal [_x, 2];} forEach
  5977. [
  5978. 'ItemToolbox',
  5979. 'ItemCrowbar',
  5980. 'ItemEtool'
  5981. ];
  5982. };
  5983. };
  5984. if(_option == 9000)then
  5985. {
  5986. private ['_weapons', '_magazines', '_backpack', '_selected', '_worldspace', '_combination', '_inventory'];
  5987. _selected = _array select 2;
  5988. _worldspace = _array select 3;
  5989. _combination = _array select 4;
  5990.  
  5991. _inventory = _selected call fnc_getSupportVaultContent;
  5992. if(isNil'_inventory')exitWith{diag_log format['<infiSTAR.de> PVAH_AdminReq %1: nil _inventory',_option]};
  5993. if(typeName _inventory != 'ARRAY')exitWith{diag_log format['<infiSTAR.de> PVAH_AdminReq %1: typeName _inventory != ARRAY -> %2',_option,typeName _inventory]};
  5994. if(count _inventory != 3)exitWith{diag_log format['<infiSTAR.de> PVAH_AdminReq %1: count _inventory != 3 -> %2',_option, count _inventory]};
  5995.  
  5996. [_worldspace, _combination, _inventory, _playerObj] call {
  5997. private ['_worldspace', '_combination', '_inventory', '_player', '_uid', '_key', '_vault'];
  5998. _worldspace = _this select 0;
  5999. _combination = _this select 1;
  6000. _inventory = _this select 2;
  6001. _player = _this select 3;
  6002.  
  6003. _uid = _worldspace call dayz_objectUID3;
  6004.  
  6005. _key = format['CHILD:308:%1:%2:%3:%4:%5:%6:%7:%8:%9:',
  6006. dayZ_instance,
  6007. 'VaultStorageLocked',
  6008. 0 ,
  6009. _combination,
  6010. _worldspace,
  6011. [],
  6012. [],
  6013. 0,
  6014. _uid
  6015. ];
  6016. _key call server_hiveWrite;
  6017.  
  6018. _vault = createVehicle ['VaultStorageLocked', [0,0,0], [], 0, 'CAN_COLLIDE'];
  6019. _vault setDir (_worldspace select 0);
  6020. _vault setPosATL (_worldspace select 1);
  6021.  
  6022. _vault setVariable ['lastUpdate',time];
  6023. _vault setVariable ['ObjectUID', _uid,true];
  6024. _vault setVariable ['OEMPos',(_worldspace select 1),true];
  6025. _vault setVariable ['CharacterID',_combination,true];
  6026.  
  6027. _vault enableSimulation false;
  6028. dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object];
  6029.  
  6030. _vault setVariable ['WeaponCargo', _inventory select 0, true];
  6031. _vault setVariable ['MagazineCargo', _inventory select 1, true];
  6032. _vault setVariable ['BackpackCargo', _inventory select 2, true];
  6033.  
  6034. _key = format['CHILD:309:%1:%2:',_uid,_inventory];
  6035. _key call server_hiveWrite;
  6036. };
  6037. };
  6038. if(_option == 9099)then
  6039. {
  6040. _playerObj = _array select 1;
  6041. _selected = _array select 2;
  6042. _pos = _array select 3;
  6043.  
  6044. _b0x = 'USVehicleBox_EP1' createVehicle _pos;
  6045. clearWeaponCargoGlobal _b0x;
  6046. clearmagazinecargoGlobal _b0x;
  6047. _b0x setPosATL _pos;
  6048.  
  6049. _arrayforcrate = _selected call fnc_getSupportBoxContent;
  6050. if(isNil'_arrayforcrate')exitWith{diag_log format['<infiSTAR.de> PVAH_AdminReq %1: nil _arrayforcrate',_option]};
  6051.  
  6052. if(str _arrayforcrate == '[]')exitWith{};
  6053. {
  6054. if(typeName _x == 'ARRAY')then
  6055. {
  6056. _item = _x select 0;
  6057. _BackPack = getText (configfile >> 'CfgVehicles' >> _item >> 'vehicleClass') == 'BackPacks';
  6058. if(_BackPack)then
  6059. {
  6060. _b0x addBackpackCargoGlobal [_item,_x select 1];
  6061. }
  6062. else
  6063. {
  6064. if(isClass (configFile >> 'CfgWeapons' >> _item))then
  6065. {
  6066. _b0x addWeaponCargoGlobal [_item,_x select 1];
  6067. };
  6068. if(isClass (configFile >> 'CfgMagazines' >> _item))then
  6069. {
  6070. _b0x addMagazineCargoGlobal [_item,_x select 1];
  6071. };
  6072. };
  6073. }
  6074. else
  6075. {
  6076. _item = _x;
  6077. _BackPack = getText (configfile >> 'CfgVehicles' >> _item >> 'vehicleClass') == 'BackPacks';
  6078. if(_BackPack)then
  6079. {
  6080. _b0x addBackpackCargoGlobal [_item,1];
  6081. }
  6082. else
  6083. {
  6084. if(isClass (configFile >> 'CfgWeapons' >> _item))then
  6085. {
  6086. _b0x addWeaponCargoGlobal [_item,1];
  6087. };
  6088. if(isClass (configFile >> 'CfgMagazines' >> _item))then
  6089. {
  6090. _b0x addMagazineCargoGlobal [_item,1];
  6091. };
  6092. };
  6093. };
  6094. } forEach _arrayforcrate;
  6095. };
  6096. };
  6097. waitUntil {uiSleep 0.1;
  6098. !isNil 'fnc_infiSTAR_ServerkickNew' &&
  6099. !isNil 'fnc_AdminReqProceed' &&
  6100. !isNil 'fnc_WriteLogReqq'
  6101. };
  6102. _fnc_infiSTAR_ServerkickNew = fnc_infiSTAR_ServerkickNew;
  6103. _fnc_AdminReqProceed = fnc_AdminReqProceed;
  6104. _fnc_WriteLogReqq = fnc_WriteLogReqq;fnc_WriteLogReqq = nil;
  6105. diag_log '<infiSTAR.de> starting main server loop';
  6106. while{1 == 1}do
  6107. {
  6108. onPlayerConnected {
  6109. _log = format['CONNECT - %1(%2)', _name, _uid];
  6110. ['CONNECTLOG',_log] call fn_custom_log;
  6111. [_name,_uid] call fnc_infiSTAR_PlayerLog;
  6112. };
  6113.  
  6114. if(isNil'fnc_infiSTAR_ServerkickNew')then{fnc_infiSTAR_ServerkickNew = {};};
  6115. if(str fnc_infiSTAR_ServerkickNew != str _fnc_infiSTAR_ServerkickNew)then
  6116. {
  6117. _log = format['fnc_infiSTAR_ServerkickNew CHANGED: %1',fnc_infiSTAR_ServerkickNew];
  6118. ['HACKLOG',_log] call fn_custom_log;
  6119. fnc_infiSTAR_ServerkickNew = _fnc_infiSTAR_ServerkickNew;
  6120. };
  6121.  
  6122. if(isNil'fnc_AdminReqProceed')then{fnc_AdminReqProceed = {};};
  6123. if(str fnc_AdminReqProceed != str _fnc_AdminReqProceed)then
  6124. {
  6125. _log = format['fnc_AdminReqProceed CHANGED: %1',fnc_AdminReqProceed];
  6126. ['HACKLOG',_log] call fn_custom_log;
  6127. fnc_AdminReqProceed = _fnc_AdminReqProceed;
  6128. };
  6129.  
  6130. 'PVAH_WriteLogReq' addPublicVariableEventHandler _fnc_WriteLogReqq;
  6131. uiSleep 1;
  6132. };
  6133. };
  6134. [] spawn {
  6135. waitUntil {uiSleep 0.1;!isNil 'sm_done'};
  6136. uiSleep 30;
  6137. infiSTAR_object_handleServerKilled = {
  6138. private['_unit','_objectID','_objectUID','_source','_entities'];
  6139. _unit = _this select 0;
  6140. _source = _this select 1;
  6141. if(isNil '_unit')then{_unit = objNull;};
  6142. if(isNil '_source')then{_source = objNull;};
  6143.  
  6144. _log = '';
  6145. _name = '';
  6146. _uid = '';
  6147.  
  6148. _objectID = _unit getVariable['ObjectID','0'];
  6149. _objectUID = _unit getVariable['ObjectUID','0'];
  6150. _worldSpace = [getDir _unit,getPosATL _unit];
  6151. _nearby = [];
  6152. _entities = _unit nearEntities [['Man'], 200];
  6153. {
  6154. if(!isNull _x)then
  6155. {
  6156. _nearguy = _x;
  6157. if(getPlayerUID _nearguy != '')then
  6158. {
  6159. {
  6160. if(!isNull _x)then
  6161. {
  6162. if(getPlayerUID _x != '')then
  6163. {
  6164. _namex = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_namex = name _x;};
  6165. _logN = format['%1 (%2)',_namex,getPlayerUID _x];
  6166. if !(_logN in _nearby)then
  6167. {
  6168. _nearby = _nearby + [_logN];
  6169. };
  6170. };
  6171. };
  6172. } forEach (crew vehicle _nearguy);
  6173. };
  6174. };
  6175. } forEach _entities;
  6176.  
  6177. if(!isNull _source)then
  6178. {
  6179. _uid = getPlayerUID _source;
  6180. if(_uid != '')then
  6181. {
  6182. _name = 'UNKNOWN';if((alive _source)&&(getPlayerUID _source != ''))then{_name = name _source;};
  6183. };
  6184. };
  6185.  
  6186. if(!isNull _unit)then
  6187. {
  6188. _locked = '';
  6189. if(locked _unit)then{_locked = 'Locked ';};
  6190. _characterID = '0';_characterID = _unit getvariable['CharacterID','0'];
  6191. if(_uid != '')then
  6192. {
  6193. _log = format['%10Vehicle destroyed with %9 @%7 by %1 (%2) - %3, worldspace %4, CharId %11, objID %5, objUID %6, nearby %8',
  6194. _name,_uid,typeOf _unit,_worldSpace,_objectID,_objectUID,mapGridPosition _unit,_nearby,weaponState _source,_locked,_characterID];
  6195. }
  6196. else
  6197. {
  6198. _log = format['%7Vehicle destroyed @%5 - %1, worldspace %2, CharId %8, objID %3, objUID %4, nearby %6',
  6199. typeOf _unit,_worldSpace,_objectID,_objectUID,mapGridPosition _unit,_nearby,_locked,_characterID];
  6200. };
  6201. };
  6202. ['VEHICLE_DESTROYED',_log] call fn_custom_log;
  6203. PV_SurveillanceLog = PV_SurveillanceLog + [[[_name,_uid,_log],'','0','1','0','0',[]]];
  6204. publicVariable 'PV_SurveillanceLog';
  6205. true
  6206. };
  6207. {
  6208. if(!isNull _x)then{_x addMPEventHandler ["MPKilled",{_this call infiSTAR_object_handleServerKilled;}];};
  6209. } forEach ([0,0,0] nearEntities [['LandVehicle','Air','Ship'], 10000000]);
  6210. };
  6211. [] spawn {
  6212. waitUntil {uiSleep 0.1;!isNil 'sm_done'};
  6213. uiSleep 5;
  6214. infiSTAR_customSend = {
  6215. private ['_unit','_variable','_arraytosend','_source','_humanityHit','_arr'];
  6216. _arr = (_this select 1);
  6217. _unit = _arr select 0;
  6218. _variable = _arr select 1;
  6219. _arraytosend = _arr select 2;
  6220. if(_variable == 'Humanity')then
  6221. {
  6222. _source = _arraytosend select 0;
  6223. _humanityHit = _arraytosend select 1;
  6224. if(abs _humanityHit > 12000)then
  6225. {
  6226. if(!isNull _source)then
  6227. {
  6228. _clientUID = getPlayerUID _source;
  6229. if(_clientUID != '')then
  6230. {
  6231. if((vehicle _source) isKindOf 'Man')then
  6232. {
  6233. _clientName = name _source;
  6234.  
  6235. deleteVehicle (vehicle _source);
  6236. _do = format['if(!isServer)then
  6237. {
  6238. if(getPlayerUID player == ''%1'')then
  6239. {
  6240. removeAllWeapons player;
  6241. };
  6242. };',_clientUID];
  6243. _do call fn_executeGlobal;
  6244.  
  6245. _log = format['%1 (%2) - Significant humanity change (%3)!.. damage hack?',_clientName,_clientUID,_humanityHit];
  6246. ['HACKLOG',_log] call fn_custom_log;
  6247. PV_hackerL0og = PV_hackerL0og + [[_log,'','0','1','0','0',[]]];
  6248. publicVariable 'PV_hackerL0og';
  6249. };
  6250. };
  6251. };
  6252. };
  6253. };
  6254. if(_variable == 'SafeZoneState')then
  6255. {
  6256. _state = _arraytosend select 0;
  6257. _pos = getPosATL _unit;
  6258. _GPS = mapGridPosition _pos;
  6259. _msg = ' Entered SafeZone';
  6260. if(_state == 0)then
  6261. {
  6262. _msg = ' Left SafeZone';
  6263. };
  6264. _log = format['%1(%2) - %3 @%4',name _unit,getPlayerUID _unit,_msg,_GPS];
  6265. ['SAFEZONELOG',_log] call fn_custom_log;
  6266. };
  6267. };
  6268. 'PVDZ_send' addPublicVariableEventHandler
  6269. {
  6270. (_this select 1) call server_sendToClient;
  6271. _this call infiSTAR_customSend;
  6272. };
  6273. if(!isNil 'server_logUnlockLockEvent')then
  6274. {
  6275. server_logUnlockLockEvent = {
  6276. private['_obj','_player','_objectID','_objectUID','_pos','_worldspace','_log','_codeEntered','_doorCode','_status','_statusText'];
  6277. _obj = _this select 1;
  6278. if(!isNull _obj)then
  6279. {
  6280. _player = _this select 0;
  6281. _objectID = _obj getVariable['ObjectID', '0'];
  6282. _objectUID = _obj getVariable['ObjectUID', '0'];
  6283.  
  6284. _log = '';
  6285. if(count _this > 3)then
  6286. {
  6287. _codeEntered = _this select 3;
  6288. if(_codeEntered == 'NOTHING ENTERED')then{_player setDamage 5;_codeEntered = '-HACKER KILLED-';};
  6289. if(_codeEntered == '')then{_codeEntered = '000';};
  6290. _doorCode = _this select 4;
  6291. if(_codeEntered==_doorCode)then
  6292. {
  6293. _nameP = 'DEAD';if((alive _player)&&(getPlayerUID _player != ''))then{_nameP = name _player;};
  6294. _log = format['DOOR UNLOCKED: ID:%1 UID:%2 BY %3(%4) @%5 Code Entered: %6',_objectID,_objectUID,_nameP,(getPlayerUID _player),(mapGridPosition _obj),_codeEntered];
  6295. }
  6296. else
  6297. {
  6298. _nameP = 'DEAD';if((alive _player)&&(getPlayerUID _player != ''))then{_nameP = name _player;};
  6299. _log = format['DOOR UNLOCK ATTEMPT: ID:%1 UID:%2 BY %3(%4) @%5 Code Entered: %6 | Correct Code: %7',_objectID,_objectUID,_nameP,(getPlayerUID _player),(mapGridPosition _obj),_codeEntered,_doorCode];
  6300. };
  6301. }
  6302. else
  6303. {
  6304. _status = _this select 2;
  6305. _statusText = 'UNLOCKED';
  6306. if(_status)then
  6307. {
  6308. [_obj, 'gear'] call server_updateObject;
  6309. _statusText = 'LOCKED';
  6310. };
  6311. _nameP = 'DEAD';if((alive _player)&&(getPlayerUID _player != ''))then{_nameP = name _player;};
  6312. _log = format['SAFE %6: ID:%1 UID:%2 BY %3(%4) @%5', _objectID, _objectUID, _nameP, (getPlayerUID _player), (mapGridPosition _obj), _statusText];
  6313. };
  6314. ['LockUnlock',_log] call fn_custom_log;
  6315. };
  6316. };
  6317. };
  6318.  
  6319. fn_infiSTAR_logLock = {
  6320. private ["_vehicle","_lock","_player"];
  6321. _vehicle = _this select 0;
  6322. _lock = _this select 1;
  6323. _player = _this select 2;
  6324.  
  6325. _name = if(getPlayerUID _player == "")then{""}else{name _player};
  6326.  
  6327. _log = format["%1 %2 @%3 %4 BY %5(%6)", typeOf _vehicle, _lock, mapGridPosition _vehicle, getPosATL _vehicle, _name, getPlayerUID _player];
  6328. ["LockUnlockVehicle",_log] call fn_custom_log;
  6329. };
  6330. "PVAHR_0_INFI_LOCAL_LOCKUNLOCK" addPublicVariableEventHandler {(_this select 1) call fn_infiSTAR_logLock};
  6331. fn_infiSTAR_local_lockUnlock = {
  6332. private ["_vehicle","_status","_lock"];
  6333. _vehicle = _this select 0;
  6334. _status = _this select 1;
  6335. _lock = if(_status)then{"LOCKED"}else{"UNLOCKED"};
  6336.  
  6337. if(local _vehicle)then
  6338. {
  6339. _vehicle setVehicleLock _lock;
  6340.  
  6341. if(isServer)then
  6342. {
  6343. _log = format["%1 %2 @%3 %4", typeOf _vehicle, _lock, mapGridPosition _vehicle, getPosATL _vehicle];
  6344. ["LockUnlockVehicle",_log] call fn_custom_log;
  6345. }
  6346. else
  6347. {
  6348. PVAHR_0_INFI_LOCAL_LOCKUNLOCK = [_vehicle,_lock,player];
  6349. publicVariableServer "PVAHR_0_INFI_LOCAL_LOCKUNLOCK";
  6350. };
  6351. };
  6352. };
  6353. publicVariable "fn_infiSTAR_local_lockUnlock";
  6354. local_lockUnlock = fn_infiSTAR_local_lockUnlock;
  6355. };
  6356. BIS_Effects_Burn={};
  6357. infiSTAR_INIT = true;
  6358. diag_log ('<infiSTAR.de> AntiHack FULLY LOADED');
  6359. /* ********************************************************************************* */
  6360. /* *********************************www.infiSTAR.de********************************* */
  6361. /* *******************Developed by infiSTAR (infiSTAR23@gmail.com)****************** */
  6362. /* **************infiSTAR Copyright®© 2011 - 2017 All rights reserved.************** */
  6363. /* ********************************************************************************* */
  6364. /* ****DayZAntiHack.com***DayZAntiHack.de***ArmaAntiHack.com***Arma3AntiHack.com**** */
Add Comment
Please, Sign In to add comment