Guest User

Untitled

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