Guest User

Untitled

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