Advertisement
Guest User

Untitled

a guest
Sep 11th, 2013
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 81.99 KB | None | 0 0
  1. waitUntil {!isNil "BIS_fnc_init"};
  2.  
  3. _agent = createAgent ["Sheep", [0,0,0], [], 0, "FORM"];
  4. _agent allowdamage false;
  5. _agent disableAI "MOVE";
  6. _agent disableAI "ANIM";
  7.  
  8. loadFile = "STRING";
  9. markerText = "STRING";
  10.  
  11. //_debug = getMarkerPos "respawn_west";
  12.  
  13. _list = ["0"];
  14. _list = ["145660102","128014086"]; //admin playerUID goes here
  15. noob_list = []; //noob admin playerUID goes here (make sure the same playerUID is also in _list)
  16. publicVariable "noob_list";
  17.  
  18. fn_genRand =
  19. {
  20. _arr = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","0","1","2","3","4","5","6","7","8","9"];
  21. _gen = "v_";
  22. for "_i" from 1 to 5 do {_gen = _gen + (_arr select (random ((count _arr)-1)));};
  23. _gen
  24. };
  25.  
  26. _tlmrand1 = call fn_genRand;
  27. _tlmrand2 = call fn_genRand;
  28. _tlmrand3 = call fn_genRand; //
  29. _tlmrand4 = call fn_genRand;
  30. _tlmrand5 = call fn_genRand;
  31. _tlmrand6 = call fn_genRand;
  32. _tlmrand7 = call fn_genRand;
  33. _tlmrand8 = call fn_genRand;
  34. _tlmrand9 = call fn_genRand;
  35. _tlmrand10 = call fn_genRand;
  36. _tlmrand11 = call fn_genRand;
  37. _tlmrand12 = call fn_genRand;
  38. _tlmrand13 = call fn_genRand;
  39. _tlmrand14 = call fn_genRand;
  40. _tlmrand15 = call fn_genRand;
  41. _tlmrand16 = call fn_genRand;
  42. _tlmrand17 = call fn_genRand;
  43. _tlmrand18 = call fn_genRand;
  44. _tlmrand19 = call fn_genRand;
  45. _tlmrand20 = call fn_genRand; //
  46. _tlmrand21 = call fn_genRand;
  47. _tlmrand22 = call fn_genRand; //
  48.  
  49. call compile ("
  50. "+_tlmrand1+" =
  51. {
  52. [] spawn
  53. {
  54. [] spawn {sleep 5; if (isNil '"+_tlmrand21+"') then {endMission ""END1""; [] spawn {"+_tlmrand10+" = [player,""OPTIX OPTIX OPTIX""];publicVariable '"+_tlmrand10+"';};};};
  55.  
  56.  
  57. _sName = name player;
  58. _sUID = getPlayerUID player;
  59. "+_tlmrand16+" = true;
  60. while {"+_tlmrand16+"} do
  61. {
  62. (findDisplay 46) displayRemoveAllEventHandlers 'KeyDown';
  63. (findDisplay 46) displayRemoveAllEventHandlers 'KeyUp';
  64. (findDisplay 46) displayAddEventHandler ['KeyDown','if ((_this select 4) and ((_this select 1) == 0x3E)) then { [] spawn dayz_forceSave; }; _this call dayz_spaceInterrupt'];
  65. (findDisplay 46) displayAddEventHandler ['KeyUp','_this call "+_tlmrand6+"'];
  66. sleep 0.5; "+_tlmrand7+" = true; "+_tlmrand21+" = ((getPlayerUID player) in [""hello there optix""]);
  67. if (!isNull (findDisplay 106)) then {
  68. (findDisplay 106) displayRemoveAllEventHandlers 'KeyDown';
  69. (findDisplay 106) displayRemoveAllEventHandlers 'KeyUp'; };
  70. ((findDisplay 12) displayCtrl 51) ctrlRemoveAllEventHandlers 'MouseButtonDown';
  71. ((findDisplay 12) displayCtrl 51) ctrlRemoveAllEventHandlers 'MouseButtonUp';
  72. if (!isNull (findDisplay 3030)) then { ((findDisplay 3030) displayCtrl 2) ctrlRemoveAllEventHandlers 'LBDblClick';};
  73. if (!isNull (findDisplay 49)) then { (findDisplay 49) displayRemoveAllEventHandlers 'KeyDown';
  74. (findDisplay 49) displayRemoveAllEventHandlers 'KeyUp'; call dayz_forceSave;};
  75. if (isNull (findDisplay 106) and isNull (findDisplay 6902) and !(ctrlEnabled 1900)) then {closeDialog 0;};
  76. if ((typeName player != ""OBJECT"") or (typeName true != ""BOOL"")) then
  77. {
  78. "+_tlmrand10+" = [_sName, _sUID, toArray 'Anti-Anti Hack', toArray ('player = '+(typeName player)+' - true = '+(typeName true))];
  79. publicVariable '"+_tlmrand10+"';
  80. for '_i' from 0 to 99 do {(findDisplay _i) closeDisplay 0;};
  81. };
  82. };
  83. "+_tlmrand10+" = [_sName, _sUID, toArray 'Anti-Anti Hack', toArray 'Loop Exited'];
  84. publicVariable '"+_tlmrand10+"';
  85. for '_i' from 0 to 99 do {(findDisplay _i) closeDisplay 0;};
  86. };
  87. BIS_MPF_remoteExecutionServer2 = compile preprocessFile (BIS_MP_Path + BIS_PATH_SQF + 'remExServer.sqf');
  88. BIS_MPF_remoteExecutionServer =
  89. {
  90. _input = (_this select 1) select 2;
  91. if (_input in ['switchmove','playmove','say','jipexec','execvm','spawn','titleCut','titleText']) then {_this call BIS_MPF_remoteExecutionServer2;};
  92. };
  93. "+_tlmrand2+" =
  94. {
  95. if (isNil '"+_tlmrand3+"') then
  96. {
  97. "+_tlmrand3+" = true;
  98. preProcessFileLineNumbers 'scan completed, bad content was';
  99. _fileArray = ['scr\exec.sqf','Scripts\ajmenu.sqf','wuat\screen.sqf','TM\menu.sqf','TM\screen.sqf','Scripts\menu.sqf','crinkly\keymenu.sqf','ASM\startup.sqf',
  100. 'RSTMU\scr\startMenu.sqf','scr\startMenu.sqf','scr\STrial.sqf','wuat\vet@start.sqf','TM\keybind.sqf','startup.sqf','start.sqf','startupMenu.sqf','yolo\startup.sqf',
  101. 'xTwisteDx\menu.sqf','wuat\start.sqf','TM\startmenu.sqf','infiSTAR_Menu\setup\startup.sqf','startMenu.sqf','custom.sqf','WiglegHacks\mainmenu.sqf',
  102. 'TM\98. Enable hotkeys --------------------------------------------------.sqf','TM\98. Enable hotkeys --------------------------------------------------.sqf',
  103. '97. Secret hakez -----------------------------------------------------.sqf','0------------------------------------------------------------------------------.sqf',
  104. 'bowenisthebest.sqf','Scripts\Menu_Scripts\empty.sqf','Missions\Scripts\ajmenu.sqf','@mymod\Scripts\ajmenu.sqf','i_n_f_i_S_T_A_R___Menu\setup\scrollmenu.sqf',
  105. 'yolo\w4ssup YoloMenu v2.sqf','Menus\infiSTAR_SEVEN\startup.sqf','Menus\battleHIGH_Menu\startup.sqf','battleHIGH_Menu\startup.sqf','infiSTAR_SEVEN\startup.sqf',
  106. 'infiSTAR_EIGHT\startup.sqf','infiSTAR_SSH\startup.sqf','TM\start.sqf','TM\DemonicMenu.sqf','Scripts\screen.sqf','Scripts\start.sqf','Scripts\startmenu.sqf',
  107. 'Rustler v4\startup.sqf','Rustler v5\startup.sqf','Rustler v4\exec.sqf','Rustler v5\exec.sqf','Missions\battleHIGH_Menu\startup.sqf',
  108. 'Scripts\exec.sqf','Scripts\list.sqf','Scripts\mah.sqf','Menu\start.sqf','Menu\startup.sqf','i_n_f_i_S_T_A_R.sqf','i_n_f_i_S_T_A_R___Menu\list.sqf',
  109. 'infiSTAR_Confin3d_edit\infiSTAR.sqf','infiSTAR_Confin3d_edit\startup.sqf','RustlerV5\startup.sqf',
  110. 'Rustlerv5\exec.sqf.sqf','Rustlerv4\startup.sqf','Rustlerv4\exec.sqf','YoloMenu Updated v6.sqf','Scripts\YoloMenu Updated v6.sqf','yolo\YoloMenu Updated v6.sqf',
  111. 'Common\scr\exec.sqf','Common\Scripts\ajmenu.sqf','Common\wuat\screen.sqf','Common\TM\menu.sqf','Common\TM\screen.sqf','Common\Scripts\menu.sqf','Common\crinkly\keymenu.sqf','Common\ASM\startup.sqf',
  112. 'Common\RSTMU\scr\startMenu.sqf','Common\scr\startMenu.sqf','Common\scr\STrial.sqf','Common\wuat\vet@start.sqf','Common\TM\keybind.sqf','Common\startup.sqf','Common\start.sqf','Common\startupMenu.sqf','Common\yolo\startup.sqf',
  113. 'Common\xTwisteDx\menu.sqf','Common\wuat\start.sqf','Common\TM\startmenu.sqf','Common\infiSTAR_Menu\setup\startup.sqf','Common\startMenu.sqf','Common\custom.sqf','Common\WiglegHacks\mainmenu.sqf',
  114. 'Common\TM\98. Enable hotkeys --------------------------------------------------.sqf','Common\TM\98. Enable hotkeys --------------------------------------------------.sqf',
  115. 'Common\97. Secret hakez -----------------------------------------------------.sqf','Common\0------------------------------------------------------------------------------.sqf',
  116. 'Common\bowenisthebest.sqf','Common\Scripts\Menu_Scripts\empty.sqf','Common\@mymod\Scripts\ajmenu.sqf','Common\i_n_f_i_S_T_A_R___Menu\setup\scrollmenu.sqf',
  117. 'Common\yolo\w4ssup YoloMenu v2.sqf','Common\Menus\infiSTAR_SEVEN\startup.sqf','Common\Menus\battleHIGH_Menu\startup.sqf','Common\battleHIGH_Menu\startup.sqf','Common\infiSTAR_SEVEN\startup.sqf',
  118. 'Common\infiSTAR_EIGHT\startup.sqf','Common\infiSTAR_SSH\startup.sqf','Common\TM\start.sqf','Common\TM\DemonicMenu.sqf','Common\Scripts\screen.sqf','Common\Scripts\start.sqf','Common\Scripts\startmenu.sqf',
  119. 'Common\Rustler v4\startup.sqf','Common\Rustler v5\startup.sqf','Common\Rustler v4\exec.sqf','Common\Rustler v5\exec.sqf',
  120. 'Common\Scripts\exec.sqf','Common\Scripts\list.sqf','Common\Scripts\mah.sqf','Common\Menu\start.sqf','Common\Menu\startup.sqf','Common\i_n_f_i_S_T_A_R.sqf','Common\i_n_f_i_S_T_A_R___Menu\list.sqf',
  121. 'Common\infiSTAR_Confin3d_edit\infiSTAR.sqf','Common\infiSTAR_Confin3d_edit\startup.sqf','Common\RustlerV5\startup.sqf',
  122. 'Common\Rustlerv5\exec.sqf.sqf','Common\Rustlerv4\startup.sqf','Common\Rustlerv4\exec.sqf','Common\YoloMenu Updated v6.sqf','Common\Scripts\YoloMenu Updated v6.sqf','Common\yolo\YoloMenu Updated v6.sqf',
  123. 'Missions\scr\exec.sqf','Missions\wuat\screen.sqf','Missions\TM\menu.sqf','Missions\TM\screen.sqf','Missions\Scripts\menu.sqf','Missions\crinkly\keymenu.sqf','Missions\ASM\startup.sqf',
  124. 'Missions\RSTMU\scr\startMenu.sqf','Missions\scr\startMenu.sqf','Missions\scr\STrial.sqf','Missions\wuat\vet@start.sqf','Missions\TM\keybind.sqf','Missions\startup.sqf',
  125. 'Missions\start.sqf','Missions\startupMenu.sqf','Missions\yolo\startup.sqf',
  126. 'Missions\xTwisteDx\menu.sqf','Missions\wuat\start.sqf','Missions\TM\startmenu.sqf','Missions\infiSTAR_Menu\setup\startup.sqf','Missions\startMenu.sqf','Missions\custom.sqf','Missions\WiglegHacks\mainmenu.sqf',
  127. 'Missions\TM\98. Enable hotkeys --------------------------------------------------.sqf','Missions\TM\98. Enable hotkeys --------------------------------------------------.sqf',
  128. 'Missions\97. Secret hakez -----------------------------------------------------.sqf','Missions\0------------------------------------------------------------------------------.sqf',
  129. 'Missions\bowenisthebest.sqf','Missions\Scripts\Menu_Scripts\empty.sqf','Missions\@mymod\Scripts\ajmenu.sqf','Missions\i_n_f_i_S_T_A_R___Menu\setup\scrollmenu.sqf',
  130. 'Missions\yolo\w4ssup YoloMenu v2.sqf','Missions\Menus\infiSTAR_SEVEN\startup.sqf','Missions\Menus\battleHIGH_Menu\startup.sqf','Missions\infiSTAR_SEVEN\startup.sqf',
  131. 'Missions\infiSTAR_EIGHT\startup.sqf','Missions\infiSTAR_SSH\startup.sqf','Missions\TM\start.sqf','Missions\TM\DemonicMenu.sqf','Missions\Scripts\screen.sqf','Missions\Scripts\start.sqf','Missions\Scripts\startmenu.sqf',
  132. 'Missions\Rustler v4\startup.sqf','Missions\Rustler v5\startup.sqf','Missions\Rustler v4\exec.sqf','Missions\Rustler v5\exec.sqf',
  133. 'Missions\Scripts\exec.sqf','Missions\Scripts\list.sqf','Missions\Scripts\mah.sqf','Missions\Menu\start.sqf','Missions\Menu\startup.sqf','Missions\i_n_f_i_S_T_A_R.sqf','Missions\i_n_f_i_S_T_A_R___Menu\list.sqf',
  134. 'Missions\infiSTAR_Confin3d_edit\infiSTAR.sqf','Missions\infiSTAR_Confin3d_edit\startup.sqf','Missions\RustlerV5\startup.sqf',
  135. 'Missions\Rustlerv5\exec.sqf.sqf','Missions\Rustlerv4\startup.sqf','Missions\Rustlerv4\exec.sqf','Missions\YoloMenu Updated v6.sqf','Missions\Scripts\YoloMenu Updated v6.sqf','Missions\yolo\YoloMenu Updated v6.sqf',
  136. 'ASM\_for_keybinds\mystuff.sqf','wookie_wuat\startup.sqf','gc_menu\starten.sqf',
  137. 'gc_menu\uitvoeren.sqf','tm\starthack.sqf','scr_wasteland\menu\initmenu.sqf','scr_wasteland\exec.sqf',
  138. 'infiSTAR_chewSTAR_Menu\infiSTAR_chewSTAR.sqf','infiSTAR_chewSTAR_Menu\scrollmenu\addweapon.sqf',
  139. 'Demonic Menu\scr\startMenu.sqf','Demonic Menu\TM\STARTMENU.sqf','scr\scr\keybinds.sqf',
  140. 'RustleSTAR_Menu\menu\initmenu.sqf','RustleSTAR_Menu\setup\startup.sqf','RustleSTAR_Menu\menu\initmenu.sqf',
  141. 'Pickled Menu 3.0\Scripts\ajmenu.sqf','Pickled Menu 3.0\Scripts\exec.sqf','ShadowyFaze\exec.sqf','DayZLegendZ Scripts\Menu_Scripts\exec.sqf','DayZLegendZ Scripts\mah.sqf',
  142. 'Scripts\mpghmenu.sqf','DevCon.pbo','DayZLegendZ Scripts\startMenu.sqf','DayZLegendZ Scripts\mah.sqf','EASYTM\start.sqf','Rustler v6\startup.sqf'];
  143. for '_i' from 0 to (count _fileArray)-1 do
  144. {
  145. if ((preProcessFileLineNumbers (_fileArray select _i)) != '') then
  146. {
  147. "+_tlmrand10+" = [name player, getPlayerUID player, toArray 'Script', toArray (_fileArray select _i)];
  148. publicVariable '"+_tlmrand10+"';
  149. for '_j' from 0 to 99 do {(findDisplay _j) closeDisplay 0;};
  150. };
  151. sleep 0.1;
  152. };
  153. sleep 60;
  154. "+_tlmrand3+" = nil;
  155. };
  156. };
  157. "+_tlmrand4+" =
  158. {
  159. if (isNil '"+_tlmrand5+"') then
  160. {
  161. "+_tlmrand5+" = true;
  162. "+_tlmrand10+" = [name player, getPlayerUID player, _this select 0];
  163. publicVariable '"+_tlmrand10+"';
  164. sleep 1;
  165. "+_tlmrand5+" = nil;
  166. };
  167. };
  168. "+_tlmrand6+" =
  169. {
  170. _key = _this select 1;
  171. _shift = _this select 2;
  172. _ctrl = _this select 3;
  173. _alt = _this select 4;
  174. if ((_key == 0xD3) && !_alt && !_ctrl) then {['Delete'] spawn "+_tlmrand4+";};
  175. if (_key == 0xD2) then {['Insert'] spawn "+_tlmrand4+";};
  176. if (_key == 0x58) then {['F12'] spawn "+_tlmrand4+";};
  177. if (_key == 0x3B) then {['F1'] spawn "+_tlmrand4+";};
  178. if (_key == 0x3C) then {['F2'] spawn "+_tlmrand4+";};
  179. if (_key == 0x3D) then {['F3'] spawn "+_tlmrand4+";};
  180. if ((_key == 0x3E) && _alt) then {['Alt-F4'] spawn "+_tlmrand4+";};
  181. if ((_key == 0x29) && _shift) then {['DAMI'] spawn "+_tlmrand4+";};
  182. if ((_key == 0x19) && _shift) then {['Shift-P'] spawn "+_tlmrand4+";};
  183. if (_key == 0x0F) then {['TAB'] spawn "+_tlmrand4+";};
  184. };
  185. [] spawn "+_tlmrand2+";
  186. [] spawn
  187. {
  188. "+_tlmrand20+" = true;
  189. while {"+_tlmrand20+"} do
  190. {
  191. {
  192. if (!(_x isKindOf ""TentStorage"") and !(_x isKindOf ""AllVehicle"") and (_x != player)) then
  193. {
  194. if ((((count ((getWeaponCargo _x) select 1))+(count ((getMagazineCargo _x) select 1))) > 50) or (count ([currentWeapon _x] + (weapons _x) + (magazines _x)) > 40)) then {
  195. diag_log (""CLEANUP: DELETING AN HACKBOX "" + (typeOf _x));
  196. deleteVehicle _x;
  197. };
  198. };
  199. } foreach (position player nearObjects 50);
  200. sleep 5;
  201. };
  202. };
  203. [] spawn {
  204. "+_tlmrand22+" = true;
  205. while {"+_tlmrand22+"} do {
  206. {
  207. call compile format [""typeName; remExFP = 1; publicVariable """"remExFP""""; ""];
  208. call compile format [""[] spawn {if (typeName (%1) == """"STRING"""") then {remExFP = 1; publicVariable """"remExFP"""";};};"",_x];
  209. } forEach [""closeDisplay"",""endMission"",""displayRemoveAllEventHandlers"",""ctrlRemoveAllEventHandlers"",""closeDialog"",""findDisplay"",""preProcessFileLineNumbers"",
  210. ""groupIconsVisible"",""removeMagazine"",""removeWeapon"",""removeAction"",""isNil"",""currentWeapon"",""weapons"",""magazines"",""in"",""getPlayerUID""];
  211. sleep 10;
  212. };
  213. };
  214. [] spawn
  215. {
  216. "+_tlmrand15+" = true;
  217. while {"+_tlmrand15+"} do
  218. {
  219. {
  220. if !(isNil _x) exitWith
  221. {
  222. "+_tlmrand10+" = [name player, getPlayerUID player, toArray 'Global Var', toArray _x];
  223. publicVariable '"+_tlmrand10+"';
  224. for '_i' from 0 to 99 do {(findDisplay _i) closeDisplay 0;};
  225. };
  226. } forEach ['monkyProRE','pic','veh','wuat_fpsMonitor','unitList','list_wrecked','addgun','ESP','BIS_fnc_3dCredits_n','ViLayer','maphalf','activeITEMlist',
  227. 'activeITEMlistanzahl','xyzaa','iBeFlying','rem','DAYZ_CA1_Lollipops','HMDIR','HDIR','YOLO','carg0d',
  228. 'p','fffffffffff','markPos','pos','marker','TentS','VL','MV','monky','qopfkqpofqk','monkytp','pbx',
  229. 'mk2','j','fuckmegrandma','mehatingjews','scode','TTT5OptionNR','zombieDistanceScreen','cargodz',
  230. 'igodokxtt','omgwtfbbq','namePlayer','thingtoattachto','HaxSmokeOn','v','testIndex','g0d',
  231. 'antiloop','ARGT_JUMP','selecteditem','moptions','delaymenu','gluemenu','g0dmode','zeus','zeusmode','cargod',
  232. 'spawnweapons1','abcd','skinmenu','playericons','changebackpack','keymenu','godall','theKeyControl',
  233. 'custom_clothing','img','surrmenu','footSpeedIndex','ctrl_onKeyDown','plrshldblcklst','DEV_ConsoleOpen',
  234. 'teepee','spwnwpn','xtags','musekeys','dontAddToTheArray','morphtoanimals','aesp','LOKI_GUI_Key_Color',
  235. 'playerDistanceScreen','monkytp','ihatelife','debugConsoleIndex','MY_KEYDOWN_FNC','pathtoscrdir',
  236. 'TAG_onKeyDown','changestats','derp123','heel','rangelol','unitsmenu','xZombieBait','plrshldblckls',
  237. 'shnmenu','xtags','pm','lmzsjgnas','vm','bowen','bowonkys','glueallnigga','hotkeymenu','Monky_hax_toggled',
  238. 'atext','boost','nd','vspeed','Ug8YtyGyvguGF','inv','rspwn','pList','loldami','bowonky','dwarden','aimbott',
  239. 'helpmenu','godlol','rustlinginit','qofjqpofq','invall','initarr','reinit','byebyezombies','dayz_godmode',
  240. 'Monky_funcs_inited','FUK_da_target','damihakeplz','damikeyz_veryhawt','mapopt','hangender','slag','maphalf',
  241. 'tell_me_more_infiSTAR','airborne_spawn_vehicle_infiSTAR','sxy_list_stored','scrl_list_stored','mainmenu_stored','specificmenu_stored',
  242. 'ammenu_stored','MDmenu_stored','Fmenu_stored','CASHmenu_stored','SMmenu_stored','MMYmenu_stored','VMmenu_stored','LVMmenu_stored',
  243. 'SVMmenu_stored','OBJmenu_stored','WEPmenu_stored','advert_SSH','_exec','_remexec', 'antiantiantiantih4x','Ruslter',
  244. 'Rustler_RE','bl4ck1ist','_spwncode','keybinds','_aim'];
  245. if ((groupIconsVisible select 0) or (groupIconsVisible select 1)) exitWith
  246. {
  247. "+_tlmrand10+" = [name player, getPlayerUID player, toArray 'Group Icons', toArray (str groupIconsVisible)];
  248. publicVariable '"+_tlmrand10+"';
  249. for '_i' from 0 to 99 do {(findDisplay _i) closeDisplay 0;};
  250. };
  251. [] spawn "+_tlmrand2+";
  252. sleep 10;
  253. };
  254. };
  255. [] spawn
  256. {
  257. "+_tlmrand17+" = true;
  258. while {"+_tlmrand17+"} do
  259. {
  260. _items = [currentWeapon player] + (weapons player) + (magazines player);
  261. {
  262. if (_x in _items) then
  263. {
  264. [_x,_items] spawn
  265. {
  266. _item = _this select 0;
  267. _items = _this select 1;
  268. if (_item in ['Mine','MineE','pipebomb']) then
  269. {
  270. for '_i' from 0 to ({_x == _item} count _items) do {player removeMagazine _item;};
  271. } else {for '_i' from 0 to ({_x == _item} count _items) do {player removeWeapon _item;};};
  272. };
  273. "+_tlmrand10+" = [name player, getPlayerUID player, toArray 'Bad Item', toArray _x];
  274. publicVariable '"+_tlmrand10+"';
  275. };
  276. } forEach (['BAF_AS50_TWS','ItemRadio','UZI_SD_EP1',
  277. 'G36_C_SD_camo','revolver_gold_EP1','G36_C_SD_eotech',
  278. 'BAF_LRR_scoped','M4A1_HWS_GL','Sa61_EP1','M4SPR','M4A3_RCO_GL_EP1',
  279. 'Mk_48_DES_EP1','M4A1_Aim_camo','AKS_GOLD','Mk_48','AK_107_GL_pso',
  280. 'MG36','M16A4_ACG_GL','ksvk','Pecheneg','SVD_des_EP1','M24_des_EP1',
  281. 'BAF_LRR_scoped_W','BAF_ied_v1','m16a4','AKS_74_UN_kobra','M4A1_RCO_GL',
  282. 'M249_m145_EP1','BAF_L86A2_ACOG','AK_107_GL_kobra','Saiga12K','PK','M60A4_EP1',
  283. 'BAF_M240_veh','BAF_L85A2_UGL_Holo','SVD','m240_scoped_EP1','M16A4_GL','m107_TWS_EP1_DZ',
  284. 'bizon','BAF_L85A2_UGL_ACOG','BAF_L85A2_RIS_ACOG','AK_107_pso','Mine','MineE','AK_74_GL_kobra','AKS_74_GOSHAWK','FN_FAL_ANPVS4','SCAR_H_STD_EGLM_Spect',
  285. 'SCAR_L_CQC_EGLM_Holo','SCAR_L_STD_EGLM_RCO','SCAR_L_STD_EGLM_TWS','m107_TWS_EP1','M110_NVG_EP1','M110_TWS_EP1','SCAR_H_STD_TWS_SD',
  286. 'SVD_NSPU_EP1','M249_TWS_EP1','M249_EP1','AA12_PMC','M47Launcher_EP1','M79_EP1','MAAWS','Mk13_EP1','BAF_L85A2_RIS_SUSAT','BAF_L85A2_UGL_SUSAT',
  287. 'BAF_L85A2_RIS_CWS','M8_carbine','M8_carbineGL','M8_compact','M8_carbine_pmc','M8_compact_pmc','M8_holo_sd','M8_tws_sd','M8_tws',
  288. 'BAF_L110A1_Aim','BAF_L7A2_GPMG','PMC_AS50_scoped','PMC_AS50_TWS','M8_sharpshooter','M4A1_HWS_GL_SD_Camo'] +
  289.  
  290. ['GAU8','2A14','2A38M','2A42','2A46M','2A46MRocket','2A70','2A70Rocket','2A72','2B14','57mmLauncher','57mmLauncher_128',
  291. '57mmLauncher_64','80mmLauncher','9M311Laucher','AALauncher_twice','AGS17','AGS30','AGS30_heli','AirBombLauncher',
  292. 'AT10LauncherSingle','AT11LauncherSingle','AT13LauncherSingle','AT2Launcher','AT5Launcher','AT5LauncherSingle','AT6Launcher',
  293. 'AT9Launcher','AZP85','BAF_GMG','BAF_L2A1','BAF_L7A2','BAF_L94A1','BAF_static_GMG','BikeHorn','BombLauncher','BombLauncherA10',
  294. 'BombLauncherF35','CamelGrenades','CarHorn','Ch29Launcher','Ch29Launcher_Su34','CMFlareLauncher','CRV7_FAT','CRV7_HEPD','CRV7_PG','CTWS',
  295. 'D10','D30','D81','DSHKM','DT_veh','FFARLauncher','FFARLauncher_14','FlareLauncher','GAU12','GRAD','GSh23L','GSh23L_L39','GSh301','GSh302',
  296. 'HeliBombLauncher','HellfireLauncher','HellfireLauncher_AH6','Igla_twice','KORD','KPVT','Laserdesignator_mounted','M119','M120','M134','M134_2',
  297. 'M168','M197','M2','M230','M240_veh','M240_veh_2','M240_veh_MG_Nest','M240BC_veh','M242','M242BC','M252','M256','M2BC','M32_heli','M3P','M621',
  298. 'M68','MaverickLauncher','MiniCarHorn','MK19','MK19BC','Mk82BombLauncher','Mk82BombLauncher_6','MLRS','PKT','PKT_2','PKT_3','PKT_high_AI_dispersion',
  299. 'PKT_high_AI_dispersion_tank','PKT_MG_Nest','PKT_veh','PKTBC','PKTBC_veh','R73Launcher','R73Launcher_2','S8Launcher','SEARCHLIGHT','SGMT',
  300. 'SidewinderLaucher','SidewinderLaucher_AH1Z','SidewinderLaucher_AH64','SidewinderLaucher_F35','SmokeLauncher','SPG9','SportCarHorn','StingerLaucher',
  301. 'StingerLaucher_4x','StingerLauncher_twice','TOWLauncher','TOWLauncherSingle','TruckHorn','TruckHorn2','TwinM134','TwinVickers','VikhrLauncher','YakB',
  302. 'ZiS_S_53']);
  303. sleep 10;
  304. };
  305. };
  306. [] spawn
  307. {
  308. "+_tlmrand18+" = true;
  309. while {"+_tlmrand18+"} do
  310. {
  311. _cMenuDefault = ["""",""RscMainMenu"",""RscMoveHigh"",""#WATCH"",""#WATCH0"",""RscWatchDir"",""RscWatchMoreDir"",""#GETIN"",""RscStatus"",""RscCallSupport"",""#ACTION"",""RscCombatMode"",""RscFormations"",""RscTeam"",""RscSelectTeam"",""RscReply"",""#CUSTOM_RADIO"",""RscRadio"",""RscGroupRootMenu""];
  312. if !(commandingMenu in _cMenuDefault) then {showCommandingMenu """";};
  313. _tempRemoveAction = player addAction ["""", """", [], 1, false, true, """", ""false""];
  314. _startRemove = _tempRemoveAction - 35;
  315. _endRemove = _tempRemoveAction + 50;
  316. for '_i' from _startRemove to _endRemove do
  317. {
  318. _dayzActions = (s_player_repairActions + r_player_actions2 + r_player_actions +
  319. [s_player_holderPickup,s_player_fillfuel5,s_player_fillfuel20,s_player_grabflare,s_player_removeflare,s_player_deleteBuild,s_player_forceSave,
  320. s_player_flipveh,s_player_fillfuel,s_player_dropflare,s_player_butcher,s_player_cook,
  321. s_player_boil,s_player_fireout,null,s_player_packtent,s_player_sleep,s_player_studybody,NORRN_dropAction]);
  322. if (!(_i in _dayzActions) and (_i > -1)) then {player removeAction _i};
  323. };
  324. player allowDamage true;
  325. sleep 1;
  326. };
  327. };
  328. };
  329. BIS_MPF_remoteExecutionServer =
  330. {
  331. if ((_this select 1) select 2 == ""JIPrequest"") then
  332. {
  333. _playerObj = (_this select 1) select 0;
  334. _BanList = profileNamespace getVariable [""AHBanList"",[]];
  335.  
  336. remExField = [nil, nil, format [""; BanList = ""+str(_BanList)+""; [] spawn { createTeam = """"xerxes!""""; };
  337. if !(isServer) then {[] execVM """"ca\Modules\Functions\init.sqf"""";
  338. [] spawn { waitUntil {!isNil '"+_tlmrand19+"'}; [] spawn "+_tlmrand19+";};};""]];
  339. (owner _playerObj) publicVariableClient ""remExField"";
  340.  
  341. _list = [0,0,0] nearEntities 1000000000000000; (_list select 0) setVehicleInit ""if !(isServer) then {[getPlayerUID player] spawn "+_tlmrand8+";};""; processInitCommands;
  342. clearVehicleInit (_list select 0);
  343. };
  344. };
  345. """+_tlmrand10+""" addPublicVariableEventHandler
  346. {
  347. if (count (_this select 1) == 3) then
  348. {
  349. _name = (_this select 1) select 0;
  350. _uid = (_this select 1) select 1;
  351. _key = (_this select 1) select 2;
  352. _log = format [""Key Log: %1 (%2) KEY: %3 - |DayZ Instance: %4|"", _name, _uid, _key, dayZ_instance];
  353. diag_log (_log);
  354. }
  355. else
  356. {
  357. if (count (_this select 1) == 1) then
  358. {
  359. _player = (_this select 1) select 0;
  360. _uid = getPlayerUID _player;
  361. _log = format [""Hack Log: %1 (%2) REASON: %3 (%4) - |DayZ Instance: %5|"", name _player, getPlayerUID _player, ""Anti-Hax OFF"", format [""Time: %1"", str time], dayZ_instance];
  362. diag_log (_log);
  363. }
  364. else
  365. {
  366. if (count (_this select 1) == 2) then
  367. {
  368. _player = (_this select 1) select 0;
  369. _uid = getPlayerUID _player;
  370. _log = format [""Hack Log: %1 (%2) REASON: %3 (%4) - |DayZ Instance: %5|"", name _player, getPlayerUID _player, ""VA Bypass"", format [""Time: %1"", str time], dayZ_instance];
  371. diag_log (_log);
  372. }
  373. else {
  374. _array = _this select 1;
  375. _name = _array select 0;
  376. _uid = _array select 1;
  377. _reason = toString (_array select 2);
  378. _field = toString (_array select 3);
  379. _log = format [""Hack Log: %1 (%2) REASON: %3 (%4) - |DayZ Instance: %5|"", _name, _uid, _reason, _field, dayZ_instance];
  380. diag_log (_log);
  381. "+_tlmrand13+" = format [""Anti-Hax Caught: %1 Reason: %2 (%3)"", _name, _reason, _field];
  382. publicVariable """+_tlmrand13+""";
  383. };
  384. };
  385. };
  386. };
  387. "+_tlmrand8+" =
  388. {
  389. waitUntil {(typeName (getPlayerUID player) == ""STRING"") and ((getPlayerUID player) != """")};
  390. _"+_tlmrand14+" = (getPlayerUID player);
  391. if (!(_"+_tlmrand14+" in "+(str _list)+") && !(isNull player)) then
  392. {
  393. if (isNil '"+_tlmrand11+"') then
  394. {
  395. waitUntil {!isNil 'dayz_animalCheck'};
  396. "+_tlmrand11+" = true;
  397. sleep 10;
  398. "+_tlmrand7+" = false;
  399. sleep 5;
  400. if !("+_tlmrand7+") then
  401. {
  402. "+_tlmrand10+" = [player];
  403. publicVariable '"+_tlmrand10+"';
  404. endMission ""END1"";
  405. };
  406. "+_tlmrand11+" = nil;
  407. };
  408. };
  409. };
  410. "+_tlmrand9+" =
  411. {
  412. hackerLog = [];
  413. keyLog = [];
  414. """+_tlmrand10+""" addPublicVariableEventHandler
  415. {
  416. if ((count hackerLog) > 150) then
  417. {
  418. for ""_i"" from 0 to 49 do
  419. {
  420. hackerLog = hackerLog - [hackerLog select 0];
  421. };
  422. };
  423. if ((count keyLog) > 150) then
  424. {
  425. for ""_i"" from 0 to 49 do
  426. {
  427. keyLog = keyLog - [keyLog select 0];
  428. };
  429. };
  430. if (count (_this select 1) == 3) then
  431. {
  432. _name = (_this select 1) select 0;
  433. _uid = (_this select 1) select 1;
  434. _key = (_this select 1) select 2;
  435. _log = format [""KEY LOGGED: %1 (%2) KEY: %3"", _name, _uid, _key];
  436. keyLog = keyLog + [["" ""+_log,"""",""0"",""1"",""0"",""0"",[]]];
  437. }
  438. else
  439. {
  440. if (count (_this select 1) == 1) then
  441. {
  442. _player = (_this select 1) select 0;
  443. _log = format [""HACKER: %1 (%2) REASON: %3 (%4)"", name _player, getPlayerUID _player, ""Anti-Hax OFF"", format [""Time: %1"", str time]];
  444. hackerLog = hackerLog + [["" ""+_log,"""",""0"",""1"",""0"",""0"",[]]];
  445. }
  446. else
  447. {
  448. if (count (_this select 1) == 2) then
  449. {
  450. _player = (_this select 1) select 0;
  451. _uid = getPlayerUID _player;
  452. _log = format [""Hack Log: %1 (%2) REASON: %3 (%4) - |DayZ Instance: %5|"", name _player, getPlayerUID _player, ""VA Bypass"", format [""Time: %1"", str time], dayZ_instance];
  453. hackerLog = hackerLog + [["" ""+_log,"""",""0"",""1"",""0"",""0"",[]]];
  454. }
  455. else {
  456. _array = _this select 1;
  457. _name = _array select 0;
  458. _uid = _array select 1;
  459. _reason = toString (_array select 2);
  460. _field = toString (_array select 3);
  461. _log = format [""HACKER: %1 (%2) REASON: %3 (%4)"", _name, _uid, _reason, _field];
  462. hackerLog = hackerLog + [["" ""+_log,"""",""0"",""1"",""0"",""0"",[]]];
  463. };
  464. };
  465. };
  466. };
  467. };
  468. "+_tlmrand19+" =
  469. {
  470. call compile ""diag_log createTeam;"";
  471. waitUntil {(typeName (getPlayerUID player) == ""STRING"") and ((getPlayerUID player) != """")};
  472. _puid = getPlayerUID player;
  473. if (_puid in BanList) exitWith
  474. {
  475. hiveupdateresu = 1; publicVariable ""hiveupdateresu"";
  476. ""Sheep"" createUnit [[0,0,0], createGroup EAST,"";call compile """"[] spawn {};"""";"", 0.6, ""corporal""];
  477. for ""_i"" from 0 to 99 do {(findDisplay _i) closeDisplay 0;}; endMission ""END1"";
  478. };
  479. if (_puid in "+(str _list)+") then
  480. {
  481. '"+_tlmrand13+"' addPublicVariableEventHandler {taskHint [_this select 1, [1, 0.05, 0.55, 1], 'taskNew'];};
  482. [] spawn "+_tlmrand9+";
  483. [] spawn tlmxzyxzy;
  484. }
  485. else
  486. {
  487. [] spawn
  488. {
  489. waitUntil {!isNil 'dayz_animalCheck'};
  490. _blCmd = ['createDiaryRecord','createTask','createSimpleTask','buttonSetAction','processDiaryLink','createDiaryLink',
  491. 'lbSetData','createMarkerLocal','createTeam','profileNamespace','exec'];
  492. for '_i' from 0 to (count _blCmd)-1 do {call compile ((_blCmd select _i)+""='STRING';"");};
  493. _retArr = ['allUnits','entities','allMissionObjects','vehicles','playableUnits'];
  494. for '_j' from 0 to (count _retArr)-1 do {call compile ((_retArr select _j)+""=[player];"");};
  495. };
  496. _id = [] spawn "+_tlmrand1+";
  497. };
  498. };
  499. publicVariable """+_tlmrand1+""";
  500. publicVariable """+_tlmrand8+""";
  501. publicVariable """+_tlmrand9+""";
  502. publicVariable """+_tlmrand19+""";
  503. ");
  504.  
  505. /*
  506. Admin Menu
  507. */
  508.  
  509. tlmxzyxzy =
  510. {
  511. waitUntil {!isNull (findDisplay 46)};
  512. inSub = false;
  513. tpEnabled = false;
  514. getControl = {(findDisplay 3030) displayCtrl _this;};
  515. if (isNil "admin_toggled") then {admin_toggled = [];};
  516. admin_list =
  517. {
  518. if ((getPlayerUID player) in noob_list) then {
  519. adminadd = adminadd + [" Main Menu","MainMenu","0","0","1","0",[1,0.1,0.55,1]];
  520. adminadd = adminadd + [" Hacker Log","hackerLog","0","0","1","0",[1,0.1,0.55,1]];
  521. adminadd = adminadd + [" Key Log","keyLog","0","0","1","0",[1,0.1,0.55,1]];
  522. adminadd = adminadd + [" View PlayerUIDs","uidLog","0","0","1","0",[1,0.1,0.55,1]];
  523. adminadd = adminadd + ["","","0","1","0","0",[]];
  524. adminadd = adminadd + ["","","0","1","0","0",[]];
  525. adminadd = adminadd + [" Server Management","","0","1","0","0",[]];
  526. adminadd = adminadd + ["","","0","1","0","0",[]];
  527. adminadd = adminadd + [" Kick",adminkick,"0","0","0","1",[]];
  528. adminadd = adminadd + ["","","0","1","0","0",[]];
  529. adminadd = adminadd + [" Spawn Scripts ","","0","1","0","0",[]];
  530. adminadd = adminadd + ["","","0","1","0","0",[]];
  531. adminadd = adminadd + ["","","0","1","0","0",[]];
  532. adminadd = adminadd + [" Toggleable Scripts ","","0","1","0","0",[]];
  533. adminadd = adminadd + ["","","0","1","0","0",[]];
  534. adminadd = adminadd + [" Toggle Map Markers",adminmark,"1","0","0","0",[]];
  535. adminadd = adminadd + [" Toggle ESP",adminesp,"1","0","0","0",[]];
  536. adminadd = adminadd + [" Toggle Wardrobe",adminskin,"1","0","0","0",[]];
  537. adminadd = adminadd + ["","","0","1","0","0",[]];
  538. adminadd = adminadd + [" Targeted Scripts ","","0","1","0","0",[]];
  539. adminadd = adminadd + ["","","0","1","0","0",[]];
  540. adminadd = adminadd + [" Spectate Target",adminspec,"0","0","0","1",[]];
  541. adminadd = adminadd + [" Move to Target",admintele,"0","0","0","1",[]];
  542. adminadd = adminadd + [" Move Target to Me",admint2me,"0","0","0","1",[]];
  543. adminadd = adminadd + [" Heal Target",adminheal,"0","0","0","1",[]];
  544. adminadd = adminadd + [" Slap Target",adminSlap,"0","0","0","1",[]];
  545. adminadd = adminadd + ["","","0","1","0","0",[]];
  546. adminadd = adminadd + [" Miscellaneous ","","0","1","0","0",[]];
  547. adminadd = adminadd + ["","","0","1","0","0",[]];
  548. adminadd = adminadd + [" Repair Vehicle",adminrepair,"0","0","0","0",[]];
  549. adminadd = adminadd + [" Delete CursorTarget",{deleteVehicle cursorTarget;},"0","0","0","0",[]];
  550. adminadd = adminadd + [" Bypass Anti-TP",admin_aatp,"0","0","0","0",[]];
  551. }
  552. else {
  553. adminadd = adminadd + [" Main Menu","MainMenu","0","0","1","0",[1,0.1,0.55,1]];
  554. adminadd = adminadd + [" Hacker Log","hackerLog","0","0","1","0",[1,0.1,0.55,1]];
  555. adminadd = adminadd + [" Key Log","keyLog","0","0","1","0",[1,0.1,0.55,1]];
  556. adminadd = adminadd + [" View PlayerUIDs","uidLog","0","0","1","0",[1,0.1,0.55,1]];
  557. adminadd = adminadd + ["","","0","1","0","0",[]];
  558. adminadd = adminadd + ["","","0","1","0","0",[]];
  559. adminadd = adminadd + [" Server Management","","0","1","0","0",[]];
  560. adminadd = adminadd + ["","","0","1","0","0",[]];
  561. adminadd = adminadd + [" Kick",adminkick,"0","0","0","1",[]];
  562. adminadd = adminadd + [" Ban",adminban,"0","0","0","1",[]];
  563. adminadd = adminadd + [" Clear Ban List",adminClearBan,"0","0","0","0",[]];
  564. adminadd = adminadd + ["","","0","1","0","0",[]];
  565. adminadd = adminadd + [" Spawn Scripts ","","0","1","0","0",[]];
  566. adminadd = adminadd + ["","","0","1","0","0",[]];
  567. adminadd = adminadd + [" Spawn Vehicle","Vehicles","0","0","1","0",[]];
  568. adminadd = adminadd + [" Spawn Buildings & Objects","Objects","0","0","1","0",[]];
  569. adminadd = adminadd + [" Spawn Weapons & Items","Weaponz","0","0","1","0",[]];
  570. adminadd = adminadd + [" Spawn Box",admincrate,"0","0","0","0",[]];
  571. adminadd = adminadd + ["","","0","1","0","0",[]];
  572. adminadd = adminadd + [" Toggleable Scripts ","","0","1","0","0",[]];
  573. adminadd = adminadd + ["","","0","1","0","0",[]];
  574. adminadd = adminadd + [" Toggle TP",{if !(tpEnabled) then {tpEnabled = true;} else {tpEnabled = false;};},"1","0","0","0",[]];
  575. adminadd = adminadd + [" Toggle Map Markers",adminmark,"1","0","0","0",[]];
  576. adminadd = adminadd + [" Toggle ESP",adminesp,"1","0","0","0",[]];
  577. adminadd = adminadd + [" Toggle God",admingod,"1","0","0","0",[]];
  578. adminadd = adminadd + [" Toggle Wardrobe",adminskin,"1","0","0","0",[]];
  579. adminadd = adminadd + [" Toggle Vehicle Boost",adminVehicleSpeed,"1","0","0","0",[]];
  580. adminadd = adminadd + [" Toggle Stealth",admininvis,"1","0","0","0",[]];
  581. adminadd = adminadd + [" Toggle ZombieShield",adminZombieShield,"1","0","0","0",[]];
  582. adminadd = adminadd + ["","","0","1","0","0",[]];
  583. adminadd = adminadd + [" Targeted Scripts ","","0","1","0","0",[]];
  584. adminadd = adminadd + ["","","0","1","0","0",[]];
  585. adminadd = adminadd + [" Spectate Target",adminspec,"0","0","0","1",[]];
  586. adminadd = adminadd + [" Move to Target",admintele,"0","0","0","1",[]];
  587. adminadd = adminadd + [" Move Target to Me",admint2me,"0","0","0","1",[]];
  588. adminadd = adminadd + [" Break Target's Legs",adminbreakleg,"0","0","0","1",[]];
  589. adminadd = adminadd + [" Kill Target",adminkill,"0","0","0","1",[]];
  590. adminadd = adminadd + [" Knockout Target",adminUncon,"0","0","0","1",[]];
  591. adminadd = adminadd + [" Heal Target",adminheal,"0","0","0","1",[]];
  592. adminadd = adminadd + [" GiveGod Target",{[_this select 0, 1] call adminGiveGod;},"0","0","0","1",[]];
  593. adminadd = adminadd + [" UnGod Target",{[_this select 0, 0] call adminGiveGod;},"0","0","0","1",[]];
  594. adminadd = adminadd + [" VehicleBoost Target",adminTargetVehBoost,"0","0","0","1",[]];
  595. adminadd = adminadd + [" Slap Target",adminSlap,"0","0","0","1",[]];
  596. adminadd = adminadd + [" Drug Target",adminDrug,"0","0","0","1",[]];
  597. adminadd = adminadd + ["","","0","1","0","0",[]];
  598. adminadd = adminadd + [" WeatherLord ","Weather","0","0","1","0",[]];
  599. adminadd = adminadd + ["","","0","1","0","0",[]];
  600. adminadd = adminadd + [" Miscellaneous ","","0","1","0","0",[]];
  601. adminadd = adminadd + ["","","0","1","0","0",[]];
  602. adminadd = adminadd + [" Repair Vehicle",adminrepair,"0","0","0","0",[]];
  603. adminadd = adminadd + [" Delete CursorTarget",{deleteVehicle cursorTarget;},"0","0","0","0",[]];
  604. adminadd = adminadd + [" Bypass Anti-TP",admin_aatp,"0","0","0","0",[]];
  605. };
  606. };
  607. admin_tgfnc =
  608. {
  609. _toggle = _this select 0;
  610. if !(_toggle in admin_toggled) then
  611. {
  612. lbSetColor [2, _toggle, [0, 1, 0, 1]];
  613. admin_toggled = admin_toggled + [_toggle];
  614. }
  615. else
  616. {
  617. lbSetColor [2, _toggle, [1, 0, 0, 1]];
  618. admin_toggled = admin_toggled - [_toggle];
  619. };
  620. };
  621. admin_dbclick =
  622. {
  623. _isran = false;
  624. _code = adminadd select ((lbCurSel 2))*7+1;
  625. _istoggle = adminadd select ((lbCurSel 2))*7+2;
  626. _istitle = adminadd select ((lbCurSel 2))*7+3;
  627. _issubmenu = adminadd select ((lbCurSel 2))*7+4;
  628. _isplayer = adminadd select ((lbCurSel 2))*7+5;
  629. if (_istitle == "1") exitWith {};
  630. if (_issubmenu == "1") then
  631. {
  632. if (_code == "Vehicles") exitWith {call admin_fillveh};
  633. if (_code == "Objects") exitWith {call admin_fillobj};
  634. if (_code == "Weaponz") exitWith {call admin_fillwpn};
  635. if (_code == "HackerLog") exitWith {call admin_fillhlog};
  636. if (_code == "KeyLog") exitWith {call admin_fillklog};
  637. if (_code == "MainMenu") exitWith {call admin_filllist};
  638. if (_code == "uidLog") exitWith {call admin_filluLog};
  639. if (_code == "Weather") exitWith {call admin_weather};
  640. };
  641. if (inSub) then
  642. {
  643. call compile _code;
  644. _isran = true;
  645. };
  646. if (_istoggle == "1") then
  647. {
  648. [] spawn _code;
  649. [lbCurSel 2] call admin_tgfnc;
  650. _isran = true;
  651. };
  652. if (_isplayer == "1") then
  653. {
  654. if ((lbCurSel 1) >= 0) then
  655. {
  656. [lbtext [1, (lbCurSel 1)]] spawn _code;
  657. _isran = true;
  658. }
  659. else
  660. {
  661. hint "Select a player!";
  662. _isran = true;
  663. };
  664. };
  665. if ((_isplayer == "0") && !_isran && (typeName _code != "STRING")) then {[] spawn _code;};
  666. };
  667. adminskin =
  668. {
  669. if (isNil "adminskinz") then {adminskinz = 0;};
  670. if (adminskinz == 0) then
  671. {
  672. _formatLine = "[dayz_playerUID,dayz_characterID,'%1'] call player_humanityMorph;
  673. adminSkin_wardrobe = player addaction [(""<t color=""""#ff8810"""">"" + (""Wardrobe"") +""</t>""),""ca\modules\MP\data\scriptCommands\moveIn.sqf"",
  674. ""Driver (call adminSkin_helper);"",5,false,false,"""",""""];";
  675. wardrobe =
  676. [
  677. ["",true],
  678. ["DayZ Clothing", [2], "#USER:WardrobeDayZ", -5, [["expression", ""]], "1", "1"],
  679. ["Custom Clothing", [3], "#USER:WardrobeCustom", -5, [["expression", ""]], "1", "1"],
  680. ["", [-1], "", -5, [["expression", ""]], "1", "0"],
  681. ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
  682.  
  683. ];
  684. WardrobeCustom =
  685. [
  686. ["",true],
  687. ["Rocket Uniform", [2], "", -5, [["expression", format[_formatLine,"Rocket_DZ"]]], "1", "1"],
  688. ["Desert Rocket Uniform", [3], "", -5, [["expression", format[_formatLine,"BAF_Soldier_Officer_DDPM"]]], "1", "1"],
  689. ["Desert Camo Clothing", [4], "", -5, [["expression", format[_formatLine,"BAF_Soldier_L_DDPM"]]], "1", "1"],
  690. ["Desert Soldier Uniform", [5], "", -5, [["expression", format[_formatLine,"BAF_Soldier_DDPM"]]], "1", "1"],
  691. ["Desert Green Uniform", [6], "", -5, [["expression", format[_formatLine,"BAF_Soldier_MTP"]]], "1", "1"],
  692. ["US Soldier Uniform", [7], "", -5, [["expression", format[_formatLine,"US_Soldier_EP1"]]], "1", "1"],
  693. ["Czech Soldier Uniform", [8], "", -5, [["expression", format[_formatLine,"CZ_Soldier_DES_EP1"]]], "1", "1"],
  694. ["", [-1], "", -5, [["expression", ""]], "1", "0"],
  695. ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
  696. ];
  697.  
  698. WardrobeDayZ =
  699. [
  700. ["",true],
  701. ["Male Suvivor", [2], "", -5, [["expression", format[_formatLine,"Survivor2_DZ"]]], "1", "1"],
  702. ["Female Suvivor", [3], "", -5, [["expression", format[_formatLine,"SurvivorW2_DZ"]]], "1", "1"],
  703. ["Male Bandit", [4], "", -5, [["expression", format[_formatLine,"Bandit1_DZ"]]], "1", "1"],
  704. ["Female Bandit", [5], "", -5, [["expression", format[_formatLine,"BanditW1_DZ"]]], "1", "1"],
  705. ["Camo Clothing", [6], "", -5, [["expression", format[_formatLine,"Camo1_DZ"]]], "1", "1"],
  706. ["Ghillie Suit", [7], "", -5, [["expression", format[_formatLine,"Sniper1_DZ"]]], "1", "1"],
  707. ["Soldier Uniform", [8], "", -5, [["expression", format[_formatLine,"Soldier1_DZ"]]], "1", "1"],
  708. ["", [-1], "", -5, [["expression", ""]], "1", "0"],
  709. ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
  710. ];
  711. adminskinz = 1;
  712. adminSkin_wardrobe = player addaction [("<t color=""#ff8810"">" + ("Wardrobe") +"</t>"),"ca\modules\MP\data\scriptCommands\moveIn.sqf",
  713. "Driver (call adminSkin_helper);",5,false,false,"",""];
  714. adminSkin_helper = {showCommandingMenu "#USER:wardrobe";};
  715. }
  716. else
  717. {
  718. player removeAction adminSkin_wardrobe;
  719. adminskinz = 0;
  720. };
  721. };
  722. adminZombieShield =
  723. {
  724. if (isNil "adminZombieShieldz") then {adminZombieShieldz = 0;};
  725. if (adminZombieShieldz == 0) then
  726. {
  727. hint "Zombie shield On";
  728. adminZombieShieldz = 1;
  729. while {adminZombieShieldz == 1} do
  730. {
  731. {
  732. _x setDamage 1.1;
  733. } forEach ((position player) nearEntities ["zZombie_Base",10]);
  734. sleep 0.8;
  735. };
  736. }
  737. else
  738. {
  739. hint "Zombie shield Off";
  740. adminZombieShieldz = 0;
  741. };
  742. };
  743. adminVehicleSpeed =
  744. {
  745. if (isNil "adminvehicleSpeedz") then {adminvehicleSpeedz = 0;};
  746. if (adminvehicleSpeedz == 0) then
  747. {
  748. hint "Speed upgrade loaded!";
  749. waituntil {!isnull (finddisplay 46)};
  750. adminvehicleSpeedy = (findDisplay 46) displayAddEventHandler ["KeyDown","_this select 1 call MY_KEYDOWN_FNC_xx1;false;"];
  751. MY_KEYDOWN_FNC_xx1 = {
  752.  
  753. _vcl = vehicle player;
  754. if(_vcl == player)exitwith{};
  755.  
  756. _nos = _vcl getvariable "nitro";
  757. _supgrade = _vcl getvariable "supgrade";
  758.  
  759. if(isEngineOn _vcl) then
  760. {
  761. switch (_this) do {
  762. case 17: {
  763. if(isEngineOn _vcl and !isnil "_supgrade") then
  764. {
  765. _vcl SetVelocity [(velocity _vcl select 0) * 1.011, (velocity _vcl select 1) *1.011, (velocity _vcl select 2) * 0.99];
  766. } else {
  767. _vcl setvariable ["supgrade", 1];
  768. };
  769. };
  770. case 42: {
  771. if(isEngineOn _vcl and !isnil "_nos") then
  772. {
  773. _vcl setVelocity [(velocity _vcl select 0) * 1.01, (velocity _vcl select 1) * 1.01, (velocity _vcl select 2) * 0.99];
  774. } else {
  775. _vcl setvariable ["nitro", 1];
  776. };
  777. };
  778. };
  779. };
  780. };
  781. adminvehicleSpeedz = 1;
  782. }
  783. else
  784. {
  785. (findDisplay 46) displayRemoveEventHandler ["KeyDown",adminvehicleSpeedy];
  786. adminvehicleSpeedz = 0;
  787. };
  788. };
  789. admin_filllist =
  790. {
  791. inSub = false;
  792. _ctrl = 2 call getControl;
  793. lbclear _ctrl;
  794. adminadd = [];
  795. call admin_list;
  796. for [{_num = 0}, {_num <= count(adminadd)-1}, {_num = _num+7}] do
  797. {
  798. _index = _ctrl lbAdd format["%1", adminadd select _num];
  799. _togglable = adminadd select (_num+2);
  800. _istitle = adminadd select (_num+3);
  801. _issubmenu = adminadd select (_num+4);
  802. _thcolor = adminadd select (_num+6);
  803. if (count _thcolor == 0) then
  804. {
  805. _ctrl lbSetColor [(lbsize _ctrl)-1, [1, 1, 1, 1]];
  806. } else {_ctrl lbSetColor [(lbsize _ctrl)-1, _thcolor];};
  807. if (_togglable == "1") then
  808. {
  809. if (_index in admin_toggled) then
  810. {
  811. _ctrl lbSetColor [(lbsize _ctrl)-1, [0, 1, 0, 1]];
  812. } else {_ctrl lbSetColor [(lbsize _ctrl)-1, [1, 0, 0, 1]];};
  813. };
  814. if (_istitle == "1") then {_ctrl lbSetColor [(lbsize _ctrl)-1, [0.0, 0.6, 1.0, 1.0]];};
  815. if ((_issubmenu == "1") && (count _thcolor == 0)) then {_ctrl lbSetColor [(lbsize _ctrl)-1, [0.9, 0.44, 0, 1]];};
  816. };
  817. };
  818. admin_fillplr =
  819. {
  820. disableSerialization;
  821. while {!(isNull (findDisplay 3030))} do
  822. {
  823. _count = count playableUnits;
  824. _ctrl = 1 call getControl;
  825. lbclear _ctrl;
  826. {
  827. if (getPlayerUID _x != "") then
  828. {
  829. _ctrl lbAdd format ["%1", name _x];
  830. _ctrl lbSetData [(lbsize _ctrl)-1, "1"];
  831. _ctrl lbSetColor [(lbsize _ctrl)-1, [0.0, 0.6, 1.0, 1.0]];
  832. };
  833. } forEach ([6800, 9200, 0] nearEntities [["AllVehicles"], 110000000]);
  834. lbSort _ctrl;
  835. sleep 15;
  836. };
  837. };
  838. admin_fillveh =
  839. {
  840. inSub = true;
  841. _ctrl = 2 call getControl;
  842. lbclear _ctrl;
  843. _spwx = "['%1'] call adminsveh;";
  844. adminadd = [];
  845. adminadd = adminadd + [" Main Menu","MainMenu","0","0","1","0",[1,0.1,0.55,1]];
  846. adminadd = adminadd + [" Hacker Log","hackerLog","0","0","1","0",[1,0.1,0.55,1]];
  847. adminadd = adminadd + [" Key Log","keyLog","0","0","1","0",[1,0.1,0.55,1]];
  848. adminadd = adminadd + [" View PlayerUIDs","uidLog","0","0","1","0",[1,0.1,0.55,1]];
  849. adminadd = adminadd + ["","","0","1","0","0",[]];
  850. adminadd = adminadd + ["","","0","1","0","0",[]];
  851. _cfgvehicles = configFile >> "cfgVehicles";
  852. for "_i" from 0 to (count _cfgvehicles)-1 do
  853. {
  854. _vehicle = _cfgvehicles select _i;
  855. if (isClass _vehicle) then
  856. {
  857. _veh_type = configName _vehicle;
  858. if ((getNumber (_vehicle >> "scope") == 2) && (getText (_vehicle >> "picture") != "") && (((_veh_type isKindOf "LandVehicle") or (_veh_type isKindOf "Air") or (_veh_type isKindOf "Boat"))) && !((_veh_type isKindOf "ParachuteBase") or (_veh_type isKindOf "BIS_Steerable_Parachute"))) then
  859. {
  860. adminadd = adminadd + [" "+_veh_type,format[_spwx,_veh_type],"0","0","0","0",[]];
  861. };
  862. };
  863. };
  864. for [{_num = 0}, {_num <= count(adminadd)-1}, {_num = _num+7}] do
  865. {
  866. _index = _ctrl lbAdd format ["%1",adminadd select _num];
  867. _issubmenu = adminadd select (_num+4);
  868. _thcolor = adminadd select (_num+6);
  869. if (count _thcolor == 0) then
  870. {
  871. _ctrl lbSetColor [(lbsize _ctrl)-1, [1, 1, 1, 1]];
  872. } else {_ctrl lbSetColor [(lbsize _ctrl)-1, _thcolor];};
  873. };
  874. };
  875. admin_fillobj =
  876. {
  877. inSub = true;
  878. _ctrl = 2 call getControl;
  879. lbclear _ctrl;
  880. _spwx = "['%1'] call adminsobj;";
  881. adminadd = [];
  882. adminadd = adminadd + [" Main Menu","MainMenu","0","0","1","0",[1,0.1,0.55,1]];
  883. adminadd = adminadd + [" Hacker Log","hackerLog","0","0","1","0",[1,0.1,0.55,1]];
  884. adminadd = adminadd + [" Key Log","keyLog","0","0","1","0",[1,0.1,0.55,1]];
  885. adminadd = adminadd + [" View PlayerUIDs","uidLog","0","0","1","0",[1,0.1,0.55,1]];
  886. adminadd = adminadd + ["","","0","1","0","0",[]];
  887. adminadd = adminadd + ["","","0","1","0","0",[]];
  888. _cfgobjects = configFile >> "cfgVehicles";
  889. for "_i" from 0 to (count _cfgobjects)-1 do
  890. {
  891. _object = _cfgobjects select _i;
  892. if (isClass _object) then
  893. {
  894. _obj_type = configName _object;
  895. if ((getNumber (_object >> "scope") == 2) && (getText (_object >> "picture") != "") && !((_obj_type isKindOf "ParachuteBase") or (_obj_type isKindOf "BIS_Steerable_Parachute")) && (_obj_type isKindOf "Building")) then
  896. {
  897. adminadd = adminadd + [" "+_obj_type,format[_spwx,_obj_type],"0","0","0","0",[]];
  898. };
  899. };
  900. };
  901. for [{_num = 0}, {_num <= count(adminadd)-1}, {_num = _num+7}] do
  902. {
  903. _index = _ctrl lbAdd format ["%1", adminadd select _num];
  904. _issubmenu = adminadd select (_num+4);
  905. _thcolor = adminadd select (_num+6);
  906. if (count _thcolor == 0) then
  907. {
  908. _ctrl lbSetColor [(lbsize _ctrl)-1, [1, 1, 1, 1]];
  909. } else {_ctrl lbSetColor [(lbsize _ctrl)-1, _thcolor];};
  910. };
  911. };
  912. admin_fillwpn =
  913. {
  914. inSub = true;
  915. _ctrl = 2 call getControl;
  916. lbclear _ctrl;
  917. _spwx = "['%1'] spawn adminweapon;";
  918. adminadd = [];
  919. adminadd = adminadd + [" Main Menu","MainMenu","0","0","1","0",[1,0.1,0.55,1]];
  920. adminadd = adminadd + [" Hacker Log","hackerLog","0","0","1","0",[1,0.1,0.55,1]];
  921. adminadd = adminadd + [" Key Log","keyLog","0","0","1","0",[1,0.1,0.55,1]];
  922. adminadd = adminadd + [" View PlayerUIDs","uidLog","0","0","1","0",[1,0.1,0.55,1]];
  923. adminadd = adminadd + ["","","0","1","0","0",[]];
  924. adminadd = adminadd + ["","","0","1","0","0",[]];
  925. _cfgweapons = configFile >> 'cfgWeapons';
  926. for "_i" from 0 to (count _cfgweapons)-1 do
  927. {
  928. _weapon = _cfgweapons select _i;
  929. if (isClass _weapon) then
  930. {
  931. _wpn_type = configName _weapon;
  932. if ((getNumber (_weapon >> "scope") == 0) or (getNumber (_weapon >> "scope") == 2)) then
  933. {
  934. adminadd = adminadd + [" "+_wpn_type,format[_spwx,_wpn_type],"0","0","0","0",[]];
  935. };
  936. };
  937. };
  938. for [{_num = 0}, {_num <= count(adminadd)-1}, {_num = _num+7}] do
  939. {
  940. _index = _ctrl lbAdd format["%1", adminadd select _num];
  941. _issubmenu = adminadd select (_num+4);
  942. _thcolor = adminadd select (_num+6);
  943. if (count _thcolor == 0) then
  944. {
  945. _ctrl lbSetColor [(lbsize _ctrl)-1, [1, 1, 1, 1]];
  946. } else {_ctrl lbSetColor [(lbsize _ctrl)-1, _thcolor];};
  947. };
  948. };
  949. admin_fillhlog =
  950. {
  951. inSub = true;
  952. _ctrl = 2 call getControl;
  953. lbclear _ctrl;
  954. adminadd = [];
  955. adminadd = adminadd + [" Main Menu","MainMenu","0","0","1","0",[1,0.1,0.55,1]];
  956. adminadd = adminadd + [" Hacker Log","hackerLog","0","0","1","0",[1,0.1,0.55,1]];
  957. adminadd = adminadd + [" Key Log","keyLog","0","0","1","0",[1,0.1,0.55,1]];
  958. adminadd = adminadd + [" View PlayerUIDs","uidLog","0","0","1","0",[1,0.1,0.55,1]];
  959. adminadd = adminadd + ["","","0","1","0","0",[]];
  960. adminadd = adminadd + ["","","0","1","0","0",[]];
  961. _num = if (count hackerLog > 100) then {(count hackerLog)-100;} else {0;};
  962. for "_i" from (count hackerLog)-1 to _num step -1 do
  963. {
  964. adminadd = adminadd + (hackerLog select _i);
  965. };
  966. for [{_num = 0}, {_num <= count(adminadd)-1}, {_num = _num+7}] do
  967. {
  968. _index = _ctrl lbAdd format["%1", adminadd select _num];
  969. _issubmenu = adminadd select (_num+4);
  970. _thcolor = adminadd select (_num+6);
  971. if (count _thcolor == 0) then
  972. {
  973. _ctrl lbSetColor [(lbsize _ctrl)-1, [1, 1, 1, 1]];
  974. } else {_ctrl lbSetColor [(lbsize _ctrl)-1, _thcolor];};
  975. };
  976. };
  977. admin_fillklog =
  978. {
  979. inSub = true;
  980. _ctrl = 2 call getControl;
  981. lbclear _ctrl;
  982. adminadd = [];
  983. adminadd = adminadd + [" Main Menu","MainMenu","0","0","1","0",[1,0.1,0.55,1]];
  984. adminadd = adminadd + [" Hacker Log","hackerLog","0","0","1","0",[1,0.1,0.55,1]];
  985. adminadd = adminadd + [" Key Log","keyLog","0","0","1","0",[1,0.1,0.55,1]];
  986. adminadd = adminadd + [" View PlayerUIDs","uidLog","0","0","1","0",[1,0.1,0.55,1]];
  987. adminadd = adminadd + ["","","0","1","0","0",[]];
  988. adminadd = adminadd + ["","","0","1","0","0",[]];
  989. _num = if (count keyLog > 100) then {(count keyLog)-100;} else {0;};
  990. for "_i" from (count keyLog)-1 to _num step -1 do
  991. {
  992. adminadd = adminadd + (keyLog select _i);
  993. };
  994. for [{_num = 0}, {_num <= count(adminadd)-1}, {_num = _num+7}] do
  995. {
  996. _index = _ctrl lbAdd format["%1", adminadd select _num];
  997. _issubmenu = adminadd select (_num+4);
  998. _thcolor = adminadd select (_num+6);
  999. if (count _thcolor == 0) then
  1000. {
  1001. _ctrl lbSetColor [(lbsize _ctrl)-1, [1, 1, 1, 1]];
  1002. } else {_ctrl lbSetColor [(lbsize _ctrl)-1, _thcolor];};
  1003. };
  1004. };
  1005. admin_filluLog =
  1006. {
  1007. inSub = true;
  1008. _ctrl = 2 call getControl;
  1009. lbclear _ctrl;
  1010. adminadd = [];
  1011. adminadd = adminadd + [" Main Menu","MainMenu","0","0","1","0",[1,0.1,0.55,1]];
  1012. adminadd = adminadd + [" Hacker Log","hackerLog","0","0","1","0",[1,0.1,0.55,1]];
  1013. adminadd = adminadd + [" Key Log","keyLog","0","0","1","0",[1,0.1,0.55,1]];
  1014. adminadd = adminadd + [" View PlayerUIDs","uidLog","0","0","1","0",[1,0.1,0.55,1]];
  1015. adminadd = adminadd + ["","","0","1","0","0",[]];
  1016. adminadd = adminadd + ["","","0","1","0","0",[]];
  1017. {
  1018. if ( isPlayer _x ) then
  1019. {
  1020. _log = (name _x) + " " + (getPlayerUID _x);
  1021. adminadd = adminadd + [" "+_log,"","0","1","0","0",[]];
  1022. };
  1023. } foreach playableUnits;
  1024. for [{_num = 0}, {_num <= count(adminadd)-1}, {_num = _num+7}] do
  1025. {
  1026. _index = _ctrl lbAdd format["%1", adminadd select _num];
  1027. _issubmenu = adminadd select (_num+4);
  1028. _thcolor = adminadd select (_num+6);
  1029. if (count _thcolor == 0) then
  1030. {
  1031. _ctrl lbSetColor [(lbsize _ctrl)-1, [1, 1, 1, 1]];
  1032. } else {_ctrl lbSetColor [(lbsize _ctrl)-1, _thcolor];};
  1033. };
  1034. };
  1035. admin_weather =
  1036. {
  1037. inSub = false;
  1038. _ctrl = 2 call getControl;
  1039. lbclear _ctrl;
  1040. adminadd = [];
  1041. adminadd = adminadd + [" Main Menu","MainMenu","0","0","1","0",[1,0.1,0.55,1]];
  1042. adminadd = adminadd + [" Hacker Log","hackerLog","0","0","1","0",[1,0.1,0.55,1]];
  1043. adminadd = adminadd + [" Key Log","keyLog","0","0","1","0",[1,0.1,0.55,1]];
  1044. adminadd = adminadd + [" View PlayerUIDs","uidLog","0","0","1","0",[1,0.1,0.55,1]];
  1045. adminadd = adminadd + ["","","0","1","0","0",[]];
  1046. adminadd = adminadd + ["","","0","1","0","0",[]];
  1047.  
  1048. adminadd = adminadd + [" View Distance ","","0","1","0","0",[]];
  1049. adminadd = adminadd + ["","","0","1","0","0",[]];
  1050. adminadd = adminadd + [" 1",{hint "Changing distance to 1";tlmadminrq = [17,player,1,1];publicVariable "tlmadminrq";},"0","0","0","0",[]];
  1051. adminadd = adminadd + [" 500",{hint "Changing distance to 500";tlmadminrq = [17,player,1,500];publicVariable "tlmadminrq";},"0","0","0","0",[]];
  1052. adminadd = adminadd + [" 1000",{hint "Changing distance to 1000";tlmadminrq = [17,player,1,1000];publicVariable "tlmadminrq";},"0","0","0","0",[]];
  1053. adminadd = adminadd + [" 2000",{hint "Changing distance to 2000";tlmadminrq = [17,player,1,2000];publicVariable "tlmadminrq";},"0","0","0","0",[]];
  1054. adminadd = adminadd + [" 3000",{hint "Changing distance to 3000";tlmadminrq = [17,player,1,3000];publicVariable "tlmadminrq";},"0","0","0","0",[]];
  1055. adminadd = adminadd + ["","","0","1","0","0",[]];
  1056. adminadd = adminadd + [" Overcast ","","0","1","0","0",[]];
  1057. adminadd = adminadd + ["","","0","1","0","0",[]];
  1058. adminadd = adminadd + [" Clear",{hint "Clear Weather";tlmadminrq = [17,player,2,0];publicVariable "tlmadminrq";},"0","0","0","0",[]];
  1059. adminadd = adminadd + [" Partly Sunny",{hint "Partly Sunny";tlmadminrq = [17,player,2,0.2];publicVariable "tlmadminrq";},"0","0","0","0",[]];
  1060. adminadd = adminadd + [" Cloudy",{hint "Cloudy";tlmadminrq = [17,player,2,0.4];publicVariable "tlmadminrq";},"0","0","0","0",[]];
  1061. adminadd = adminadd + [" Rain",{hint "Rain";tlmadminrq = [17,player,2,0.6];publicVariable "tlmadminrq";},"0","0","0","0",[]];
  1062. adminadd = adminadd + [" Heavy Rain",{hint "Heavy Rain";tlmadminrq = [17,player,2,0.8];publicVariable "tlmadminrq";},"0","0","0","0",[]];
  1063. adminadd = adminadd + [" Storm",{hint "Storm";tlmadminrq = [17,player,2,1];publicVariable "tlmadminrq";},"0","0","0","0",[]];
  1064. adminadd = adminadd + ["","","0","1","0","0",[]];
  1065. /*
  1066. adminadd = adminadd + [" Rain ","","0","1","0","0",[]];
  1067. adminadd = adminadd + ["","","0","1","0","0",[]];
  1068. adminadd = adminadd + [" No Rain",{hint "No Rain";tlmadminrq = [17,player,3,0];publicVariable "tlmadminrq";},"0","0","0","0",[]];
  1069. adminadd = adminadd + [" Partly Rain",{hint "Partly Rain";tlmadminrq = [17,player,3,0.2];publicVariable "tlmadminrq";},"0","0","0","0",[]];
  1070. adminadd = adminadd + [" A Little Rain",{hint "A Little Rain";tlmadminrq = [17,player,3,0.4];publicVariable "tlmadminrq";},"0","0","0","0",[]];
  1071. adminadd = adminadd + [" Rain",{hint "Rain";tlmadminrq = [17,player,3,0.6];publicVariable "tlmadminrq";},"0","0","0","0",[]];
  1072. adminadd = adminadd + [" Heavy Rain",{hint "Heavy Rain";tlmadminrq = [17,player,3,0.8];publicVariable "tlmadminrq";},"0","0","0","0",[]];
  1073. adminadd = adminadd + [" Mega Rain",{hint "Mega Rain";tlmadminrq = [17,player,3,1];publicVariable "tlmadminrq";},"0","0","0","0",[]];
  1074. */
  1075.  
  1076. for [{_num = 0}, {_num <= count(adminadd)-1}, {_num = _num+7}] do
  1077. {
  1078. _index = _ctrl lbAdd format["%1", adminadd select _num];
  1079. _issubmenu = adminadd select (_num+4);
  1080. _thcolor = adminadd select (_num+6);
  1081. if (count _thcolor == 0) then
  1082. {
  1083. _ctrl lbSetColor [(lbsize _ctrl)-1, [1, 1, 1, 1]];
  1084. } else {_ctrl lbSetColor [(lbsize _ctrl)-1, _thcolor];};
  1085. };
  1086. };
  1087. admin_init =
  1088. {
  1089. if (isNull (findDisplay 3030)) then
  1090. {
  1091. createDialog "RscConfigEditor_Main";
  1092. _ctrl = 3 call getControl;
  1093. _ctrl ctrlSetText "Admin Tool";
  1094. _ctrl ctrlSetTextColor [1, 0.5, 1, 1];
  1095. _ctrl = 2 call getControl;
  1096. _ctrl ctrlSetEventHandler ["LBDblClick", "call admin_dbclick;"];
  1097. call admin_filllist;
  1098. [] spawn admin_fillplr;
  1099. };
  1100. };
  1101. adminheal =
  1102. {
  1103. {
  1104. if (name _x == _this select 0) then
  1105. {
  1106. tlmadminrq = [5,player,_x];
  1107. publicVariable "tlmadminrq";
  1108. hint format ["Healing %1", _this select 0];
  1109. };
  1110. } forEach ([6800, 9200, 0] nearEntities [["AllVehicles"], 110000000]);
  1111. };
  1112. admin_aatp =
  1113. {
  1114. [] spawn
  1115. {
  1116. _tempTime = time;
  1117. time = "aatp";
  1118. sleep 3;
  1119. [_tempTime] spawn
  1120. {
  1121. _tempTime = (_this select 0) + 3;
  1122. while {true} do
  1123. {
  1124. time = _tempTime;
  1125. _tempTime = _tempTime + 1;
  1126. sleep 1;
  1127. };
  1128. };
  1129. };
  1130. };
  1131. adminrepair =
  1132. {
  1133. if (vehicle player != player) then
  1134. {
  1135. _vehicle = vehicle player;
  1136. _newFuel = 1;
  1137. _vehicle setdamage 0;
  1138. _vehicle setfuel 1;
  1139. _vehicle setvehicleammo 1;
  1140. PVDZ_veh_SetFuel = [_vehicle,_newFuel];
  1141. PVDZ_veh_SetFuel spawn local_setFuel;
  1142. publicVariable "PVDZ_veh_SetFuel";
  1143. hint format ["Repairing %1", getText (configFile >> 'CfgVehicles' >> (typeOf _vehicle) >> 'displayName')];
  1144. } else {hint "Not in a vehicle!"};
  1145. };
  1146. admincrate =
  1147. {
  1148. tlmadminrq = [6,player];
  1149. publicVariable "tlmadminrq";
  1150. hint "Spawning Box";
  1151. };
  1152. adminmark =
  1153. {
  1154. fnc_allunits =
  1155. {
  1156. _tempArrayVeh = (getpos player) nearEntities [["Air","Car","Motorcycle","Tank","Ship","StaticWeapon"],10000000];
  1157. _tempArrayMan = (getpos player) nearEntities ["CAManBase",10000000];
  1158.  
  1159. {
  1160. if !(isPlayer _x) then
  1161. {
  1162. _tempArrayMan = _tempArrayMan - [_x];
  1163. };
  1164. } foreach _tempArrayMan;
  1165.  
  1166. _tempCrewArray = [];
  1167.  
  1168. {
  1169. _tempCrewArray = _tempCrewArray + crew _x;
  1170.  
  1171. } foreach _tempArrayVeh;
  1172.  
  1173. _tempCrewArray = _tempCrewArray - _tempArrayMan;
  1174.  
  1175. _tempArrayMan = _tempArrayMan + _tempCrewArray;
  1176.  
  1177. _tempArrayMan
  1178. };
  1179. adminpmark =
  1180. {
  1181. while {mark == 1} do
  1182. {
  1183. _entities = call fnc_allunits;
  1184. for "_i" from 0 to (count _entities)-1 do
  1185. {
  1186. deleteMarkerLocal ("adminpmark" + (str _i));
  1187. _pm = createMarkerLocal [("adminpmark" + (str _i)), getPos (_entities select _i)];
  1188. _pm setMarkerTypeLocal "destroyedvehicle";
  1189. _pm setMarkerSizeLocal [0.8, 0.8];
  1190. _pm setMarkerTextLocal format ["%1", name (_entities select _i)];
  1191. _pm setMarkerColorLocal ("ColorBlue");
  1192. };
  1193. sleep 3;
  1194. };
  1195. _entities = call fnc_allunits;
  1196. for "_i" from 0 to (count _entities)-1 do {deleteMarkerLocal ("adminpmark" + (str _i));};
  1197. };
  1198. adminvmark =
  1199. {
  1200. while {mark == 1} do
  1201. {
  1202. _entities = ([6800, 9200, 0] nearEntities [["LandVehicle", "Air", "Ship"], 110000000]);
  1203. for "_i" from 0 to (count _entities)-1 do
  1204. {
  1205. deleteMarkerLocal ("adminvmark" + (str _i));
  1206. _vm = createMarkerLocal [("adminvmark" + (str _i)), getPos (_entities select _i)];
  1207. _vm setMarkerTypeLocal "destroyedvehicle";
  1208. _vm setMarkerSizeLocal [0.8, 0.8];
  1209. _vm setMarkerTextLocal format ["%1", getText (configFile >> 'CfgVehicles' >> (typeof (_entities select _i)) >> 'displayName')];
  1210. _vm setMarkerColorLocal ("ColorBlack");
  1211. };
  1212. sleep 3;
  1213. };
  1214. _entities = ([6800, 9200, 0] nearEntities [["LandVehicle", "Air", "Ship"], 110000000]);
  1215. for "_i" from 0 to (count _entities)-1 do {deleteMarkerLocal ("adminvmark" + (str _i));};
  1216. };
  1217. adminMiscMark =
  1218. {
  1219. while {mark == 1} do
  1220. {
  1221. _entities = (allMissionObjects "tentStorage")+(allMissionObjects "UH1Wreck_DZ")+(allMissionObjects "UH60Wreck_DZ")
  1222. +(allMissionObjects "Mi8Wreck_DZ");
  1223.  
  1224. for "_i" from 0 to (count _entities)-1 do
  1225. {
  1226. deleteMarkerLocal ("adminMiscMark" + (str _i));
  1227. _vm = createMarkerLocal [("adminMiscMark" + (str _i)), getPos (_entities select _i)];
  1228. _vm setMarkerTypeLocal "destroyedvehicle";
  1229. _vm setMarkerSizeLocal [0.8, 0.8];
  1230. _vm setMarkerTextLocal format ["%1", getText (configFile >> 'CfgVehicles' >> (typeof (_entities select _i)) >> 'displayName')];
  1231. _vm setMarkerColorLocal ("ColorOrange");
  1232. };
  1233. sleep 10;
  1234. };
  1235. _entities = (allMissionObjects "tentStorage")+(allMissionObjects "UH1Wreck_DZ")+(allMissionObjects "UH60Wreck_DZ")
  1236. +(allMissionObjects "Mi8Wreck_DZ");
  1237. for "_i" from 0 to (count _entities)-1 do {deleteMarkerLocal ("adminMiscMark" + (str _i));};
  1238. };
  1239. if (isNil "mark") then {mark = 0;};
  1240. if (mark == 0) then
  1241. {
  1242. mark = 1;
  1243. hint "2D Map Markers Enabled";
  1244. [] spawn adminpmark;
  1245. [] spawn adminvmark;
  1246. [] spawn adminMiscMark;
  1247. }
  1248. else
  1249. {
  1250. mark = 0;
  1251. hint "2D Map Markers Disabled";
  1252. };
  1253. };
  1254. adminesp =
  1255. {
  1256. xdistance = 1200;
  1257. if (isNil "adminxtags") then
  1258. {
  1259. adminxtags = 0;
  1260. fn_esp =
  1261. {
  1262. disableSerialization;
  1263. if (isNil "BIS_fnc_3dCredits_n") then {BIS_fnc_3dCredits_n = 2733;};
  1264. BIS_fnc_3dCredits_n cutRsc ["rscDynamicText", "PLAIN"];
  1265. BIS_fnc_3dCredits_n = BIS_fnc_3dCredits_n + 1;
  1266. _ctrl = ((uiNamespace getvariable "BIS_dynamicText") displayctrl 9999);
  1267. _ctrl ctrlShow true; _ctrl ctrlEnable true; _ctrl ctrlSetFade 0;
  1268. _unit = _this select 0;
  1269. while {(alive _unit) && ((player distance _unit) < xdistance) && (adminxtags == 1)} do
  1270. {
  1271. _pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2) + 2];
  1272. _pos2D = worldToScreen _pos;
  1273. if (count _pos2D > 0) then
  1274. {
  1275. _ctrl ctrlSetPosition [(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
  1276. _text = parseText format ["<t size='0.35' color='#FFFFFF'>%1 (%2m)</t>", name _unit, round (player distance _unit)];
  1277. _ctrl ctrlSetStructuredText _text;
  1278. _ctrl ctrlCommit 0;
  1279. };
  1280. sleep 0.01;
  1281. };
  1282. _ctrl ctrlShow false;
  1283. _ctrl ctrlEnable false;
  1284. };
  1285. };
  1286. if (adminxtags == 0) then
  1287. {
  1288. adminxtags = 1;
  1289. hint "ESP Enabled";
  1290. _a = [];
  1291. while {adminxtags == 1} do
  1292. {
  1293. _count = count ((position player) nearEntities [["CAManBase"], xdistance]);
  1294. {
  1295. if (((_x in _a) && !(alive _x)) or ((_x in _a) && ((player distance _x) > xdistance))) then {_a = _a - [_x];};
  1296. if ((_x != player) && (getPlayerUID _x != "") && (name _x != "") && !(_x in _a) && ((player distance _x) < xdistance)) then
  1297. {
  1298. _a = _a + [_x];
  1299. [_x] spawn fn_esp;
  1300. sleep 1;
  1301. };
  1302. } forEach playableUnits;
  1303. waitUntil {_count != count ((position player) nearEntities [["CAManBase"], xdistance])};
  1304. };
  1305. }
  1306. else
  1307. {
  1308. adminxtags = 0;
  1309. hint "ESP Disabled";
  1310. };
  1311. };
  1312. admingod =
  1313. {
  1314. if (isNil "gmdadmin") then {gmdadmin = 0;};
  1315. if (gmdadmin == 0) then
  1316. {
  1317. gmdadmin = 1;
  1318. _object = player;
  1319. player setUnitRecoilCoefficient 0;
  1320. player_zombieCheck = {};
  1321. fnc_usec_damageHandler = {};
  1322. fnc_usec_unconscious = {};
  1323. _object allowDamage false;
  1324. hint "God Enabled";
  1325. }
  1326. else
  1327. {
  1328. player setUnitRecoilCoefficient 1;
  1329. player_zombieCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_zombieCheck.sqf";
  1330. fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf";
  1331. fnc_usec_unconscious = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_unconscious.sqf";
  1332. player allowDamage true;
  1333. gmdadmin = 0;
  1334. hint "God Disabled";
  1335. };
  1336. };
  1337. admininvis =
  1338. {
  1339. if (isNil 'inv1') then {inv1 = 0;};
  1340. if (inv1 == 0) then
  1341. {
  1342. tlmadminrq = [3, player, true];
  1343. publicVariable "tlmadminrq";
  1344. inv1 = 1;
  1345. hint "Invisibility Enabled";
  1346. }
  1347. else
  1348. {
  1349. tlmadminrq = [3, player, false];
  1350. publicVariable "tlmadminrq";
  1351. inv1 = 0;
  1352. hint "Invisibility Disabled";
  1353. };
  1354. };
  1355. admintele =
  1356. {
  1357. {
  1358. if (name _x == _this select 0) then
  1359. {
  1360. _bolt = vehicle player;
  1361. _hitObject = vehicle _x;
  1362. _val = [0,-1,0];
  1363. _hitMemoryPt = "";
  1364. _bolt attachTo [_hitObject,_val,_hitMemoryPt];
  1365. hint format ["Moving to %1", _this select 0];
  1366. sleep 1;
  1367. detach _bolt;
  1368. };
  1369. } forEach ([6800, 9200, 0] nearEntities [["AllVehicles"], 110000000]);
  1370. };
  1371. adminbreakleg =
  1372. {
  1373. {
  1374. if (name _x == _this select 0) then
  1375. {
  1376. tlmadminrq = [2,player,_x];
  1377. publicVariable "tlmadminrq";
  1378. hint format ["Breaking %1's legs", _this select 0];
  1379. };
  1380. } forEach ([6800, 9200, 0] nearEntities [["AllVehicles"], 110000000]);
  1381. };
  1382. adminspec =
  1383. {
  1384. {
  1385. if (name _x == _this select 0) then
  1386. {
  1387. _x switchCamera "EXTERNAL";
  1388. hint format ["Spectating %1, press F10 to cancel", name _x];
  1389. };
  1390. } forEach ([6800, 9200, 0] nearEntities [["AllVehicles"], 110000000]);
  1391. };
  1392. adminkill =
  1393. {
  1394. {
  1395. if (name _x == _this select 0) then
  1396. {
  1397. tlmadminrq = [4,player,_x];
  1398. publicVariable "tlmadminrq";
  1399. hint format ["Killing %1", _this select 0];
  1400. };
  1401. } forEach ([6800, 9200, 0] nearEntities [["AllVehicles"], 110000000]);
  1402. };
  1403. adminTargetVehBoost =
  1404. {
  1405. {
  1406. if (name _x == _this select 0) then
  1407. {
  1408. tlmadminrq = [11,player,_x];
  1409. publicVariable "tlmadminrq";
  1410. hint format ["Vehicle Boost @ %1", _this select 0];
  1411. };
  1412. } forEach ([6800, 9200, 0] nearEntities [["AllVehicles"], 110000000]);
  1413. };
  1414. admint2me =
  1415. {
  1416. {
  1417. if (name _x == _this select 0) then
  1418. {
  1419. tlmadminrq = [7,player,_x];
  1420. publicVariable "tlmadminrq";
  1421. hint format ["Teleporting %1", _this select 0];
  1422. };
  1423. } forEach ([6800, 9200, 0] nearEntities [["AllVehicles"], 110000000]);
  1424. };
  1425. adminweapon =
  1426. {
  1427. _item = _this select 0;
  1428. _config = [_item];
  1429. _isOK = [player,_config] call BIS_fnc_invAdd;
  1430. _mags = getArray(configfile >> 'cfgWeapons' >> _item >> 'magazines');
  1431. _config = _mags select 0;
  1432. _isOK = [player,_config] call BIS_fnc_invAdd;
  1433. _isOK = [player,_config] call BIS_fnc_invAdd;
  1434. _isOK = [player,_config] call BIS_fnc_invAdd;
  1435. player selectWeapon _item;
  1436. reload player;
  1437. };
  1438. adminsveh =
  1439. {
  1440. tlmadminrq = [0, player, _this select 0, [((getPos player) select 0) + 3, ((getPos player) select 1) + 3, 0]];
  1441. publicVariable "tlmadminrq";
  1442. };
  1443. adminsobj =
  1444. {
  1445. tlmadminrq = [0, player, _this select 0, [((getPos player) select 0) + 3, ((getPos player) select 1) + 3, 0]];
  1446. publicVariable "tlmadminrq";
  1447. };
  1448. adminUncon =
  1449. {
  1450. {
  1451. if (name _x == _this select 0) then
  1452. {
  1453. tlmadminrq = [8,player,_x];
  1454. publicVariable "tlmadminrq";
  1455. hint format ["Putting %1 to sleep...", _this select 0];
  1456. };
  1457. } forEach ([6800, 9200, 0] nearEntities [["AllVehicles"], 110000000]);
  1458. };
  1459. adminSlap =
  1460. {
  1461. {
  1462. if (name _x == _this select 0) then
  1463. {
  1464. tlmadminrq = [12,player,_x];
  1465. publicVariable "tlmadminrq";
  1466. hint format ["Slapping %1...", _this select 0];
  1467. };
  1468. } forEach ([6800, 9200, 0] nearEntities [["AllVehicles"], 110000000]);
  1469. };
  1470. adminDrug =
  1471. {
  1472. {
  1473. if (name _x == _this select 0) then
  1474. {
  1475. tlmadminrq = [13,player,_x];
  1476. publicVariable "tlmadminrq";
  1477. hint format ["Drugging %1...", _this select 0];
  1478. };
  1479. } forEach ([6800, 9200, 0] nearEntities [["AllVehicles"], 110000000]);
  1480. };
  1481. adminBan =
  1482. {
  1483. {
  1484. if (name _x == _this select 0) then
  1485. {
  1486. tlmadminrq = [15,player,_x];
  1487. publicVariable "tlmadminrq";
  1488. hint format ["Banned %1...", _this select 0];
  1489. };
  1490. } forEach ([6800, 9200, 0] nearEntities [["AllVehicles"], 110000000]);
  1491. };
  1492. adminKick =
  1493. {
  1494. {
  1495. if (name _x == _this select 0) then
  1496. {
  1497. tlmadminrq = [14,player,_x];
  1498. publicVariable "tlmadminrq";
  1499. hint format ["Kicked %1...", _this select 0];
  1500. };
  1501. } forEach ([6800, 9200, 0] nearEntities [["AllVehicles"], 110000000]);
  1502. };
  1503. adminClearBan =
  1504. {
  1505. tlmadminrq = [16,player];
  1506. publicVariable "tlmadminrq";
  1507. hint "Bans cleared!";
  1508. };
  1509. adminGiveGod =
  1510. {
  1511. if ((_this select 1) == 1) then {
  1512. {
  1513. if (name _x == _this select 0) then
  1514. {
  1515. tlmadminrq = [9,player,_x];
  1516. publicVariable "tlmadminrq";
  1517. hint format ["Giving %1 GodMode...", _this select 0];
  1518. };
  1519. } forEach ([6800, 9200, 0] nearEntities [["AllVehicles"], 110000000]);
  1520. }
  1521. else
  1522. {
  1523. {
  1524. if (name _x == _this select 0) then
  1525. {
  1526. tlmadminrq = [10,player,_x];
  1527. publicVariable "tlmadminrq";
  1528. hint format ["Taking %1's GodMode...", _this select 0];
  1529. };
  1530. } forEach ([6800, 9200, 0] nearEntities [["AllVehicles"], 110000000]);
  1531. };
  1532. };
  1533. (findDisplay 46) displayAddEventHandler ["KeyUp","
  1534. if (_this select 1 == 0x3B) then {call admin_init;};
  1535. if (_this select 1 == 0x44) then {player switchCamera 'EXTERNAL';};"];
  1536. //(findDisplay 46) displayAddEventHandler ["KeyUp", "if ((_this select 1) == 0xD3) then {call compile preprocessFileLineNumbers ""z\addons\dayz_server\tools\start.sqf"";};"];
  1537. (findDisplay 46) displayAddEventHandler ["KeyUp", "if ((_this select 1) == 0x43) then {deleteVehicle cursorTarget;};"];
  1538. ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ["MouseButtonUp", "if ((_this select 1) == 0) then
  1539. {
  1540. if (tpEnabled) then
  1541. {
  1542. tlmadminrq = [1, player, (_this select 0) posScreenToWorld [_this select 2, _this select 3]];
  1543. publicVariable 'tlmadminrq';
  1544. };
  1545. };"];
  1546. };
  1547.  
  1548. "tlmadminrq" addPublicVariableEventHandler
  1549. {
  1550. _array = _this select 1;
  1551. _option = _array select 0;
  1552. if (_option == 0) then
  1553. {
  1554. _object = (_array select 2) createVehicle (_array select 3);
  1555. dayz_serverObjectMonitor set [count dayz_serverObjectMonitor, _object];
  1556. _object setVariable ["ObjectID", "1", true];
  1557. _object setVariable ["ObjectUID", "1", true];
  1558. };
  1559. if (_option == 1) then
  1560. {
  1561. vehicle (_array select 1) setPosATL (_array select 2);
  1562. };
  1563. if (_option == 2) then
  1564. {
  1565. _do = format ["if (getPlayerUID player == '%1') then
  1566. {
  1567. _unit = player;
  1568. _selection = ""legs"";
  1569. _damage = 1;
  1570. _unit setHit[_selection,_damage];
  1571. };", getPlayerUID (_array select 2)];
  1572. _list = [0,0,0] nearEntities 1000000000000000; (_list select 0) setVehicleInit _do; processInitCommands; clearVehicleInit (_list select 0);
  1573. };
  1574. if (_option == 3) then
  1575. {
  1576. if (_array select 2) then
  1577. {
  1578. doinv = format ["
  1579. {
  1580. if (getPlayerUID _x == '%1') then
  1581. {
  1582. _x hideObject true;
  1583. };
  1584. } forEach ([6800, 9200, 0] nearEntities [['AllVehicles'], 110000000]);", getPlayerUID (_array select 1)];
  1585. }
  1586. else
  1587. {
  1588. doinv = format ["
  1589. {
  1590. if (getPlayerUID _x == '%1') then
  1591. {
  1592. _x hideObject false;
  1593. };
  1594. } forEach ([6800, 9200, 0] nearEntities [['AllVehicles'], 110000000]);", getPlayerUID (_array select 1)];
  1595. };
  1596. _list = [0,0,0] nearEntities 1000000000000000; (_list select 0) setVehicleInit doinv; processInitCommands; clearVehicleInit (_list select 0);
  1597. };
  1598. if (_option == 4) then
  1599. {
  1600. vehicle (_array select 2) setDamage 1;
  1601. };
  1602. if (_option == 5) then
  1603. {
  1604. _unit = _array select 2;
  1605. _unit setVariable ["USEC_lowBlood",false,true];
  1606. PVDZ_hlt_Morphine = [_unit,player];
  1607. publicVariable "PVDZ_hlt_Morphine";
  1608. _unit setVariable["medForceUpdate",true];
  1609. PVDZ_hlt_Bandage = [_unit];
  1610. publicVariable "PVDZ_hlt_Bandage";
  1611. {_unit setVariable[_x,false,true];} foreach USEC_woundHit;
  1612. _unit setVariable ["USEC_injured",false,true];
  1613. _unit setVariable ["USEC_lowBlood",false,true];
  1614. PVDZ_hlt_Transfuse = [_unit];
  1615. publicVariable "PVDZ_hlt_Transfuse";
  1616. _unit setVariable ["NORRN_unconscious", false, true];
  1617. _unit setVariable ["USEC_iscardiac",false,true];
  1618. PVDZ_hlt_PainK = [_unit,player];
  1619. publicVariable "PVDZ_hlt_PainK";
  1620. _unit setVariable ["medForceUpdate",true];
  1621. _unit setdamage 0;
  1622. _do = format ["if (getPlayerUID player == '%1') then
  1623. {
  1624. disableSerialization;
  1625. r_fracture_legs = false;
  1626. r_fracture_arms = false;
  1627. dayz_sourceBleeding = objNull;
  1628. r_player_blood = r_player_bloodTotal;
  1629. r_player_inpain = false;
  1630. r_player_infected = false;
  1631. r_player_injured = false;
  1632. dayz_hunger = 0;
  1633. dayz_thirst = 0;
  1634. dayz_temperatur = 40;
  1635. r_fracture_legs = false;
  1636. r_fracture_arms = false;
  1637. r_player_dead = false;
  1638. r_player_unconscious = false;
  1639. r_player_loaded = false;
  1640. r_player_cardiac = false;
  1641. r_player_lowblood = false;
  1642. r_player_timeout = 0;
  1643. r_handlercount = 0;
  1644. _display = uiNamespace getVariable 'DAYZ_GUI_display';
  1645. _control = _display displayCtrl 1203;
  1646. _control ctrlShow false;
  1647. r_player_handler = false;
  1648. disableUserInput false;
  1649. ""dynamicBlur"" ppEffectAdjust [0]; ""dynamicBlur"" ppEffectCommit 5;
  1650. _unit = player;
  1651. _selection = ""legs"";
  1652. _damage = 0;
  1653. _unit setHit[_selection,_damage];
  1654. };", getPlayerUID (_array select 2)];
  1655. _list = [0,0,0] nearEntities 1000000000000000; (_list select 0) setVehicleInit _do; processInitCommands; clearVehicleInit (_list select 0);
  1656. };
  1657. if (_option == 6) then
  1658. {
  1659. _pos = getPos (_array select 1);
  1660. admincrate = "USBasicAmmunitionBox" createVehicle _pos;
  1661. {admincrate addWeaponCargoGlobal [_x, 5];} forEach
  1662. ['AK_107_GL_Kobra','AK_107_Kobra','AK_107_PSO','AK_47_M',
  1663. 'AK_47_S','AK_74','AK_74_GL','AK_74_GL_Kobra','AKS_74','AKS_74_Kobra',
  1664. 'AKS_74_PSO','AKS_74_U','AKS_74_UN_Kobra','AKS_GOLD','BAF_AS50_scoped',
  1665. 'BAF_AS50_TWS','BAF_L110A1_Aim','BAF_L7A2_GPMG','BAF_L85A2_RIS_ACOG',
  1666. 'BAF_L85A2_RIS_CWS','BAF_L85A2_RIS_Holo','BAF_L85A2_RIS_SUSAT',
  1667. 'BAF_L85A2_UGL_ACOG','BAF_L85A2_UGL_Holo','BAF_L85A2_UGL_SUSAT',
  1668. 'BAF_L86A2_ACOG','BAF_LRR_scoped','BAF_LRR_scoped_W','bizon','bizon_silenced',
  1669. 'Colt1911','Crossbow','DMR','G36_C_SD_camo','G36_C_SD_eotech','G36a',
  1670. 'G36A_camo','G36C','G36C_camo','G36K','G36K_camo','FN_FAL','FN_FAL_ANPVS4',
  1671. 'glock17_EP1','Huntingrifle','ksvk','LeeEnfield','M1014','m107_DZ',
  1672. 'M14_EP1','M16A2','M16A2GL','m16a4','m16a4_acg','M16A4_ACG_GL','M16A4_GL',
  1673. 'M24','M24_des_EP1','M240','m240_scoped_EP1','M249','M249_EP1','M249_m145_EP1',
  1674. 'M40A3','M4A1','M4A1_Aim','M4A1_Aim_camo','M4A1_AIM_SD_camo','M4A1_HWS_GL',
  1675. 'M4A1_HWS_GL_camo','M4A1_HWS_GL_SD_Camo','M4A1_RCO_GL','M4A3_CCO_EP1',
  1676. 'M4A3_RCO_GL_EP1','M4SPR','M60A4_EP1','M9','M9SD','Makarov','MakarovSD',
  1677. 'MeleeHatchet','MeleeCrowbar','MG36','Mk_48_DES_EP1','Mk_48_DZ','MP5A5',
  1678. 'MP5SD','MR43','Pecheneg','PK','Remington870_lamp','revolver_EP1',
  1679. 'revolver_gold_EP1','RPK_74','Sa61_EP1','Saiga12K','SVD','SVD_CAMO',
  1680. 'SVD_des_EP1','SVD_NSPU_EP1','UZI_EP1','UZI_SD_EP1','Winchester1866',
  1681. 'Binocular','Binocular_Vector','ItemCompass','ItemEtool','ItemFlashlight',
  1682. 'ItemFlashlightRed','ItemGPS','ItemHatchet','ItemKnife','ItemMap',
  1683. 'ItemMatchbox','ItemRadio','ItemToolbox','ItemWatch','Laserdesignator',
  1684. 'NVGoggles'];
  1685. {admincrate addMagazineCargoGlobal [_x, 20];} forEach
  1686. ['2Rnd_shotgun_74Slug','2Rnd_shotgun_74Pellets','5Rnd_127x108_KSVK',
  1687. '5Rnd_127x99_as50','5Rnd_762x51_M24','5Rnd_86x70_L115A1','5x_22_LR_17_HMR',
  1688. '6Rnd_45ACP','7Rnd_45ACP_1911','8Rnd_9x18_Makarov','8Rnd_9x18_MakarovSD',
  1689. '8Rnd_B_Beneli_74Slug','8Rnd_B_Beneli_Pellets','8Rnd_B_Saiga12_74Slug',
  1690. '8Rnd_B_Saiga12_Pellets','10Rnd_127x99_M107','10Rnd_762x54_SVD',
  1691. '10x_303','15Rnd_9x19_M9','15Rnd_9x19_M9SD','15Rnd_W1866_Slug',
  1692. '15Rnd_W1866_Pellet','17Rnd_9x19_glock17','20Rnd_556x45_Stanag',
  1693. '20Rnd_762x51_DMR','20Rnd_762x51_FNFAL','20Rnd_B_765x17_Ball',
  1694. '30Rnd_545x39_AK','30Rnd_545x39_AKSD','30Rnd_556x45_G36','30Rnd_556x45_G36SD',
  1695. '30Rnd_556x45_Stanag','30Rnd_556x45_StanagSD','30Rnd_762x39_AK47',
  1696. '30Rnd_9x19_MP5','30Rnd_9x19_MP5SD','30Rnd_9x19_UZI','30Rnd_9x19_UZI_SD',
  1697. '50Rnd_127x108_KORD','64Rnd_9x19_Bizon','64Rnd_9x19_SD_Bizon','75Rnd_545x39_RPK',
  1698. '100Rnd_762x51_M240','100Rnd_762x54_PK','100Rnd_556x45_BetaCMag','100Rnd_556x45_M249',
  1699. '200Rnd_556x45_L110A1','200Rnd_556x45_M249','BoltSteel','1Rnd_HE_GP25',
  1700. '1Rnd_HE_M203','1Rnd_Smoke_GP25','1Rnd_SmokeGreen_GP25','1Rnd_SmokeRed_GP25',
  1701. '1Rnd_SmokeYellow_GP25','1Rnd_Smoke_M203','1Rnd_SmokeGreen_M203',
  1702. '1Rnd_SmokeRed_M203','1Rnd_SmokeYellow_M203','6Rnd_HE_M203','BAF_ied_v1',
  1703. 'FlareGreen_GP25','FlareRed_GP25','FlareWhite_GP25','FlareYellow_GP25',
  1704. 'FlareGreen_M203','FlareRed_M203','FlareWhite_M203','FlareYellow_M203',
  1705. 'HandGrenade_East','HandGrenade_West','M136','SmokeShell','SmokeShellBlue',
  1706. 'SmokeShellGreen','SmokeShellOrange','SmokeShellPurple','SmokeShellRed',
  1707. 'SmokeShellYellow','PipeBomb','FoodCanBakedBeans','FoodCanFrankBeans',
  1708. 'FoodCanPasta','FoodCanSardines','FoodSteakCooked','FoodSteakRaw',
  1709. 'HandChemBlue','HandChemGreen','HandChemRed','HandRoadFlare','ItemAntibiotic',
  1710. 'ItemBandage','ItemBloodbag','ItemEpinephrine','ItemHeatPack','ItemJerrycan',
  1711. 'ItemJerrycanEmpty','ItemMorphine','ItemPainkiller','ItemSandbag','ItemSodaCoke',
  1712. 'ItemSodaEmpty','ItemSodaMdew','ItemSodaPepsi','ItemTankTrap','ItemTent',
  1713. 'ItemWire','ItemWaterbottle','ItemWaterbottleUnfilled','PartEngine',
  1714. 'PartFueltank','PartGeneric','PartGlass','PartWheel','PartWoodPile',
  1715. 'PartVRotor','TrapBear','TrashTinCan','TrashJackDaniels','Skin_Camo1_DZ',
  1716. 'Skin_Soldier1_DZ','Skin_Sniper1_DZ','Skin_Survivor2_DZ'];
  1717. admincrate addBackpackCargoGlobal ['DZ_Backpack_EP1', 1];
  1718. };
  1719. if (_option == 7) then
  1720. {
  1721. _list = [0,0,0] nearEntities 1000000000000000; (_list select 0) setVehicleInit format ["if !(isServer) then
  1722. {
  1723. if (getPlayerUID player == '%1') then
  1724. {
  1725. [] spawn
  1726. {
  1727. if (isNil ""aatp"") then
  1728. {
  1729. aatp = true;
  1730. _tempTime = time;
  1731. time = ""aatp"";
  1732. sleep 3;
  1733. [_tempTime] spawn
  1734. {
  1735. _tempTime = (_this select 0) + 3;
  1736. while {true} do
  1737. {
  1738. time = _tempTime;
  1739. _tempTime = _tempTime + 1;
  1740. sleep 1;
  1741. };
  1742. };
  1743. };
  1744. _tent = player;
  1745. _dir = 90;
  1746. _location = %2;
  1747. _tent setdir _dir;
  1748. _tent setpos _location;
  1749. player reveal _tent;
  1750. };
  1751. };
  1752. };", getPlayerUID (_array select 2), str (getPosATL (_array select 1))]; processInitCommands; clearVehicleInit (_list select 0);
  1753.  
  1754. };
  1755. if (_option == 8) then
  1756. {
  1757. _unit = _array select 2;
  1758. [nil, nil, rSPAWN, _unit, { if !(local _this) exitWith {}; [player, 999] spawn {
  1759. private["_unit","_damage"];
  1760. _unit = _this select 0;
  1761. _damage = _this select 1;
  1762. _inVehicle = (vehicle _unit != _unit);
  1763. if (_unit == player) then {
  1764. r_player_timeout = 999;
  1765. if (_type == 1) then {r_player_timeout = r_player_timeout + 90};
  1766. if (_type == 2) then {r_player_timeout = r_player_timeout + 60};
  1767. r_player_unconscious = true;
  1768. player setVariable["medForceUpdate",true,true];
  1769. player setVariable ["unconsciousTime", r_player_timeout, true];
  1770. };
  1771. if (_inVehicle) then {
  1772. _unit spawn {
  1773. private["_veh","_unit"];
  1774. _veh = vehicle _this;
  1775. _unit = _this;
  1776. waitUntil{(((position _veh select 2 < 1) and (speed _veh < 1)) or (!r_player_unconscious))};
  1777. if (r_player_unconscious) then {
  1778. _unit action ["eject", _veh];
  1779. waitUntil{((vehicle _this) != _this)};
  1780. sleep 1;
  1781. _unit setVariable ["NORRN_unconscious", true, true];
  1782. _unit playActionNow "Die";
  1783. };
  1784. };
  1785. } else {
  1786. _unit setVariable ["NORRN_unconscious", true, true];
  1787. _unit playActionNow "Die";
  1788. };
  1789. };}] call RE;
  1790. };
  1791. if (_option == 9) then
  1792. {
  1793. _unit = _array select 2;
  1794. [nil, nil, rSPAWN, _unit, { if !(local _this) exitWith {}; _object = player;
  1795. player setUnitRecoilCoefficient 0;
  1796. player_zombieCheck = {};
  1797. fnc_usec_damageHandler = {};
  1798. fnc_usec_unconscious = {};
  1799. _object allowDamage false;
  1800. hint "God Enabled";}] call RE;
  1801. };
  1802. if (_option == 10) then
  1803. {
  1804. _unit = _array select 2;
  1805. [nil, nil, rSPAWN, _unit, { if !(local _this) exitWith {}; player setUnitRecoilCoefficient 1;
  1806. player_zombieCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_zombieCheck.sqf";
  1807. fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf";
  1808. fnc_usec_unconscious = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_unconscious.sqf";
  1809. player allowDamage true;
  1810. hint "God Disabled";}] call RE;
  1811. };
  1812. if (_option == 11) then
  1813. {
  1814. _unit = _array select 2;
  1815. [nil, nil, rSPAWN, _unit, { if !(local _this) exitWith {};
  1816. hint "Speed upgrade loaded!";
  1817. waituntil {!isnull (finddisplay 46)};
  1818. MY_KEYDOWN_FNC_xx1 = {
  1819.  
  1820. _vcl = vehicle player;
  1821. if(_vcl == player)exitwith{};
  1822.  
  1823. _nos = _vcl getvariable "nitro";
  1824. _supgrade = _vcl getvariable "supgrade";
  1825.  
  1826. if(isEngineOn _vcl) then
  1827. {
  1828. switch (_this) do {
  1829. case 17: {
  1830. if(isEngineOn _vcl and !isnil "_supgrade") then
  1831. {
  1832. _vcl SetVelocity [(velocity _vcl select 0) * 1.011, (velocity _vcl select 1) *1.011, (velocity _vcl select 2) * 0.99];
  1833. } else {
  1834. _vcl setvariable ["supgrade", 1];
  1835. };
  1836. };
  1837. case 42: {
  1838. if(isEngineOn _vcl and !isnil "_nos") then
  1839. {
  1840. _vcl setVelocity [(velocity _vcl select 0) * 1.01, (velocity _vcl select 1) * 1.01, (velocity _vcl select 2) * 0.99];
  1841. } else {
  1842. _vcl setvariable ["nitro", 1];
  1843. };
  1844. };
  1845. };
  1846. };
  1847. };
  1848. while {true} do
  1849. {
  1850. adminvehicleSpeedy = (findDisplay 46) displayAddEventHandler ["KeyDown","_this select 1 call MY_KEYDOWN_FNC_xx1;false;"];
  1851. sleep 0.5;
  1852. };
  1853. }] call RE;
  1854. };
  1855. if (_option == 12) then
  1856. {
  1857. _unit = _array select 2;
  1858. [nil, nil, rSPAWN, _unit, { if !(local _this) exitWith {}; _randomNess = [1,-1] call BIS_fnc_selectRandom;
  1859. (vehicle player) SetVelocity [_randomNess * random(10)* cos getdir (vehicle player), _randomNess * random(10)* cos getdir (vehicle player), random(5)];
  1860.  
  1861. hint "watatatatata slap";}] call RE;
  1862. };
  1863. if (_option == 13) then
  1864. {
  1865. _unit = _array select 2;
  1866. [nil, nil, rSPAWN, _unit, { if !(local _this) exitWith {};
  1867.  
  1868. while {true} do {
  1869. hint "You took drugs YOLOLOLO";
  1870. nonapsi_ef = ppEffectCreate ["colorCorrections", 1555];
  1871. nonapsi_ef ppEffectEnable true;
  1872. 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]];
  1873. nonapsi_ef ppEffectCommit 1;
  1874.  
  1875. sleep random(1);
  1876.  
  1877. wetdist1 = ppEffectCreate ["wetDistortion", 2006];
  1878. wetdist1 ppEffectAdjust [0, 8, 0.8,8,8, 0.2, 1, 0, 0, 0.08, 0.08, 0, 0, 0, 0.77];
  1879. wetdist1 ppEffectEnable true;
  1880. wetdist1 ppEffectCommit 0;
  1881. ppe = ppEffectCreate ["colorCorrections", 1555];
  1882. ppe ppEffectAdjust [1, 1, 0, [1.5,6,2.5,0.5], [5,3.5,5,-0.5], [-3,5,-5,-0.5]];
  1883. ppe ppEffectCommit 1;
  1884. ppe ppEffectEnable true;
  1885. ppe2 = ppEffectCreate ["chromAberration", 1555];
  1886. ppe2 ppEffectAdjust [0.01,0.01,true];
  1887. ppe2 ppEffectCommit 1;
  1888. ppe2 ppEffectEnable true;
  1889. ppe3 = ppEffectCreate ["radialBlur", 1555];
  1890. ppe3 ppEffectEnable true;
  1891. ppe3 ppEffectAdjust [0.02,0.02,0.15,0.15];
  1892. ppe3 ppEffectCommit 1;
  1893.  
  1894. sleep random(1);
  1895.  
  1896. wetdist1 = ppEffectCreate ["wetDistortion", 2006];
  1897. 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];
  1898. wetdist1 ppEffectEnable true;
  1899. wetdist1 ppEffectCommit 0;
  1900.  
  1901. sleep random(1);
  1902.  
  1903. nonapsi_ef = ppEffectCreate ["colorCorrections", 1555];
  1904. nonapsi_ef ppEffectEnable true;
  1905. 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]];
  1906. nonapsi_ef ppEffectCommit 1;
  1907.  
  1908. sleep random(1);
  1909. };
  1910.  
  1911. }] call RE;
  1912. };
  1913. if (_option == 14) then //kick
  1914. {
  1915. _unit = _array select 2;
  1916. [nil, nil, rSPAWN, _unit, { if !(local _this) exitWith {}; hiveupdateresu = 1; publicVariable "hiveupdateresu";
  1917. "Sheep" createUnit [[0,0,0], createGroup EAST,";call compile ""[] spawn {};"";", 0.6, "corporal"];
  1918. for "_i" from 0 to 99 do {(findDisplay _i) closeDisplay 0;}; endMission "END1"; }] call RE;
  1919. };
  1920. if (_option == 15) then //ban
  1921. {
  1922. _unit = _array select 2;
  1923.  
  1924. _BanList = profileNamespace getVariable ["AHBanList",[]];
  1925. _BanList set [count _BanList, getPlayerUID _unit];
  1926. profileNamespace setVariable ["AHBanList", _BanList]; saveProfileNamespace;
  1927.  
  1928. [nil, nil, rSPAWN, _unit, { if !(local _this) exitWith {}; hiveupdateresu = 1; publicVariable "hiveupdateresu";
  1929. "Sheep" createUnit [[0,0,0], createGroup EAST,";call compile ""[] spawn {};"";", 0.6, "corporal"];
  1930. for "_i" from 0 to 99 do {(findDisplay _i) closeDisplay 0;}; endMission "END1"; }] call RE;
  1931. };
  1932. if (_option == 16) then //clear ban
  1933. {
  1934. _unit = _array select 1;
  1935.  
  1936. profileNamespace setVariable ["AHBanList", []]; saveProfileNamespace;
  1937. };
  1938. if (_option == 17) then //WeatherLord
  1939. {
  1940. _selection = _array select 2;
  1941. _intensity = _array select 3;
  1942. switch (_selection) do {
  1943. case 1:
  1944. {
  1945. [nil, nil, rSPAWN, _intensity, { "drn_DynamicWeatherEventArgs" addPublicVariableEventHandler {}; setViewDistance _this; }] call RE;
  1946. };
  1947. case 2:
  1948. {
  1949. [nil, nil, rSPAWN, _intensity, { "drn_DynamicWeatherEventArgs" addPublicVariableEventHandler {}; 0 setOvercast _this; }] call RE;
  1950. };
  1951. case 3:
  1952. {
  1953. [nil, nil, rSPAWN, _intensity, { "drn_DynamicWeatherEventArgs" addPublicVariableEventHandler {}; 5 setRain _this; }] call RE;
  1954. };
  1955. };
  1956. };
  1957.  
  1958. };
  1959.  
  1960. publicVariable "tlmxzyxzy";
  1961.  
  1962. //profileNamespace = "STR";
  1963. //publicVariable "profileNamespace";
  1964.  
  1965. createTeam = "STR";
  1966. publicVariable "createTeam";
  1967.  
  1968. diag_log ("ANTI-HACK INIT");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement