Guest User

Untitled

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