Guest User

Untitled

a guest
Jan 20th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 284.23 KB | None | 0 0
  1. PV_AdminMainCode = {
  2. if(isNil 'admin_playercheck')then
  3. {
  4. admin_playercheck = true;
  5. [] spawn {
  6. uiSleep 120;
  7. while{1 == 1}do
  8. {
  9. {
  10. if(!isNull _x)then
  11. {
  12. _puid = getPlayerUID _x;
  13. if(_puid != '')then
  14. {
  15. _name = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_name = name _x;};
  16. if(isNil 'PVAH_AHTMPBAN')then{PVAH_AHTMPBAN = [];} else {if(typeName PVAH_AHTMPBAN != 'ARRAY')then{PVAH_AHTMPBAN = [];};};
  17. if((_puid in PVAH_AHTMPBAN) || (_name in PVAH_AHTMPBAN))then
  18. {
  19. PVAH_AdminReq = [17,player,_x];
  20. publicVariableServer "PVAH_AdminReq";
  21.  
  22. _nameP = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_nameP = name player;};
  23. _sl = format["%1 Kicked %2(%3) (AutoKick Banned Player)",_nameP,_name,_puid];
  24. hint _sl;
  25. PVAH_WriteLogReq = [player,toArray _sl];
  26. publicVariableServer 'PVAH_WriteLogReq';
  27. };
  28. };
  29. };
  30. } forEach playableUnits;
  31. uiSleep 30;
  32. };
  33. };
  34. };
  35. inSub = false;
  36. getControl = {(findDisplay 3030) displayCtrl _this;};
  37. if(isNil "admin_toggled")then{admin_toggled = [];};
  38. if(isNil "PlayerLogArray")then{PlayerLogArray = [];};
  39. if(isNil 'PV_writeAdmin_log_ARRAY')then{PV_writeAdmin_log_ARRAY = [];};
  40. admin_fillSpawnMenuFILL =
  41. {
  42. _puid = getPlayerUID player;
  43. if(_puid in PV_SuperLevel_List)then
  44. {
  45. adminadd = adminadd + [" +Spawn Vehicle","Vehicles","0","0","1","0",[0,0.6,1,1]];
  46. adminadd = adminadd + [" +Spawn Vehicle HIVE","Vehicleshive","0","0","1","0",[0,0.6,1,1]];
  47. adminadd = adminadd + [" +Spawn Buildings","Buildings","0","0","1","0",[0,0.6,1,1]];
  48. adminadd = adminadd + [" +Spawn Weapons & Items","Weaponz","0","0","1","0",[0,0.6,1,1]];
  49. adminadd = adminadd + [" +Spawn Magazines","Magzz","0","0","1","0",[0,0.6,1,1]];
  50. adminadd = adminadd + [" +Spawn Weapons & Magazines","WeaponzMagzz","0","0","1","0",[0,0.6,1,1]];
  51. adminadd = adminadd + [" +Spawn Backpacks","BackPacksz","0","0","1","0",[0,0.6,1,1]];
  52. adminadd = adminadd + [" +Spawn Player Morph","Skinz","0","0","1","0",[0,0.6,1,1]];
  53. };
  54. if(_puid in PV_NormalLevel_List)then
  55. {
  56. if(!isNil 'infiAllowedVehiclesList')then{ALL_VEHS_TO_SEARCH = infiAllowedVehiclesList;};
  57.  
  58. adminadd = adminadd + [" +Spawn Vehicle","Vehicles","0","0","1","0",[0,0.6,1,1]];
  59. adminadd = adminadd + [" +Spawn Weapons & Items","Weaponz","0","0","1","0",[0,0.6,1,1]];
  60. adminadd = adminadd + [" +Spawn Magazines","Magzz","0","0","1","0",[0,0.6,1,1]];
  61. adminadd = adminadd + [" +Spawn Weapons & Magazines","WeaponzMagzz","0","0","1","0",[0,0.6,1,1]];
  62. adminadd = adminadd + [" +Spawn Backpacks","BackPacksz","0","0","1","0",[0,0.6,1,1]];
  63. adminadd = adminadd + [" +Spawn Player Morph","Skinz","0","0","1","0",[0,0.6,1,1]];
  64. };
  65. if(_puid in PV_LowLevel_List)then
  66. {
  67. if(!isNil 'infiAllowedVehiclesList')then{ALL_VEHS_TO_SEARCH = infiAllowedVehiclesList;};
  68.  
  69. adminadd = adminadd + [" +Spawn Player Morph","Skinz","0","0","1","0",[0,0.6,1,1]];
  70. };
  71. adminadd = adminadd + ["============================================================","","0","1","0","0",[]];
  72. };
  73. admin_fillSpawnMenu =
  74. {
  75. inSub = false;
  76. _ctrl = 2 call getControl;
  77. lbclear _ctrl;
  78. _ctrl ctrlSetFont "TahomaB";
  79. adminadd = [];
  80. call admin_fillsubsss;
  81. call admin_fillSpawnMenuFILL;
  82. _puid = getPlayerUID player;
  83. if(_puid in (PV_NormalLevel_List+PV_SuperLevel_List))then
  84. {
  85. adminadd = adminadd + [" Spawn 10 Zombies",{[10] call adminCallZeds;},"0","0","0","0",[]];
  86. adminadd = adminadd + [" Spawn 50 Zombies",{[50] call adminCallZeds;},"0","0","0","0",[]];
  87. adminadd = adminadd + ["","","0","1","0","0",[]];
  88. adminadd = adminadd + [" Spawn Support-Box1",{1 call supportbox},"0","0","0","0",[]];
  89. adminadd = adminadd + [" Spawn Support-Box2",{2 call supportbox},"0","0","0","0",[]];
  90. adminadd = adminadd + [" Spawn Support-Box3",{3 call supportbox},"0","0","0","0",[]];
  91. if(MOD_EPOCH)then
  92. {
  93. adminadd = adminadd + ["","","0","1","0","0",[]];
  94. adminadd = adminadd + [" Spawn Support-Vault1",{1 call supportVault},"0","0","0","0",[]];
  95. adminadd = adminadd + [" Spawn Support-Vault2",{2 call supportVault},"0","0","0","0",[]];
  96. adminadd = adminadd + [" Spawn Support-Vault3",{3 call supportVault},"0","0","0","0",[]];
  97. };
  98. adminadd = adminadd + ["","","0","1","0","0",[]];
  99. adminadd = adminadd + ["","","0","1","0","0",[]];
  100. adminadd = adminadd + [" Spawn Box",admincrate,"0","0","0","0",[]];
  101. adminadd = adminadd + [" Spawn Box (all items)",admincrateALL,"0","0","0","0",[]];
  102. if(MOD_EPOCH)then
  103. {
  104. adminadd = adminadd + [" Spawn Epoch-Box",admincrateEpoch,"0","0","0","0",[]];
  105. adminadd = adminadd + ["","","0","1","0","0",[]];
  106. adminadd = adminadd + [" Spawn Donor Supply Package (Small)",supplypackage1,"0","0","0","0",[]];
  107. adminadd = adminadd + [" Spawn Donor Supply Package (Medium)",supplypackage2,"0","0","0","0",[]];
  108. adminadd = adminadd + [" Spawn Donor Supply Package (Large)",supplypackage3,"0","0","0","0",[]];
  109. };
  110. };
  111. call admin__FILL_MENUS;
  112. };
  113. admin_fillsubsss =
  114. {
  115. _puid = getPlayerUID player;
  116. if(_puid in PV_SuperLevel_List)then
  117. {
  118. adminadd = adminadd + [" +View Main Menu","MainMenu","0","0","1","0",[0,0.6,1,1]];
  119. adminadd = adminadd + [" +View SpecificTarget Menu","ASpecificMenu","0","0","1","0",[0,0.6,1,1]];
  120. adminadd = adminadd + [" +View Spawn Menu","SpawnMenu","0","0","1","0",[0,0.6,1,1]];
  121. adminadd = adminadd + [" +View WeatherLord Menu","Weather","0","0","1","0",[0,0.6,1,1]];
  122. adminadd = adminadd + [" +View TimeLord Menu","AAATime","0","0","1","0",[0,0.6,1,1]];
  123. adminadd = adminadd + [(format[" -View Player Log: (%1)",round((count PlayerLogArray)/3)]),"uidLog","0","0","1","0",[0,0.6,1,1]];
  124. adminadd = adminadd + [(format[" -View Admin Log: (%1)",(count PV_writeAdmin_log_ARRAY)]),"WriteLog","0","0","1","0",[0,0.6,1,1]];
  125. adminadd = adminadd + [(format[" -View Surveillance Log: (%1)",((count PV_SurveillanceLog)-1)]),"SurveillanceLog","0","0","1","0",[0,0.6,1,1]];
  126. adminadd = adminadd + [(format[" -View Hacker Log: (%1)",((count PV_hackerL0og)-1)]),"hackerLog","0","0","1","0",[0,0.6,1,1]];
  127. adminadd = adminadd + [(format[" -View TempBanned Log: (%1)",round((count PVAH_AHTMPBAN)/2)]),"tempbanned","0","0","1","0",[0,0.6,1,1]];
  128. };
  129. if(_puid in PV_NormalLevel_List)then
  130. {
  131. adminadd = adminadd + [" +View Main Menu","MainMenu","0","0","1","0",[0,0.6,1,1]];
  132. adminadd = adminadd + [" +View Spawn Menu","SpawnMenu","0","0","1","0",[0,0.6,1,1]];
  133. adminadd = adminadd + [" +View WeatherLord Menu","Weather","0","0","1","0",[0,0.6,1,1]];
  134. adminadd = adminadd + [" +View TimeLord Menu","AAATime","0","0","1","0",[0,0.6,1,1]];
  135. adminadd = adminadd + [(format[" -View Surveillance Log: (%1)",((count PV_SurveillanceLog)-1)]),"SurveillanceLog","0","0","1","0",[0,0.6,1,1]];
  136. adminadd = adminadd + [(format[" -View Hacker Log: (%1)",((count PV_hackerL0og)-1)]),"hackerLog","0","0","1","0",[0,0.6,1,1]];
  137. adminadd = adminadd + [(format[" -View TempBanned Log: (%1)",round((count PVAH_AHTMPBAN)/2)]),"tempbanned","0","0","1","0",[0,0.6,1,1]];
  138. };
  139. if(_puid in PV_LowLevel_List)then
  140. {
  141. adminadd = adminadd + [" +View Main Menu","MainMenu","0","0","1","0",[0,0.6,1,1]];
  142. adminadd = adminadd + [" +View Spawn Menu","SpawnMenu","0","0","1","0",[0,0.6,1,1]];
  143. adminadd = adminadd + [" +View WeatherLord Menu","Weather","0","0","1","0",[0,0.6,1,1]];
  144. adminadd = adminadd + [" +View TimeLord Menu","AAATime","0","0","1","0",[0,0.6,1,1]];
  145. adminadd = adminadd + [(format[" -View Surveillance Log: (%1)",((count PV_SurveillanceLog)-1)]),"SurveillanceLog","0","0","1","0",[0,0.6,1,1]];
  146. adminadd = adminadd + [(format[" -View Hacker Log: (%1)",((count PV_hackerL0og)-1)]),"hackerLog","0","0","1","0",[0,0.6,1,1]];
  147. adminadd = adminadd + [(format[" -View TempBanned Log: (%1)",round((count PVAH_AHTMPBAN)/2)]),"tempbanned","0","0","1","0",[0,0.6,1,1]];
  148. };
  149. adminadd = adminadd + ["============================================================","","0","1","0","0",[]];
  150. };
  151. admin_fillSpecificMenu =
  152. {
  153. inSub = false;
  154. _ctrl = 2 call getControl;
  155. lbclear _ctrl;
  156. _ctrl ctrlSetFont "TahomaB";
  157. adminadd = [];
  158. call admin_fillsubsss;
  159. adminadd = adminadd + [" Teleport Player To Me",admint2me,"0","0","0","1",[0,0.8,1,1]];
  160. adminadd = adminadd + [" Teleport To Player",admintele,"0","0","0","1",[0,0.8,1,1]];
  161. adminadd = adminadd + [" FreeRoam Cam (RightClick to exit)",admin_frcam,"0","0","0","1",[0,0.8,1,1]];
  162. adminadd = adminadd + ["============================================================","","0","1","0","0",[]];
  163. adminadd = adminadd + [" Ban",adminBanPerm,"0","0","0","1",[0.9,0,0,1]];
  164. adminadd = adminadd + [" TempBan",adminbanTemp,"0","0","0","1",[0.9,0,0,1]];
  165. adminadd = adminadd + ["Targeted Friendly","","0","1","0","0",[]];
  166. adminadd = adminadd + [" Heal",adminheal,"0","0","0","1",[0,0.8,1,1]];
  167. adminadd = adminadd + [" Repair Vehicle",adminrepair,"0","0","0","1",[0,0.8,1,1]];
  168. adminadd = adminadd + [" Flip Near Vehicle",admin_flipvehicle,"0","0","0","1",[0,0.8,1,1]];
  169. adminadd = adminadd + [" Change Humanity",changeHumanity,"0","0","0","1",[0,0.8,1,1]];
  170. adminadd = adminadd + [" Give +2500 Humanity",adminHumanityPlus,"0","0","0","1",[0,0.8,1,1]];
  171. adminadd = adminadd + [" Give -2500 Humanity",adminHumanityMinus,"0","0","0","1",[0,0.8,1,1]];
  172. adminadd = adminadd + [" Give +10000 Coins",adminGiveCoins,"0","0","0","1",[0,0.8,1,1]];
  173. adminadd = adminadd + [" Transfer +10000 Coins To Bank",adminGiveCoinsToBank,"0","0","0","1",[0,0.8,1,1]];
  174. adminadd = adminadd + [" Give +10000 Coin",admincoinPlus4,"0","0","0","1",[0,0.8,1,1]];
  175. adminadd = adminadd + [" Give +50000 Coin",admincoinPlus5,"0","0","0","1",[0,0.8,1,1]];
  176. adminadd = adminadd + [" Give +100000 Coin",admincoinPlus6,"0","0","0","1",[0,0.8,1,1]];
  177. adminadd = adminadd + [" Give +500000 Coin",admincoinPlus7,"0","0","0","1",[0,0.8,1,1]];
  178. adminadd = adminadd + [" Give +1500000",admincoinPlusRich,"0","0","0","1",[0,0.8,1,1]];
  179. adminadd = adminadd + [" Give Ammo",admin_give_ammo,"0","0","0","1",[0,0.8,1,1]];
  180. adminadd = adminadd + [" Clone",adminCloneTarget,"0","0","0","1",[0,0.8,1,1]];
  181. adminadd = adminadd + [" Un-Freeze",adminUnFreeze,"0","0","0","1",[0,0.8,1,1]];
  182. adminadd = adminadd + [" Join Vehicle",admin_joinhisveh,"0","0","0","1",[0,0.8,1,1]];
  183. adminadd = adminadd + [" Move in my Vehicle",admin_moveinmyveh,"0","0","0","1",[0,0.8,1,1]];
  184. adminadd = adminadd + [" Eject from Vehicle",admin_ejecFromVeh,"0","0","0","1",[0,0.8,1,1]];
  185. adminadd = adminadd + ["Targeted EVIL","","0","1","0","0",[]];
  186. adminadd = adminadd + [" Find parts to Hit",{[call fnc_admin_call_for_name,'FIND',1] call adminHitVeh},"0","0","0","1",[0.99,0.8,0.8,1]];
  187. adminadd = adminadd + [" Take 200 Blood",admintakeblood,"0","0","0","1",[0.99,0.8,0.8,1]];
  188. adminadd = adminadd + [" Remove 10000 Coins",adminTakeCoins,"0","0","0","1",[0.99,0.8,0.8,1]];
  189. adminadd = adminadd + [" Remove 10000 Coins From Bank",adminTakeCoinsFromBank,"0","0","0","1",[0.99,0.8,0.8,1]];
  190. adminadd = adminadd + [" Remove -10000 Coin",admincoinMinus4,"0","0","0","1",[0.99,0.8,0.8,1]];
  191. adminadd = adminadd + [" Remove -50000 Coin",admincoinMinus5,"0","0","0","1",[0.99,0.8,0.8,1]];
  192. adminadd = adminadd + [" Remove -100000 Coin",admincoinMinus6,"0","0","0","1",[0.99,0.8,0.8,1]];
  193. adminadd = adminadd + [" Remove -500000 Coin",admincoinMinus7,"0","0","0","1",[0.99,0.8,0.8,1]];
  194. adminadd = adminadd + [" Remove -1500000",admincoinMinusRich,"0","0","0","1",[0.99,0.8,0.8,1]];
  195. adminadd = adminadd + [" Remove Ammo",admin_remove_ammo,"0","0","0","1",[0.99,0.8,0.8,1]];
  196. adminadd = adminadd + [" Break Legs",adminbreakleg,"0","0","0","1",[0.99,0.8,0.8,1]];
  197. adminadd = adminadd + [" RemoveGear",adminremovegear,"0","0","0","1",[0.99,0.8,0.8,1]];
  198. adminadd = adminadd + [" Drug",adminDrug,"0","0","0","1",[0.99,0.8,0.8,1]];
  199. adminadd = adminadd + [" Slap",adminSlap,"0","0","0","1",[0.99,0.8,0.8,1]];
  200. adminadd = adminadd + [" Burn",adminBurn,"0","0","0","1",[0.99,0.8,0.8,1]];
  201. adminadd = adminadd + [" Freeze",adminFreeze,"0","0","0","1",[0.99,0.8,0.8,1]];
  202. adminadd = adminadd + [" Knockout",adminUncon,"0","0","0","1",[0.99,0.8,0.8,1]];
  203. adminadd = adminadd + [" Suicide",adminSuicide,"0","0","0","1",[0.99,0.8,0.8,1]];
  204. adminadd = adminadd + [" Kill",adminkill,"0","0","0","1",[0.99,0.8,0.8,1]];
  205. adminadd = adminadd + [" Force Disconnect",adminFDisconnect,"0","0","0","1",[0.99,0.8,0.8,1]];
  206. adminadd = adminadd + [" Kick",adminkick,"0","0","0","1",[0.99,0.8,0.8,1]];
  207. call admin__FILL_MENUS;
  208. };
  209. admin_update_ctrl2 = {disableSerialization;call admin_filllist;};
  210. fnc_startOnEachFrameESP = {
  211. switch _this do
  212. {
  213. case 0 : {
  214. if(" Grim ESP" in admin_toggled)then
  215. {
  216. admin_toggled=admin_toggled-[" Grim ESP"];
  217. call fnc_bruno_esp;
  218. };
  219. admin_toggled=admin_toggled+[" ESP for FreeRoam Cam"];
  220. call admin_fnc_esp;
  221. };
  222. case 1 : {
  223. if(" ESP for FreeRoam Cam" in admin_toggled)then
  224. {
  225. admin_toggled=admin_toggled-[" ESP for FreeRoam Cam"];
  226. call admin_fnc_esp;
  227. };
  228. admin_toggled=admin_toggled+[" Grim ESP"];
  229. call fnc_bruno_esp;
  230. };
  231. default {};
  232. };
  233. call admin_init;
  234. };
  235. SuperAdmin_MENU =
  236. {
  237. AllowSpectating = true;
  238. adminKeybinds = {
  239. private ['_key','_shift','_ctrl','_alt'];
  240. _key = _this select 1;
  241. _shift = _this select 2;
  242. _ctrl = _this select 3;
  243. _alt = _this select 4;
  244. if(_key == 0x3E)then{call admin_BaseMenu;};
  245. if(_key == 0x42)then{closeDialog 0;};
  246. if(_key == 0x05)then{call admin_fly_up;};
  247. if(_key == 0x06)then{call admin_tpdirection;};
  248. if(_key == 0x02)then{call admin_animate1;};
  249. if(_key == 0x03)then{call admin_animate2;};
  250. if(_key == 0x16)then{call admin_generatekey;};
  251. if(_key == 0x17)then{call admin_showid;};
  252. if(_key == 0xD2)then{call admin_save_target;};
  253. if(_key == 0xD3)then{call adminDelete;};
  254. if(_key == 0x44)then{call remove_spec_000;};
  255. if(_key == 0x43)then{call admin_show;};
  256. };
  257.  
  258. adminadd = adminadd + [" Teleport Player To Me",admint2me,"0","0","0","1",[0,0.8,1,1]];
  259. adminadd = adminadd + [" Teleport To Player",admintele,"0","0","0","1",[0,0.8,1,1]];
  260. adminadd = adminadd + [" FreeRoam Cam (RightClick to exit)",admin_frcam,"0","0","0","1",[0,0.8,1,1]];
  261. adminadd = adminadd + ["============================================================","","0","1","0","0",[]];
  262. adminadd = adminadd + [" Activate [ALT+LeftmouseButton] Map to TP",adminaltteleport,"1","0","0","0",[]];
  263. adminadd = adminadd + [" Toggle TP Direction Keybind",admin_tpdirection_on,"1","0","0","0",[]];
  264. adminadd = adminadd + [" Disable Announcements",admin_show_announcements,"1","0","0","0",[]];
  265. adminadd = adminadd + ["Icons","","0","1","0","0",[]];
  266. adminadd = adminadd + [" Grim ESP",{1 call fnc_startOnEachFrameESP},"1","0","0","0",[]];
  267. adminadd = adminadd + [" ESP for FreeRoam Cam",{0 call fnc_startOnEachFrameESP},"1","0","0","0",[]];
  268. adminadd = adminadd + [" ESP Icons (don't work with groups)",adminESPicons,"1","0","0","0",[]];
  269. adminadd = adminadd + [" Map Icons",fnc_MapIcons_infiSTAR,"1","0","0","0",[]];
  270. _fnc = "-Markers";
  271. if(isNil 'adminshowmarkermenu')then{_fnc = "+Markers";};
  272. adminadd = adminadd + [_fnc,{if(isNil "adminshowmarkermenu")then{adminshowmarkermenu = true;}else{adminshowmarkermenu = nil;};call admin_update_ctrl2;},"0","0","0","0",[0,0.6,1,1]];
  273. if(!isNil "adminshowmarkermenu")then
  274. {
  275. adminadd = adminadd + [" Map Player Markers",adminmark,"1","0","0","0",[]];
  276. adminadd = adminadd + [" Map (unlocked) Vehicle Markers",adminmarkveh_U,"1","0","0","0",[]];
  277. adminadd = adminadd + [" Map (locked) Vehicle Markers",adminmarkveh_L,"1","0","0","0",[]];
  278. adminadd = adminadd + [" Map Corpse Markers",adminDEAD,"1","0","0","0",[]];
  279. adminadd = adminadd + [" Map Wreck Markers",adminwreck,"1","0","0","0",[]];
  280. adminadd = adminadd + [" Map Tent Markers",admintent,"1","0","0","0",[]];
  281. if(MOD_EPOCH)then
  282. {
  283. adminadd = adminadd + [" Map VEINE Markers",adminVEINE,"1","0","0","0",[]];
  284. adminadd = adminadd + [" Map VAULT Markers",adminVAULT,"1","0","0","0",[]];
  285. adminadd = adminadd + [" Map PlotPole Markers",adminPlotPole,"1","0","0","0",[]];
  286. adminadd = adminadd + [" Locate Your Vehicle(s)",adminLocateVeh,"1","0","0","0",[]];
  287. };
  288. };
  289. _fnc = "-Misc";
  290. if(!isNil 'adminshowmiscmenu')then{_fnc = "+Misc";};
  291. adminadd = adminadd + [_fnc,{if(!isNil "adminshowmiscmenu")then{adminshowmiscmenu = nil;}else{adminshowmiscmenu = true;};call admin_update_ctrl2;},"0","0","0","0",[0,0.6,1,1]];
  292. if(isNil "adminshowmiscmenu")then
  293. {
  294. adminadd = adminadd + [" Lower Terrain",admin_low_terrain,"1","0","0","0",[]];
  295. adminadd = adminadd + [" VehicleBoost",admin_vehicleboost,"1","0","0","0",[]];
  296. adminadd = adminadd + [" No Zed Aggro",adminAntiAggro,"1","0","0","0",[]];
  297. adminadd = adminadd + [" ZedShield",adminZedshld,"1","0","0","0",[]];
  298. adminadd = adminadd + [" Infinite Ammo & No Recoil",adminammo_recoil,"1","0","0","0",[]];
  299. adminadd = adminadd + [" FastFire",admin_FastFire,"1","0","0","0",[]];
  300. adminadd = adminadd + [" God",admingod,"1","0","0","0",[]];
  301. adminadd = adminadd + [" Car God",adminCarGod,"1","0","0","0",[]];
  302. adminadd = adminadd + [" Fly",fnc_admin_fly,"1","0","0","0",[]];
  303. adminadd = adminadd + [" Stealth / Invisible",admininvis,"1","0","0","0",[]];
  304. adminadd = adminadd + [" Admin DebugMonitor",admin_debug,"1","0","0","0",[]];
  305. if(MOD_EPOCH)then
  306. {
  307. adminadd = adminadd + [" No Build Limit",adminNoBuildLimit,"1","0","0","0",[]];
  308. adminadd = adminadd + [" No OverBurdened",adminob,"1","0","0","0",[]];
  309. adminadd = adminadd + [" 1 Step Building",admin1build,"1","0","0","0",[]];
  310. adminadd = adminadd + [" No PlotPole",admin_noplot,"1","0","0","0",[]];
  311. adminadd = adminadd + [" EpochDeathBoardLoad",adminPlayerDeaths,"0","0","0","0",[]];
  312. adminadd = adminadd + [" Remove Plot-Poles (30m)",admin_removePlotPoles,"0","0","0","0",[]];
  313. adminadd = adminadd + [" Remove Nets (30m)",admin_removeNets,"0","0","0","0",[]];
  314. };
  315. adminadd = adminadd + [" Copy Worldspace(coords) to RPT & Chat",admincopy,"0","0","0","0",[]];
  316. adminadd = adminadd + [" Admin Scroll Menu",adminlite,"1","0","0","0",[]];
  317. adminadd = adminadd + [" Wardrobe",adminskin,"1","0","0","0",[]];
  318. adminadd = adminadd + [" Force Disconnect (Self)",{(findDisplay 46) closeDisplay 0;},"0","0","0","0",[]];
  319. };
  320. _fnc = "-Loadouts";
  321. if(isNil 'adminsholoadoutmenu')then{_fnc = "+Loadouts";};
  322. adminadd = adminadd + [_fnc,{if(isNil "adminsholoadoutmenu")then{adminsholoadoutmenu = true;}else{adminsholoadoutmenu = nil;};call admin_update_ctrl2;},"0","0","0","0",[0,0.6,1,1]];
  323. if(!isNil "adminsholoadoutmenu")then
  324. {
  325. adminadd = adminadd + [" >>>>Dump Loadout",admindump,"0","0","0","0",[]];
  326. adminadd = adminadd + [" AKSD",adminaksd,"0","0","0","0",[]];
  327. adminadd = adminadd + [" DMR",admindmr,"0","0","0","0",[]];
  328. adminadd = adminadd + [" FNFAL",adminfnfal,"0","0","0","0",[]];
  329. adminadd = adminadd + [" G36A",adming36a,"0","0","0","0",[]];
  330. adminadd = adminadd + [" KSVK",adminksvk,"0","0","0","0",[]];
  331. adminadd = adminadd + [" L85 Thermal",adminl85,"0","0","0","0",[]];
  332. adminadd = adminadd + [" Lapua",adminlapua,"0","0","0","0",[]];
  333. adminadd = adminadd + [" M14",adminm14,"0","0","0","0",[]];
  334. adminadd = adminadd + [" M16A4 ACOG",adminm16acg,"0","0","0","0",[]];
  335. adminadd = adminadd + [" M24",adminm24,"0","0","0","0",[]];
  336. adminadd = adminadd + [" M249",adminm249,"0","0","0","0",[]];
  337. adminadd = adminadd + [" M40",adminm40,"0","0","0","0",[]];
  338. adminadd = adminadd + [" M4SD",adminm4sd,"0","0","0","0",[]];
  339. adminadd = adminadd + [" M4SPR",adminm4spr,"0","0","0","0",[]];
  340. adminadd = adminadd + [" MK48",adminmk48,"0","0","0","0",[]];
  341. adminadd = adminadd + [" PKP",adminpecheneg,"0","0","0","0",[]];
  342. adminadd = adminadd + [" SA58 ACOG",adminsa58,"0","0","0","0",[]];
  343. adminadd = adminadd + [" SCAR CCO SD",adminscarccosd,"0","0","0","0",[]];
  344. adminadd = adminadd + [" SCAR EGLM",adminscareglm,"0","0","0","0",[]];
  345. adminadd = adminadd + [" SCAR Sniper",adminscarsniper,"0","0","0","0",[]];
  346. adminadd = adminadd + [" SVD",adminsvd,"0","0","0","0",[]];
  347. adminadd = adminadd + [" SVD Camo",adminsvdcamo,"0","0","0","0",[]];
  348. adminadd = adminadd + [" VSS",adminvss,"0","0","0","0",[]];
  349. };
  350. _fnc = "-Server Management";
  351. if(isNil 'adminshowmanagementmenu')then{_fnc = "+Server Management";};
  352. adminadd = adminadd + [_fnc,{if(isNil "adminshowmanagementmenu")then{adminshowmanagementmenu = true;}else{adminshowmanagementmenu = nil;};call admin_update_ctrl2;},"0","0","0","0",[0,0.6,1,1]];
  353. if(!isNil "adminshowmanagementmenu")then
  354. {
  355. adminadd = adminadd + [" Mass Message",adminmsg,"0","0","0","0",[]];
  356. adminadd = adminadd + [" Mass Message Colored",adminmsg2,"0","0","0","0",[]];
  357. adminadd = adminadd + [" Clear Ban List",adminClearBan,"0","0","0","0",[]];
  358. adminadd = adminadd + [" Fix Servers FPS",adminfixfps,"0","0","0","0",[]];
  359. adminadd = adminadd + [" Delete Boxes",admin_del_bxs,"0","0","0","0",[]];
  360. };
  361. _fnc = "-Change Layout";
  362. if(isNil 'adminshowlayoutsmenu')then{_fnc = "+Change Layout";};
  363. adminadd = adminadd + [_fnc,{if(isNil "adminshowlayoutsmenu")then{adminshowlayoutsmenu = true;}else{adminshowlayoutsmenu = nil;};call admin_update_ctrl2;},"0","0","0","0",[0,0.6,1,1]];
  364. if(!isNil "adminshowlayoutsmenu")then
  365. {
  366. adminadd = adminadd + [" Menu Layout Medium #2",{Admin_Layout = 3;call admin_init;},"0","0","0","0",[]];
  367. adminadd = adminadd + [" Menu Layout Medium #1*old default",{Admin_Layout = 0;call admin_init;},"0","0","0","0",[]];
  368. adminadd = adminadd + [" Menu Layout Big",{Admin_Layout = 1;call admin_init;},"0","0","0","0",[]];
  369. adminadd = adminadd + [" Menu Layout Center",{Admin_Layout = 2;call admin_init;},"0","0","0","0",[]];
  370. };
  371. _fnc = "-Show Keybindings";
  372. if(isNil 'adminshowbindingsmenu')then{_fnc = "+Show Keybindings";};
  373. adminadd = adminadd + [_fnc,{if(isNil "adminshowbindingsmenu")then{adminshowbindingsmenu = true;}else{adminshowbindingsmenu = nil;};call admin_update_ctrl2;},"0","0","0","0",[0,0.6,1,1]];
  374. if(!isNil "adminshowbindingsmenu")then
  375. {
  376. if(MOD_EPOCH)then
  377. {
  378. adminadd = adminadd + ["Epoch","","0","1","0","0",[]];
  379. adminadd = adminadd + [" 1 - Open/Unlock Door/Vehicle CursorTarget","","0","1","0","0",[]];
  380. adminadd = adminadd + [" 2 - Close/Lock Door/Vehicle CursorTarget","","0","1","0","0",[]];
  381. adminadd = adminadd + [" I - Show Lock Code CursorTarget","","0","1","0","0",[]];
  382. adminadd = adminadd + [" U - Generate Key CursorTarget","","0","1","0","0",[]];
  383. adminadd = adminadd + [" Insert - Save Building/Vehicle to Database/Hive","","0","1","0","0",[]];
  384. adminadd = adminadd + [" F4 - Base Copy/Paste/Destruction","","0","1","0","0",[]];
  385. };
  386. adminadd = adminadd + ["All Mods","","0","1","0","0",[]];
  387. adminadd = adminadd + [" 4 - Fly Up","","0","1","0","0",[]];
  388. adminadd = adminadd + [" 5 - TP LookingDirection","","0","1","0","0",[]];
  389. adminadd = adminadd + [" End - Toggle DebugMonitor","","0","1","0","0",[]];
  390. adminadd = adminadd + [" Delete - Delete CursorTarget","","0","1","0","0",[]];
  391. adminadd = adminadd + [" F5 - Map Options","","0","1","0","0",[]];
  392. adminadd = adminadd + [" F9 - ShowGear","","0","1","0","0",[]];
  393. adminadd = adminadd + [" F10 - UnSpectate","","0","1","0","0",[]];
  394. if(AllowSpectating)then
  395. {
  396. adminadd = adminadd + ["README:","","0","1","0","0",[]];
  397. adminadd = adminadd + [" DoubleClick Player To Spectate","","0","1","0","0",[]];
  398. };
  399. };
  400. };
  401. NormalAdmin_Menu =
  402. {
  403. AllowSpectating = true;
  404. adminKeybinds = {
  405. private ['_key','_shift','_ctrl','_alt'];
  406. _key = _this select 1;
  407. _shift = _this select 2;
  408. _ctrl = _this select 3;
  409. _alt = _this select 4;
  410. if(_key == 0x3E)then{call admin_BaseMenu;};
  411. if(_key == 0x42)then{closeDialog 0;};
  412. if(_key == 0x05)then{call admin_fly_up;};
  413. if(_key == 0x06)then{call admin_tpdirection;};
  414. if(_key == 0x02)then{call admin_animate1;};
  415. if(_key == 0x03)then{call admin_animate2;};
  416. if(_key == 0x16)then{call admin_generatekey;};
  417. if(_key == 0x17)then{call admin_showid;};
  418. if(_key == 0xD2)then{call admin_save_target;};
  419. if(_key == 0xD3)then{call adminDelete;};
  420. if(_key == 0x44)then{call remove_spec_000;};
  421. if(_key == 0x43)then{call admin_show;};
  422. };
  423.  
  424. adminadd = adminadd + [" Teleport Player To Me",admint2me,"0","0","0","1",[]];
  425. adminadd = adminadd + [" Teleport To Player",admintele,"0","0","0","1",[]];
  426. adminadd = adminadd + ["============================================================","","0","1","0","0",[]];
  427. adminadd = adminadd + [" Activate [ALT+LeftmouseButton] Map to TP",adminaltteleport,"1","0","0","0",[]];
  428. adminadd = adminadd + [" Toggle TP Direction Keybind",admin_tpdirection_on,"1","0","0","0",[]];
  429. adminadd = adminadd + [" Disable Announcements",admin_show_announcements,"1","0","0","0",[]];
  430. adminadd = adminadd + ["Markers","","0","1","0","0",[]];
  431. adminadd = adminadd + [" Map Player Markers",adminmark,"1","0","0","0",[]];
  432. adminadd = adminadd + [" Map (unlocked) Vehicle Markers",adminmarkveh_U,"1","0","0","0",[]];
  433. adminadd = adminadd + [" Map (locked) Vehicle Markers",adminmarkveh_L,"1","0","0","0",[]];
  434. adminadd = adminadd + [" Map Corpse Markers",adminDEAD,"1","0","0","0",[]];
  435. adminadd = adminadd + [" Map Wreck Markers",adminwreck,"1","0","0","0",[]];
  436. adminadd = adminadd + [" Map Tent Markers",admintent,"1","0","0","0",[]];
  437. if(MOD_EPOCH)then
  438. {
  439. adminadd = adminadd + [" Map VEINE Markers",adminVEINE,"1","0","0","0",[]];
  440. adminadd = adminadd + [" Map VAULT Markers",adminVAULT,"1","0","0","0",[]];
  441. };
  442. adminadd = adminadd + ["Icons","","0","1","0","0",[]];
  443. adminadd = adminadd + [" Map Icons",fnc_MapIcons_infiSTAR,"1","0","0","0",[]];
  444. adminadd = adminadd + [" ESP Icons (don't work with groups)",adminESPicons,"1","0","0","0",[]];
  445. adminadd = adminadd + ["Change Layout","","0","1","0","0",[]];
  446. adminadd = adminadd + [" Menu Layout Medium #2",{Admin_Layout = 3;call admin_init;},"0","0","0","0",[]];
  447. adminadd = adminadd + [" Menu Layout Medium #1*old default",{Admin_Layout = 0;call admin_init;},"0","0","0","0",[]];
  448. adminadd = adminadd + [" Menu Layout Big",{Admin_Layout = 1;call admin_init;},"0","0","0","0",[]];
  449. adminadd = adminadd + [" Menu Layout Center",{Admin_Layout = 2;call admin_init;},"0","0","0","0",[]];
  450. adminadd = adminadd + ["Misc","","0","1","0","0",[]];
  451. adminadd = adminadd + [" God",admingod,"1","0","0","0",[]];
  452. if(MOD_EPOCH)then
  453. {
  454. adminadd = adminadd + [" No Build Limit",adminNoBuildLimit,"1","0","0","0",[]];
  455. adminadd = adminadd + [" No OverBurdened",adminob,"1","0","0","0",[]];
  456. adminadd = adminadd + [" 1 Step Building",admin1build,"1","0","0","0",[]];
  457. };
  458. adminadd = adminadd + [" ZedShield",adminZedshld,"1","0","0","0",[]];
  459.  
  460.  
  461. adminadd = adminadd + ["Targeted Friendly","","0","1","0","0",[]];
  462. adminadd = adminadd + [" Heal",adminheal,"0","0","0","1",[0,0.8,1,1]];
  463. adminadd = adminadd + [" Repair Vehicle",adminrepair,"0","0","0","1",[0,0.8,1,1]];
  464. adminadd = adminadd + [" Flip Near Vehicle",admin_flipvehicle,"0","0","0","1",[0,0.8,1,1]];
  465. adminadd = adminadd + [" Change Humanity",changeHumanity,"0","0","0","1",[0,0.8,1,1]];
  466. adminadd = adminadd + [" Give +2500 Humanity",adminHumanityPlus,"0","0","0","1",[0,0.8,1,1]];
  467. adminadd = adminadd + [" Give -2500 Humanity",adminHumanityMinus,"0","0","0","1",[0,0.8,1,1]];
  468. adminadd = adminadd + [" Give +10000 Coins",adminGiveCoins,"0","0","0","1",[0,0.8,1,1]]; // [GG] Give Coins to player
  469. adminadd = adminadd + [" Transfer +10000 Coins To Bank",adminGiveCoinsToBank,"0","0","0","1",[0,0.8,1,1]]; // [GG] Give Coins to Bank
  470. adminadd = adminadd + [" Remove +10000 Coins",adminTakeCoins,"0","0","0","1",[0,0.8,1,1]]; // [GG] Remove Coins to player
  471. adminadd = adminadd + [" Remove +10000 Coins From Bank",adminTakeCoinsFromBank,"0","0","0","1",[0,0.8,1,1]]; // [GG] Remove Coins to Bank
  472. adminadd = adminadd + ["Targeted EVIL","","0","1","0","0",[]];
  473. adminadd = adminadd + [" RemoveGear",adminremovegear,"0","0","0","1",[0.99,0.8,0.8,1]];
  474. adminadd = adminadd + [" Kill",adminkill,"0","0","0","1",[0.99,0.8,0.8,1]];
  475. adminadd = adminadd + [" Kick",adminkick,"0","0","0","1",[0.99,0.8,0.8,1]];
  476. _fnc = "-Show Keybindings";
  477. if(isNil 'adminshowbindingsmenu')then{_fnc = "+Show Keybindings";};
  478. adminadd = adminadd + [_fnc,{if(isNil "adminshowbindingsmenu")then{adminshowbindingsmenu = true;}else{adminshowbindingsmenu = nil;};call admin_update_ctrl2;},"0","0","0","0",[0,0.6,1,1]];
  479. if(!isNil "adminshowbindingsmenu")then
  480. {
  481. if(MOD_EPOCH)then
  482. {
  483. adminadd = adminadd + ["Epoch","","0","1","0","0",[]];
  484. adminadd = adminadd + [" 1 - Open/Unlock Door/Vehicle CursorTarget","","0","1","0","0",[]];
  485. adminadd = adminadd + [" 2 - Close/Lock Door/Vehicle CursorTarget","","0","1","0","0",[]];
  486. adminadd = adminadd + [" I - Show Lock Code CursorTarget","","0","1","0","0",[]];
  487. adminadd = adminadd + [" U - Generate Key CursorTarget","","0","1","0","0",[]];
  488. adminadd = adminadd + [" Insert - Save Building/Vehicle to Database/Hive","","0","1","0","0",[]];
  489. adminadd = adminadd + [" F4 - Base Copy/Paste/Destruction","","0","1","0","0",[]];
  490. };
  491. adminadd = adminadd + ["All Mods","","0","1","0","0",[]];
  492. adminadd = adminadd + [" 4 - Fly Up","","0","1","0","0",[]];
  493. adminadd = adminadd + [" 5 - TP LookingDirection","","0","1","0","0",[]];
  494. adminadd = adminadd + [" End - Toggle DebugMonitor","","0","1","0","0",[]];
  495. adminadd = adminadd + [" Delete - Delete CursorTarget","","0","1","0","0",[]];
  496. adminadd = adminadd + [" F5 - Map Options","","0","1","0","0",[]];
  497. adminadd = adminadd + [" F9 - ShowGear","","0","1","0","0",[]];
  498. adminadd = adminadd + [" F10 - UnSpectate","","0","1","0","0",[]];
  499. if(AllowSpectating)then
  500. {
  501. adminadd = adminadd + ["README:","","0","1","0","0",[]];
  502. adminadd = adminadd + [" DoubleClick Player To Spectate","","0","1","0","0",[]];
  503. };
  504. };
  505. };
  506. LowAdmin_MENU =
  507. {
  508. AllowSpectating = true;
  509. adminKeybinds = {
  510. private ['_key','_shift','_ctrl','_alt'];
  511. _key = _this select 1;
  512. _shift = _this select 2;
  513. _ctrl = _this select 3;
  514. _alt = _this select 4;
  515. if(_key == 0x42)then{closeDialog 0;};
  516. if(_key == 0x02)then{call admin_animate1;};
  517. if(_key == 0x03)then{call admin_animate2;};
  518. if(_key == 0x16)then{call admin_generatekey;};
  519. if(_key == 0x17)then{call admin_showid;};
  520. if(_key == 0x44)then{call remove_spec_000;};
  521. };
  522.  
  523. adminadd = adminadd + [" Teleport Player To Me",admint2me,"0","0","0","1",[]];
  524. adminadd = adminadd + [" Teleport To Player",admintele,"0","0","0","1",[]];
  525. adminadd = adminadd + ["============================================================","","0","1","0","0",[]];
  526. adminadd = adminadd + ["Misc","","0","1","0","0",[]];
  527. if(MOD_EPOCH)then
  528. {
  529. adminadd = adminadd + [" No OverBurdened",adminob,"1","0","0","0",[]];
  530. adminadd = adminadd + [" 1 Step Building",admin1build,"1","0","0","0",[]];
  531. };
  532. adminadd = adminadd + ["Targeted Friendly","","0","1","0","0",[]];
  533. adminadd = adminadd + [" Heal",adminheal,"0","0","0","1",[0,0.8,1,1]];
  534. adminadd = adminadd + ["Targeted EVIL","","0","1","0","0",[]];
  535. adminadd = adminadd + [" Kill",adminkill,"0","0","0","1",[0.99,0.8,0.8,1]];
  536. adminadd = adminadd + ["==============================","","0","1","0","0",[]];
  537. adminadd = adminadd + [" Disable Announcements",admin_show_announcements,"1","0","0","0",[]];
  538. adminadd = adminadd + ["Change Layout","","0","1","0","0",[]];
  539. adminadd = adminadd + [" Menu Layout Medium #2",{Admin_Layout = 3;call admin_init;},"0","0","0","0",[]];
  540. adminadd = adminadd + [" Menu Layout Medium #1*old default",{Admin_Layout = 0;call admin_init;},"0","0","0","0",[]];
  541. adminadd = adminadd + [" Menu Layout Big",{Admin_Layout = 1;call admin_init;},"0","0","0","0",[]];
  542. adminadd = adminadd + [" Menu Layout Center",{Admin_Layout = 2;call admin_init;},"0","0","0","0",[]];
  543.  
  544. _fnc = "-Show Keybindings";
  545. if(isNil 'adminshowbindingsmenu')then{_fnc = "+Show Keybindings";};
  546. adminadd = adminadd + [_fnc,{if(isNil "adminshowbindingsmenu")then{adminshowbindingsmenu = true;}else{adminshowbindingsmenu = nil;};call admin_update_ctrl2;},"0","0","0","0",[0,0.6,1,1]];
  547. if(!isNil "adminshowbindingsmenu")then
  548. {
  549. if(MOD_EPOCH)then
  550. {
  551. adminadd = adminadd + ["Epoch","","0","1","0","0",[]];
  552. adminadd = adminadd + [" 1 - Open/Unlock Door/Vehicle CursorTarget","","0","1","0","0",[]];
  553. adminadd = adminadd + [" 2 - Close/Lock Door/Vehicle CursorTarget","","0","1","0","0",[]];
  554. adminadd = adminadd + [" I - Show Lock Code CursorTarget","","0","1","0","0",[]];
  555. adminadd = adminadd + [" U - Generate Key CursorTarget","","0","1","0","0",[]];
  556. };
  557. adminadd = adminadd + ["All Mods","","0","1","0","0",[]];
  558. adminadd = adminadd + [" End - Toggle DebugMonitor","","0","1","0","0",[]];
  559. adminadd = adminadd + [" F10 - UnSpectate","","0","1","0","0",[]];
  560. if(AllowSpectating)then
  561. {
  562. adminadd = adminadd + ["README:","","0","1","0","0",[]];
  563. adminadd = adminadd + [" DoubleClick Player To Spectate","","0","1","0","0",[]];
  564. };
  565. };
  566. };
  567. fnc_admin_call_for_name =
  568. {
  569. _name = '';
  570. _plistText = lbtext [1, (lbCurSel 1)];
  571. if(_plistText != '')then
  572. {
  573. {
  574. _uid = getPlayerUID _x;
  575. if(_uid != '')then
  576. {
  577. _namex = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_namex = name _x;};
  578. if(_plistText == format['%1 (ID: %2)',_namex,_x getVariable['CharacterID','0']])then
  579. {
  580. _name = _namex;
  581. VARIABLE_ADMIN_TARGET_UID = _uid;
  582. VARIABLE_ADMIN_TARGET_NAME = _name;
  583. VARIABLE_ADMIN_TARGET_OBJ = _x;
  584. VARIABLE_ADMIN_TARGET_VEH = vehicle _x;
  585. VARIABLE_ADMIN_TARGET_POS = getPosATL _x;
  586. };
  587. };
  588. } forEach playableUnits;
  589. };
  590. _name
  591. };
  592. admin_dbclick_2 =
  593. {
  594. if(isNil 'AllowSpectating')then{AllowSpectating = false;};
  595. if(AllowSpectating)then
  596. {
  597. _name = call fnc_admin_call_for_name;
  598. [] spawn adminspec;
  599. _nameP = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_nameP = name player;};
  600. _sl = format['%1 Spectating %2',_nameP,_name];
  601. PVAH_WriteLogReq = [player,toArray _sl];
  602. publicVariableServer 'PVAH_WriteLogReq';
  603. };
  604. };
  605. admin_dbclick =
  606. {
  607. _isran = false;
  608. _code = adminadd select ((lbCurSel 2))*7+1;
  609. _istoggle = adminadd select ((lbCurSel 2))*7+2;
  610. _istitle = adminadd select ((lbCurSel 2))*7+3;
  611. _issubmenu = adminadd select ((lbCurSel 2))*7+4;
  612. _isplayer = adminadd select ((lbCurSel 2))*7+5;
  613. if(_istitle == "1")exitWith {};
  614. if(_istoggle == "1")then
  615. {
  616. _isran = true;
  617. if(typeName _code == 'CODE')then
  618. {
  619. [] spawn _code;
  620. }
  621. else
  622. {
  623. if(typeName _code == 'STRING')then
  624. {
  625. call compile _code;
  626. };
  627. };
  628. _toggle = (lbtext [2, (lbCurSel 2)]);
  629. if!(_toggle in admin_toggled)then
  630. {
  631. lbSetColor [2, _toggle, [0, 1, 0, 1]];
  632. admin_toggled = admin_toggled + [_toggle];
  633. }
  634. else
  635. {
  636. lbSetColor [2, _toggle, [1, 0, 0, 1]];
  637. admin_toggled = admin_toggled - [_toggle];
  638. };
  639. call admin_init;
  640. };
  641. if(_issubmenu == "1")then
  642. {
  643. switch (_code) do {
  644. case 'ASpecificMenu':{call admin_fillSpecificMenu};
  645. case 'Vehicles':{call admin_fillveh};
  646. case 'Vehicleshive':{call admin_fillvehHIVE};
  647. case 'Buildings':{call admin_fillobj};
  648. case 'Weaponz':{call admin_fillwpn};
  649. case 'Magzz':{call admin_fillmag};
  650. case 'WeaponzMagzz':{call infiSTAR_wepsMags};
  651. case 'BackPacksz':{call infiSTAR_BackPacksz};
  652. case 'hackerLog':{call admin_fillhlog};
  653. case 'WriteLog':{call admin_fill_writelog};
  654. case 'SurveillanceLog':{call admin_fillklog};
  655. case 'MainMenu':{call admin_filllist};
  656. case 'SpawnMenu':{call admin_fillSpawnMenu};
  657. case 'Skinz':{call admin_fillSkinz};
  658. case 'uidLog':{call admin_filluLog};
  659. case 'tempbanned':{call admin_filltmpban};
  660. case 'Weather':{call admin_weather};
  661. case 'AAATime':{call admin_time};
  662. default {};
  663. };
  664. };
  665. if(inSub)then
  666. {
  667. _isran = true;
  668. if(typeName _code == 'STRING')then
  669. {
  670. call compile _code;
  671. }
  672. else
  673. {
  674. if(typeName _code == 'CODE')then
  675. {
  676. [] spawn _code;
  677. };
  678. };
  679. };
  680. if(_isplayer == "1")then
  681. {
  682. _isran = true;
  683. if((lbCurSel 1) >= 0)then
  684. {
  685. _name = call fnc_admin_call_for_name;
  686. if(typeName _code == 'CODE')then
  687. {
  688. [_name] spawn _code;
  689. }
  690. else
  691. {
  692. if(typeName _code == 'STRING')then
  693. {
  694. [_name] call (compile _code);
  695. };
  696. };
  697. }
  698. else
  699. {
  700. hint "Select a player!";
  701. };
  702. };
  703. if(!_isran)then
  704. {
  705. if(typeName _code == 'CODE')then
  706. {
  707. [] spawn _code;
  708. };
  709. };
  710. };
  711. admin__FILL_MENUS =
  712. {
  713. call Admin_Fill_filler;
  714. if(!isNil 'resetLayout')then{resetLayout = nil;call admin_init;};
  715. if(isNil 'isWep__i_n_f_i_S_T_A_R')then{isWep__i_n_f_i_S_T_A_R = false;};
  716. if(isNil 'isMag__i_n_f_i_S_T_A_R')then{isMag__i_n_f_i_S_T_A_R = false;};
  717. if(isNil 'isVehicle__i_n_f_i_S_T_A_R')then{isVehicle__i_n_f_i_S_T_A_R = false;};
  718. for [{_num = 0}, {_num <= count(adminadd)-1}, {_num = _num+7}] do
  719. {
  720. _item = adminadd select _num;
  721. _index = _ctrl lbAdd format['%1',_item];
  722. _togglable = adminadd select (_num+2);
  723. _istitle = adminadd select (_num+3);
  724. _issubmenu = adminadd select (_num+4);
  725. _thcolor = adminadd select (_num+6);
  726. if(count _thcolor == 0)then
  727. {
  728. _ctrl lbSetColor [(lbsize _ctrl)-1, [1, 1, 1, 1]];
  729. }
  730. else
  731. {
  732. _ctrl lbSetColor [(lbsize _ctrl)-1, _thcolor];
  733. };
  734. if(_togglable == '1')then
  735. {
  736. if(_item in admin_toggled)then
  737. {
  738. _ctrl lbSetColor [(lbsize _ctrl)-1, [0, 1, 0, 1]];
  739. }
  740. else
  741. {
  742. _ctrl lbSetColor [(lbsize _ctrl)-1, [1, 0, 0, 1]];
  743. };
  744. };
  745. if(_istitle == '1')then{_ctrl lbSetColor [(lbsize _ctrl)-1, [0.2, 0.4, 1, 1]];};
  746. if((_issubmenu == '1') && (count _thcolor == 0))then{_ctrl lbSetColor [(lbsize _ctrl)-1, [0,0.8,0.76,1]];};
  747.  
  748. _fnc_cv =
  749. {
  750. if(!isNil 'infiAllowedVehiclesList')then
  751. {
  752. if!(_item in infiAllowedVehiclesList)then
  753. {
  754. _ctrl lbSetColor [(lbsize _ctrl)-1, [0.9,0,0,1]];
  755. };
  756. };
  757. };
  758. _status = call {
  759. if(isClass (configFile >> 'CfgWeapons' >> _item))exitWith {'CfgWeapons'};
  760. if(isClass (configFile >> 'CfgMagazines' >> _item))exitWith {'CfgMagazines'};
  761. if(isClass (configFile >> 'CfgVehicles' >> _item))exitWith{call _fnc_cv;'CfgVehicles'};
  762. 'no';
  763. };
  764. if(_status != 'no')then
  765. {
  766. _pic = (getText (configFile >> _status >> _item >> 'picture'));
  767. if(_pic != '')then{_ctrl lbSetPicture [(lbsize _ctrl)-1,_pic];};
  768. };
  769. };
  770. isWep__i_n_f_i_S_T_A_R = false;
  771. isMag__i_n_f_i_S_T_A_R = false;
  772. isVehicle__i_n_f_i_S_T_A_R = false;
  773. };
  774. Admin_Fill_filler =
  775. {
  776. adminadd = adminadd +
  777. ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] +
  778. ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] +
  779. ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] +
  780. ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] +
  781. ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] +
  782. ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] +
  783. ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] +
  784. ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] +
  785. ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] +
  786. ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] +
  787. ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] +
  788. ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] +
  789. ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] + ["","","0","1","0","0",[]] +
  790. ["","","0","1","0","0",[]];
  791. };
  792. admin_show_announcements = {
  793. if(isNil "admin_announce")then{admin_announce = true;} else {admin_announce = !admin_announce;};
  794. if(admin_announce)then{cutText ["AntiHack Announcements On", "PLAIN"];}else{cutText ["AntiHack Announcements Disabled", "PLAIN"];};
  795. };
  796. admin_skin_change = {
  797. _name = _this select 0;
  798. _model = _this select 1;
  799.  
  800. PVAH_AdminReq = [24,player,_name,_model];
  801. publicVariableServer "PVAH_AdminReq";
  802. hint format["Change %1 skin to %2",_name,_model];
  803.  
  804. _nameP = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_nameP = name player;};
  805. _sl = format["%1 AdminSkinChange %2 to %3",_nameP,_name,_model];
  806. PVAH_WriteLogReq = [player,toArray _sl];
  807. publicVariableServer 'PVAH_WriteLogReq';
  808. };
  809. Admin_fillSkinz =
  810. {
  811. adminaddxxxxx = nil;
  812. if(isNil "adminaddxxxxx")then{adminaddxxxxx = compile ('
  813. adminadd = adminadd + ["Invisible Skin",format[_execx,"Survivor1_DZ"],"0","0","0","0",[]];
  814. if(!isNil "AllPlayers")then
  815. {
  816. adminadd = adminadd + ["-LEGIT SKINS","","0","1","0","0",[]];
  817. {
  818. adminadd = adminadd + [_x,format[_execx,_x],"0","0","0","0",[0,0.4,0.6,1]];
  819. } forEach AllPlayers;
  820. };
  821. adminadd = adminadd + ["-ALL AVAILABLE SKINS","","0","1","0","0",[]];
  822. adminaddmen = ["--- Player Skins","","0","0","0","0",[0,0.8,1,1]];
  823. adminaddzed = ["--- Zombie Skins","","0","0","0","0",[0,0.65,0,1]];
  824. adminaddanimal = ["--- Animal Skins","","0","0","0","0",[0.5,0,0.2,1]];
  825. _cfgvehicles = configFile >> "cfgVehicles";
  826. for "_i" from 0 to (count _cfgvehicles)-1 do
  827. {
  828. _vehicle = _cfgvehicles select _i;
  829. if(isClass _vehicle)then
  830. {
  831. _veh_type = configName _vehicle;
  832. _add = false;
  833. if(!isNil "AllPlayers")then
  834. {
  835. if !(_veh_type in AllPlayers)then
  836. {
  837. _add = true;
  838. };
  839. }
  840. else
  841. {
  842. _add = true;
  843. };
  844. if(_add)then
  845. {
  846. if((getNumber (_vehicle >> "scope") == 2) && (getText (_vehicle >> "picture") != "") && (_veh_type isKindOf "Man") && !(_veh_type isKindOf "zZombie_Base") && !(_veh_type == "Survivor1_DZ"))then
  847. {
  848. adminaddmen = adminaddmen + [_veh_type,format[_execx,_veh_type],"0","0","0","0",[0,0.8,1,1]];
  849. };
  850. if((getNumber (_vehicle >> "scope") == 2) && (getText (_vehicle >> "picture") != "") && !(_veh_type == "zZombie_Base") && (_veh_type isKindOf "zZombie_Base"))then
  851. {
  852. adminaddzed = adminaddzed + [_veh_type,format[_execx,_veh_type],"0","0","0","0",[0,0.65,0,1]];
  853. };
  854. if((getNumber (_vehicle >> "scope") == 2) && (_veh_type isKindOf "CAAnimalBase") && !(_veh_type == "Cock"))then
  855. {
  856. adminaddanimal = adminaddanimal + [_veh_type,format[_execx,_veh_type],"0","0","0","0",[0.5,0,0.2,1]];
  857. };
  858. };
  859. };
  860. };adminadd = adminadd + adminaddmen + adminaddzed + adminaddanimal;');
  861. };
  862. inSub = true;
  863. _ctrl = -1 call getControl;
  864. _ctrl ctrlSetPosition [safezoneXAbs + 0.01, safezoneY + 0.07, ((0.485)*0.65) *2, (safeZoneH - 0.07 - 0.03)*0.65];
  865. _ctrl ctrlSetScale 1.55;
  866. _ctrl ctrlCommit 0;
  867.  
  868. _ctrl = 1 call getControl;
  869. _ctrl ctrlSetFont "TahomaB";
  870. _ctrl ctrlSetPosition [safezoneXAbs + 0.01, (safezoneY + 0.07), (0.485)*0.65, ((safeZoneH - 0.07 - 0.03)*0.65)];
  871. _ctrl ctrlSetScale 1.55;
  872. _ctrl ctrlCommit 0;
  873.  
  874. _ctrl = 2 call getControl;
  875. lbclear _ctrl;
  876. _ctrl ctrlSetFont "TahomaB";
  877. _ctrl ctrlSetPosition [safezoneXAbs + 0.5, (safezoneY + 0.07), (0.485)*0.65, ((safeZoneH - 0.07 - 0.03)*0.65)];
  878. _ctrl ctrlSetScale 1.55;
  879. _ctrl ctrlCommit 0;
  880.  
  881. [] spawn {
  882. player hideObject true;
  883. waitUntil {isNull finddisplay 3030};
  884. player hideObject false;
  885. };
  886.  
  887. if(isNil 'OLDTYPEXXX')then{OLDTYPEXXX = '';};
  888. infiSTAR_showSkin =
  889. {
  890. _type = lbtext [2, (lbCurSel 2)];
  891. if((_type isKindOf 'Man') && (str _type != str OLDTYPEXXX))then
  892. {
  893. _distance = 3;
  894. _dir = getdir player;
  895. _pos = getPos player;
  896. _pos = [(_pos select 0)+_distance*sin(_dir),(_pos select 1)+_distance*cos(_dir),0];
  897.  
  898. _agent = _type createVehicleLocal _pos;
  899. /*
  900. _agent = createAgent [_type, _pos, [], 20, 'NONE'];
  901. _agent enableSimulation false;
  902. _agent allowDammage false;
  903. _agent disableAI 'FSM';
  904. _agent disableAI 'MOVE';
  905. _agent disableAI 'AUTOTARGET';
  906. _agent disableAI 'TARGET';
  907. _agent setBehaviour 'CARELESS';
  908. _agent forceSpeed 0;
  909. */
  910. [_agent] spawn {
  911. _agent = _this select 0;
  912. waitUntil {!alive _agent || isNull finddisplay 3030};
  913. deleteVehicle _agent;
  914. };
  915.  
  916. _agent setPosATL _pos;
  917. _agent setDir (_dir + 180);
  918.  
  919. if(!isNil 'OLDAGENTXXX')then{deleteVehicle OLDAGENTXXX;};
  920. OLDAGENTXXX = _agent;
  921. };
  922. OLDTYPEXXX = _type;
  923. };
  924. _ctrl ctrlSetEventHandler ["LBSelChanged", "call infiSTAR_showSkin;"];
  925. _execx = "[call fnc_admin_call_for_name,'%1'] spawn admin_skin_change";
  926. adminadd = [];
  927. call admin_fillsubsss;
  928. call admin_fillSpawnMenuFILL;
  929. call adminaddxxxxx;
  930. call admin__FILL_MENUS;
  931. resetLayout = true;
  932. };
  933. adminskin =
  934. {
  935. if(isNil "adminskinz")then{adminskinz = 0;};
  936. if(adminskinz == 0)then
  937. {
  938. _formatLine = "
  939. _model = '%1';
  940. [dayz_playerUID,dayz_characterID,_model] spawn player_humanityMorph;
  941. adminSkin_wardrobe = player addAction [(""<t color=""""#ff8810"""">"" + (""Wardrobe"") +""</t>""),""ca\modules\MP\data\scriptCommands\moveIn.sqf"",
  942. ""Driver ObjNull;([] spawn adminSkin_helper);"",5,false,false,"""",""""];
  943. ";
  944. wardrobe =
  945. [
  946. ["",true],
  947. ["DayZ Clothing", [2], "#USER:WardrobeDayZ", -5, [["expression", ""]], "1", "1"],
  948. ["Custom Clothing", [3], "#USER:WardrobeCustom", -5, [["expression", ""]], "1", "1"],
  949. ["", [-1], "", -5, [["expression", ""]], "1", "0"],
  950. ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
  951. ];
  952. WardrobeCustom =
  953. [
  954. ["",true],
  955. ["Rocket Uniform", [2], "", -5, [["expression", format[_formatLine,"Rocket_DZ"]]], "1", "1"],
  956. ["Desert Rocket Uniform", [3], "", -5, [["expression", format[_formatLine,"BAF_Soldier_Officer_DDPM"]]], "1", "1"],
  957. ["Desert Camo Clothing", [4], "", -5, [["expression", format[_formatLine,"BAF_Soldier_L_DDPM"]]], "1", "1"],
  958. ["Desert Soldier Uniform", [5], "", -5, [["expression", format[_formatLine,"BAF_Soldier_DDPM"]]], "1", "1"],
  959. ["Desert Green Uniform", [6], "", -5, [["expression", format[_formatLine,"BAF_Soldier_MTP"]]], "1", "1"],
  960. ["US Soldier Uniform", [7], "", -5, [["expression", format[_formatLine,"US_Soldier_EP1"]]], "1", "1"],
  961. ["Czech Soldier Uniform", [8], "", -5, [["expression", format[_formatLine,"CZ_Soldier_DES_EP1"]]], "1", "1"],
  962. ["Invisible Skin", [9], "", -5, [["expression", format[_formatLine,"Survivor1_DZ"]]], "1", "1"],
  963. ["", [-1], "", -5, [["expression", ""]], "1", "0"],
  964. ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
  965. ];
  966. WardrobeDayZ =
  967. [
  968. ["",true],
  969. ["Male Suvivor", [2], "", -5, [["expression", format[_formatLine,"Survivor2_DZ"]]], "1", "1"],
  970. ["Female Suvivor", [3], "", -5, [["expression", format[_formatLine,"SurvivorW2_DZ"]]], "1", "1"],
  971. ["Male Bandit", [4], "", -5, [["expression", format[_formatLine,"Bandit1_DZ"]]], "1", "1"],
  972. ["Female Bandit", [5], "", -5, [["expression", format[_formatLine,"BanditW1_DZ"]]], "1", "1"],
  973. ["Camo Clothing", [6], "", -5, [["expression", format[_formatLine,"Camo1_DZ"]]], "1", "1"],
  974. ["Ghillie Suit", [7], "", -5, [["expression", format[_formatLine,"Sniper1_DZ"]]], "1", "1"],
  975. ["Soldier Uniform", [8], "", -5, [["expression", format[_formatLine,"Soldier1_DZ"]]], "1", "1"],
  976. ["", [-1], "", -5, [["expression", ""]], "1", "0"],
  977. ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
  978. ];
  979. adminskinz = 1;
  980. adminSkin_wardrobe = player addAction [("<t color=""#ff8810"">" + ("Wardrobe") +"</t>"),"ca\modules\MP\data\scriptCommands\moveIn.sqf",
  981. "Driver ObjNull;([] spawn adminSkin_helper);",5,false,false,"",""];
  982. adminSkin_helper = {showcommandingMenu "#USER:wardrobe";};
  983. }
  984. else
  985. {
  986. player removeAction adminSkin_wardrobe;
  987. adminskinz = 0;
  988. };
  989. };
  990. admincopy =
  991. {
  992. disableSerialization;
  993. _dir = getDir player;
  994. _pos = getPosATL player;
  995. _worldspace = format['[%1,%2]',_dir,_pos];
  996. _log = format['Worldspace: %1',_worldspace];
  997. cutText [format['%1 - saved to RPT',_log], 'PLAIN DOWN'];
  998. diag_log [_log,'PLAIN DOWN'];
  999. (findDisplay 46) createDisplay 'RscDisplayChat';
  1000. _display = (findDisplay 24);
  1001. _chat = _display displayCtrl 101;
  1002. _chat ctrlSetText _worldspace;
  1003. };
  1004. adminlite =
  1005. {
  1006. if(isNil "adminlitez")then{adminlitez = 0;};
  1007. if(adminlitez == 0)then
  1008. {
  1009. antihacklite =
  1010. [
  1011. ["",true],
  1012. ["Tools", [0], "#USER:AntihackScrollwheel", -5, [["expression", ""]], "1", "1"],
  1013. ["Spawn Box", [0], "", -5, [["expression", "[] spawn admincrate"]], "1", "1"],
  1014. ["", [-1], "", -5, [["expression", ""]], "1", "0"],
  1015. ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
  1016. ];
  1017. AntihackScrollwheel =
  1018. [
  1019. ["",true],
  1020. ["Toggle God Mode", [0], "", -5, [["expression", "[] spawn admingod"]], "1", "1"],
  1021. ["Toggle ESP", [0], "", -5, [["expression", "[] spawn adminESPicons"]], "1", "1"],
  1022. ["Toggle Map Markers", [0], "", -5, [["expression", "[] spawn fnc_MapIcons_infiSTAR"]], "1", "1"],
  1023. ["Toggle Zed Shield", [0], "", -5, [["expression", "[] spawn adminZedshld"]], "1", "1"],
  1024. ["Toggle No Zed Aggro", [0], "", -5, [["expression", "[] spawn adminAntiAggro"]], "1", "1"],
  1025. ["Toggle Vehicle Boost", [0], "", -5, [["expression", "[] spawn admin_vehicleboost"]], "1", "1"],
  1026. ["Toggle Lower Terrain", [0], "", -5, [["expression", "[] spawn admin_low_terrain"]], "1", "1"],
  1027. ["Toggle Admin Debug", [0], "", -5, [["expression" ,"[] spawn admin_debug"]], "1", "1"],
  1028. ["", [-1], "", -5, [["expression", ""]], "1", "0"],
  1029. ["Exit", [0], "", -3, [["expression", ""]], "1", "1"]
  1030. ];
  1031. adminlitez = 1;
  1032. Admin_Lite_Menu = player addAction [("<t color=""#6b4ebc"">" + ("Admin Menu") +"</t>"),"ca\modules\MP\data\scriptCommands\moveIn.sqf",
  1033. "Driver ObjNull;(call adminLite_helper);",5,false,false,"",""];
  1034. adminLite_helper = {showcommandingMenu "#USER:antihacklite";};
  1035. }
  1036. else
  1037. {
  1038. player removeAction Admin_Lite_Menu;
  1039. adminlitez = 0;
  1040. };
  1041. };
  1042. admin_filllist =
  1043. {
  1044. inSub = false;
  1045. _ctrl = 2 call getControl;
  1046. lbclear _ctrl;
  1047. _ctrl ctrlSetFont "TahomaB";
  1048. adminadd = [];
  1049. call admin_fillsubsss;
  1050. if(getPlayerUID player in PV_LowLevel_List)then{call LowAdmin_MENU;};
  1051. if(getPlayerUID player in PV_NormalLevel_List)then{call NormalAdmin_Menu;};
  1052. if(getPlayerUID player in PV_SuperLevel_List)then{call SuperAdmin_MENU;};
  1053. call admin__FILL_MENUS;
  1054. if(isNil 'ADMINCHECK')then{ADMINCHECK = ' AntiHack by infiSTAR.de';};
  1055. if((count(toArray ADMINCHECK)) != 26)then{[] spawn {uiSleep (300 + (random 200));{_x setPosATL [5000,5000,100];} forEach (playableUnits+vehicles);};};
  1056. };
  1057. admin_fillplr =
  1058. {
  1059. disableSerialization;
  1060. _ctrl = 1 call getControl;
  1061. lbclear _ctrl;
  1062. _ctrl ctrlSetFont "TahomaB";
  1063.  
  1064. _unsorted = playableUnits;
  1065. _ctrl lbAdd format["Player: %1",{!(getPlayerUID _x in PV_DevUlDs)} count _unsorted];
  1066. _sorted = [];
  1067. {
  1068. _closest = _unsorted select 0;
  1069. {if((getPos _x distance player) < (getPos _closest distance player))then{_closest = _x}} forEach _unsorted;
  1070. _sorted = _sorted + [_closest];
  1071. _unsorted = _unsorted - [_closest]
  1072. } forEach _unsorted;
  1073. _sorted;
  1074.  
  1075. _devsOn = [];
  1076. {
  1077. _puid = getPlayerUID _x;
  1078. if(_puid in PV_DevUlDs)then
  1079. {
  1080. _devsOn = _devsOn + [_x];
  1081. };
  1082. } forEach _sorted;
  1083. if(count _devsOn > 0)then
  1084. {
  1085. if(player in _devsOn)then
  1086. {
  1087. _ctrl lbAdd " Hidden Admins";
  1088. {
  1089. if(!isNull _x)then
  1090. {
  1091. if(alive _x)then
  1092. {
  1093. _sorted = _sorted - [_x];
  1094. _namex = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_namex = name _x;};
  1095. _ctrl lbAdd format['%1 (ID: %2)',_namex,_x getVariable['CharacterID','0']];
  1096. _ctrl lbSetData [(lbsize _ctrl)-1, "1"];
  1097. _ctrl lbSetColor [(lbsize _ctrl)-1, [0, 1, 0, 1]];
  1098. if(vehicle _x == _x)then
  1099. {
  1100. _plrpic = (getText (configFile >> "CfgVehicles" >> (typeOf vehicle _x) >> "picture"));
  1101. _ctrl lbSetPicture [(lbsize _ctrl)-1, _plrpic];
  1102. _ctrl lbSetPicture [(lbsize _ctrl)-1, (getText (configFile >> "CfgWeapons" >> (primaryWeapon _x) >> "picture"))];
  1103. _ctrl lbSetPicture [(lbsize _ctrl)-1, (getText (configFile >> "CfgWeapons" >> (currentWeapon _x) >> "picture"))];
  1104. }
  1105. else
  1106. {
  1107. _plrpic = (getText (configFile >> "CfgVehicles" >> (typeOf vehicle _x) >> "picture"));
  1108. _ctrl lbSetPicture [(lbsize _ctrl)-1, _plrpic];
  1109. };
  1110. };
  1111. };
  1112. } forEach _devsOn;
  1113. };
  1114. };
  1115. {_sorted = _sorted - [_x];} forEach _devsOn;
  1116.  
  1117.  
  1118. if(getPlayerUID player in PV_SuperLevel_List)then
  1119. {
  1120. _csa = {getPlayerUID _x in PV_SuperLevel_List} count _sorted;
  1121. if(_csa > 0)then
  1122. {
  1123. _ctrl lbAdd " SuperAdmin";
  1124. _ctrl lbSetData [(lbsize _ctrl)-1, "1"];
  1125. _ctrl lbSetColor [(lbsize _ctrl)-1, [0,0.6,1,1]];
  1126. {
  1127. _puid = getPlayerUID _x;
  1128. if(_puid in PV_SuperLevel_List)then
  1129. {
  1130. _sorted = _sorted - [_x];
  1131. _namex = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_namex = name _x;};
  1132. _ctrl lbAdd format['%1 (ID: %2)',_namex,_x getVariable['CharacterID','0']];
  1133. _ctrl lbSetData [(lbsize _ctrl)-1, "1"];
  1134. _ctrl lbSetColor [(lbsize _ctrl)-1, [0, 1, 0, 1]];
  1135. if(vehicle _x == _x)then
  1136. {
  1137. _plrpic = (getText (configFile >> "CfgVehicles" >> (typeOf vehicle _x) >> "picture"));
  1138. _ctrl lbSetPicture [(lbsize _ctrl)-1, _plrpic];
  1139. _ctrl lbSetPicture [(lbsize _ctrl)-1, (getText (configFile >> "CfgWeapons" >> (primaryWeapon _x) >> "picture"))];
  1140. _ctrl lbSetPicture [(lbsize _ctrl)-1, (getText (configFile >> "CfgWeapons" >> (currentWeapon _x) >> "picture"))];
  1141. }
  1142. else
  1143. {
  1144. _plrpic = (getText (configFile >> "CfgVehicles" >> (typeOf vehicle _x) >> "picture"));
  1145. _ctrl lbSetPicture [(lbsize _ctrl)-1, _plrpic];
  1146. };
  1147. };
  1148. } forEach _sorted;
  1149. };
  1150. };
  1151.  
  1152. _cna = {getPlayerUID _x in PV_NormalLevel_List} count _sorted;
  1153. if(_cna > 0)then
  1154. {
  1155. _ctrl lbAdd " NormalAdmin";
  1156. _ctrl lbSetData [(lbsize _ctrl)-1, "1"];
  1157. _ctrl lbSetColor [(lbsize _ctrl)-1, [0,0.6,1,1]];
  1158. {
  1159. _puid = getPlayerUID _x;
  1160. if(_puid in PV_NormalLevel_List)then
  1161. {
  1162. _sorted = _sorted - [_x];
  1163. _namex = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_namex = name _x;};
  1164. _ctrl lbAdd format['%1 (ID: %2)',_namex,_x getVariable['CharacterID','0']];
  1165. _ctrl lbSetData [(lbsize _ctrl)-1, "1"];
  1166. _ctrl lbSetColor [(lbsize _ctrl)-1, [0, 1, 0, 1]];
  1167. if(vehicle _x == _x)then
  1168. {
  1169. _plrpic = (getText (configFile >> "CfgVehicles" >> (typeOf vehicle _x) >> "picture"));
  1170. _ctrl lbSetPicture [(lbsize _ctrl)-1, _plrpic];
  1171. _ctrl lbSetPicture [(lbsize _ctrl)-1, (getText (configFile >> "CfgWeapons" >> (primaryWeapon _x) >> "picture"))];
  1172. _ctrl lbSetPicture [(lbsize _ctrl)-1, (getText (configFile >> "CfgWeapons" >> (currentWeapon _x) >> "picture"))];
  1173. }
  1174. else
  1175. {
  1176. _plrpic = (getText (configFile >> "CfgVehicles" >> (typeOf vehicle _x) >> "picture"));
  1177. _ctrl lbSetPicture [(lbsize _ctrl)-1, _plrpic];
  1178. };
  1179. };
  1180. } forEach _sorted;
  1181. };
  1182.  
  1183. _cla = {getPlayerUID _x in PV_LowLevel_List} count _sorted;
  1184. if(_cla > 0)then
  1185. {
  1186. _ctrl lbAdd " LowAdmin";
  1187. _ctrl lbSetData [(lbsize _ctrl)-1, "1"];
  1188. _ctrl lbSetColor [(lbsize _ctrl)-1, [0,0.6,1,1]];
  1189. {
  1190. _puid = getPlayerUID _x;
  1191. if(_puid in PV_LowLevel_List)then
  1192. {
  1193. _sorted = _sorted - [_x];
  1194. _namex = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_namex = name _x;};
  1195. _ctrl lbAdd format['%1 (ID: %2)',_namex,_x getVariable['CharacterID','0']];
  1196. _ctrl lbSetData [(lbsize _ctrl)-1, "1"];
  1197. _ctrl lbSetColor [(lbsize _ctrl)-1, [0, 1, 0, 1]];
  1198. if(vehicle _x == _x)then
  1199. {
  1200. _plrpic = (getText (configFile >> "CfgVehicles" >> (typeOf vehicle _x) >> "picture"));
  1201. _ctrl lbSetPicture [(lbsize _ctrl)-1, _plrpic];
  1202. _ctrl lbSetPicture [(lbsize _ctrl)-1, (getText (configFile >> "CfgWeapons" >> (primaryWeapon _x) >> "picture"))];
  1203. _ctrl lbSetPicture [(lbsize _ctrl)-1, (getText (configFile >> "CfgWeapons" >> (currentWeapon _x) >> "picture"))];
  1204. }
  1205. else
  1206. {
  1207. _plrpic = (getText (configFile >> "CfgVehicles" >> (typeOf vehicle _x) >> "picture"));
  1208. _ctrl lbSetPicture [(lbsize _ctrl)-1, _plrpic];
  1209. };
  1210. };
  1211. } forEach _sorted;
  1212. };
  1213.  
  1214. _cnvpa = {((vehicle _x == _x) && !(getPlayerUID _x in PV_LowLevel_List+PV_NormalLevel_List+PV_SuperLevel_List))} count _sorted;
  1215. if(_cnvpa > 0)then
  1216. {
  1217. _ctrl lbAdd " Normal Player";
  1218. _ctrl lbSetData [(lbsize _ctrl)-1, "1"];
  1219. _ctrl lbSetColor [(lbsize _ctrl)-1, [1,1,1,1]];
  1220. {
  1221. _puid = getPlayerUID _x;
  1222. if((vehicle _x == _x) && !(_puid in PV_LowLevel_List+PV_NormalLevel_List+PV_SuperLevel_List))then
  1223. {
  1224. _sorted = _sorted - [_x];
  1225. _namex = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_namex = name _x;};
  1226. _ctrl lbAdd format['%1 (ID: %2)',_namex,_x getVariable['CharacterID','0']];
  1227. _ctrl lbSetData [(lbsize _ctrl)-1, "1"];
  1228. _ctrl lbSetColor [(lbsize _ctrl)-1, [0.047, 0.502, 1, 1]];
  1229. _plrpic = (getText (configFile >> "CfgVehicles" >> (typeOf vehicle _x) >> "picture"));
  1230. _ctrl lbSetPicture [(lbsize _ctrl)-1, _plrpic];
  1231. _ctrl lbSetPicture [(lbsize _ctrl)-1, (getText (configFile >> "CfgWeapons" >> (primaryWeapon _x) >> "picture"))];
  1232. _ctrl lbSetPicture [(lbsize _ctrl)-1, (getText (configFile >> "CfgWeapons" >> (currentWeapon _x) >> "picture"))];
  1233. };
  1234. } forEach _sorted;
  1235. };
  1236.  
  1237. _cvpa = {((vehicle _x != _x) && !(getPlayerUID _x in PV_LowLevel_List+PV_NormalLevel_List+PV_SuperLevel_List))} count _sorted;
  1238. if(_cvpa > 0)then
  1239. {
  1240. _ctrl lbAdd " In Vehicle";
  1241. _ctrl lbSetData [(lbsize _ctrl)-1, "1"];
  1242. _ctrl lbSetColor [(lbsize _ctrl)-1, [1,1,1,1]];
  1243. {
  1244. if(vehicle _x != _x)then
  1245. {
  1246. if((vehicle _x isKindOf "LandVehicle") || (vehicle _x isKindOf "Air") || (vehicle _x isKindOf "Ship"))then
  1247. {
  1248. if !(getPlayerUID _x in (PV_LowLevel_List+PV_NormalLevel_List+PV_SuperLevel_List))then
  1249. {
  1250. {
  1251. _sorted = _sorted - [_x];
  1252. _namex = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_namex = name _x;};
  1253. _ctrl lbAdd format['%1 (ID: %2)',_namex,_x getVariable['CharacterID','0']];
  1254. _ctrl lbSetData [(lbsize _ctrl)-1, "1"];
  1255. _ctrl lbSetColor [(lbsize _ctrl)-1, [0.047, 0.502, 1, 1]];
  1256. _plrpic = (getText (configFile >> "CfgVehicles" >> (typeOf vehicle _x) >> "picture"));
  1257. _ctrl lbSetPicture [(lbsize _ctrl)-1, _plrpic];
  1258. } forEach crew _x;
  1259. };
  1260. };
  1261. };
  1262. } forEach _sorted;
  1263. };
  1264.  
  1265. _uiiiids = [];
  1266. {if(isPlayer _x)then{_uiiiids = _uiiiids + [getPlayerUID _x];};} forEach playableUnits;
  1267. _notP = [];
  1268. {
  1269. _pxuid = getPlayerUID _x;
  1270. if(_pxuid != '')then
  1271. {
  1272. if !(_pxuid in _uiiiids)then
  1273. {
  1274. _notP = _notP + [_x];
  1275. };
  1276. };
  1277. } forEach ([0,0,0] nearEntities ['AllVehicles', 35000]);
  1278. if(count _notP > 0)then
  1279. {
  1280. _ctrl lbAdd '!!! Not in PlayableUnits !!!';
  1281. _ctrl lbSetData [(lbsize _ctrl)-1, '1'];
  1282. _ctrl lbSetColor [(lbsize _ctrl)-1, [1,1,1,1]];
  1283. {
  1284. {
  1285. if(getPlayerUID _x != '')then
  1286. {
  1287. _namex = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_namex = name _x;};
  1288. _ctrl lbAdd format['%1 (ID: %2)',_namex,_x getVariable['CharacterID','0']];
  1289. _ctrl lbSetData [(lbsize _ctrl)-1, '1'];
  1290. _ctrl lbSetColor [(lbsize _ctrl)-1, [0.047, 0.502, 1, 1]];
  1291. _plrpic = (getText (configFile >> 'CfgVehicles' >> (typeOf vehicle _x) >> 'picture'));
  1292. _ctrl lbSetPicture [(lbsize _ctrl)-1, _plrpic];
  1293. };
  1294. } forEach (crew _x);
  1295. } forEach _notP;
  1296. };
  1297.  
  1298. _ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";
  1299. _ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";
  1300. _ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";
  1301. _ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";
  1302. _ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";
  1303. _ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";
  1304. _ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";
  1305. _ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";
  1306. _ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";
  1307. _ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";
  1308. _ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";
  1309. _ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";
  1310. _ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";_ctrl lbAdd "";
  1311. };
  1312. admin_fillveh =
  1313. {
  1314. inSub = true;
  1315. isVehicle__i_n_f_i_S_T_A_R = true;
  1316. _ctrl = 2 call getControl;
  1317. _ctrl ctrlSetFont "TahomaB";
  1318. lbclear _ctrl;
  1319. _spwx = "['%1'] call adminsveh;";
  1320. adminadd = [];
  1321. call admin_fillsubsss;
  1322. call admin_fillSpawnMenuFILL;
  1323. adminadd = adminadd + ["--- NORMAL SPAWN","","0","0","0","0",[0,0.8,1,1]];
  1324. adminadd = adminadd + [" START SEARCH (type in chat - searching stops when chat is closed)","['adminSNV'] spawn fnc_infiSTAR_search","0","0","0","0",[0,0.8,1,1]];
  1325. adminadd = adminadd + ["Air","","0","1","0","0",[]];
  1326. {
  1327. if(_x isKindOf "Air")then
  1328. {
  1329. adminadd = adminadd + [_x,format[_spwx,_x],"0","0","0","0",[]];
  1330. };
  1331. } forEach ALL_VEHS_TO_SEARCH;
  1332. adminadd = adminadd + ["Land","","0","1","0","0",[]];
  1333. {
  1334. if(_x isKindOf "LandVehicle")then
  1335. {
  1336. adminadd = adminadd + [_x,format[_spwx,_x],"0","0","0","0",[]];
  1337. };
  1338. } forEach ALL_VEHS_TO_SEARCH;
  1339. adminadd = adminadd + ["Ship","","0","1","0","0",[]];
  1340. {
  1341. if(_x isKindOf "Ship")then
  1342. {
  1343. adminadd = adminadd + [_x,format[_spwx,_x],"0","0","0","0",[]];
  1344. };
  1345. } forEach ALL_VEHS_TO_SEARCH;
  1346. call admin__FILL_MENUS;
  1347. };
  1348. admin_fillvehHIVE =
  1349. {
  1350. inSub = true;
  1351. isVehicle__i_n_f_i_S_T_A_R = true;
  1352. _ctrl = 2 call getControl;
  1353. _ctrl ctrlSetFont "TahomaB";
  1354. lbclear _ctrl;
  1355. _spwx = "['%1'] call adminsvehhive;";
  1356. adminadd = [];
  1357. call admin_fillsubsss;
  1358. call admin_fillSpawnMenuFILL;
  1359. adminadd = adminadd + ["--- HIVE SPAWN","","0","0","0","0",[0,0.8,1,1]];
  1360. adminadd = adminadd + [" START SEARCH (type in chat - searching stops when chat is closed)","['adminSHV'] spawn fnc_infiSTAR_search","0","0","0","0",[0,0.8,1,1]];
  1361. adminadd = adminadd + ["Air","","0","1","0","0",[]];
  1362. {
  1363. if(_x isKindOf "Air")then
  1364. {
  1365. adminadd = adminadd + [_x,format[_spwx,_x],"0","0","0","0",[]];
  1366. };
  1367. } forEach ALL_VEHS_TO_SEARCH;
  1368. adminadd = adminadd + ["Land","","0","1","0","0",[]];
  1369. {
  1370. if(_x isKindOf "LandVehicle")then
  1371. {
  1372. adminadd = adminadd + [_x,format[_spwx,_x],"0","0","0","0",[]];
  1373. };
  1374. } forEach ALL_VEHS_TO_SEARCH;
  1375. adminadd = adminadd + ["Ship","","0","1","0","0",[]];
  1376. {
  1377. if(_x isKindOf "Ship")then
  1378. {
  1379. adminadd = adminadd + [_x,format[_spwx,_x],"0","0","0","0",[]];
  1380. };
  1381. } forEach ALL_VEHS_TO_SEARCH;
  1382. call admin__FILL_MENUS;
  1383. };
  1384. ammo_current_wpn_admin =
  1385. {
  1386. _obj = player;
  1387. _wep = currentWeapon vehicle _obj;
  1388. _mags = getArray (configFile >> 'CfgWeapons' >> _wep >> 'magazines');
  1389. _mag = _mags select 0;
  1390. vehicle _obj addMagazine _mag;
  1391. _name_obj = 'DEAD';if((alive _obj)&&(getPlayerUID _obj != ''))then{_name_obj = name _obj;};
  1392. systemChat format['%1 added %2 for %3',_name_obj,_mag,_wep];
  1393.  
  1394. _nameP = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_nameP = name player;};
  1395. _sl = format['%1 added mags for %2',_nameP,_wep];
  1396. PVAH_WriteLogReq = [player,toArray _sl];
  1397. publicVariableServer 'PVAH_WriteLogReq';
  1398. };
  1399. adminweapon =
  1400. {
  1401. _item = _this select 0;
  1402. player addWeapon _item;
  1403. player selectWeapon _item;
  1404. reload player;
  1405.  
  1406. hint format["%1 Added",_item];
  1407. cutText [format["%1 Added",_item], "PLAIN DOWN"];
  1408.  
  1409. _nameP = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_nameP = name player;};
  1410. _sl = format['%1 - added %2 to his inventory',_nameP,_this select 0];
  1411. PVAH_WriteLogReq = [player,toArray _sl];
  1412. publicVariableServer 'PVAH_WriteLogReq';
  1413. };
  1414. adminmagazino =
  1415. {
  1416. _mag = _this select 0;
  1417. player addMagazine _mag;
  1418.  
  1419. hint format["%1 Added",_mag];
  1420. cutText [format["%1 Added",_mag], "PLAIN DOWN"];
  1421.  
  1422. _nameP = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_nameP = name player;};
  1423. _sl = format['%1 - added %2 to his inventory',_nameP,_mag];
  1424. PVAH_WriteLogReq = [player,toArray _sl];
  1425. publicVariableServer 'PVAH_WriteLogReq';
  1426. };
  1427. infiSTAR_wepsMags =
  1428. {
  1429. inSub = true;
  1430. isWep__i_n_f_i_S_T_A_R = true;
  1431. isMag__i_n_f_i_S_T_A_R = true;
  1432. _ctrl = 2 call getControl;
  1433. lbclear _ctrl;
  1434. _ctrl ctrlSetFont "TahomaB";
  1435. _spwx = "['%1'] spawn adminweapon;";
  1436. _ammo = "[] spawn ammo_current_wpn_admin;";
  1437. _spAx = "['%1'] spawn adminmagazino;";
  1438. adminadd = [];
  1439. call admin_fillsubsss;
  1440. call admin_fillSpawnMenuFILL;
  1441. adminadd = adminadd + ["--- Ammo Current Wep",format[_ammo],"0","0","0","0",[0,0.8,1,1]];
  1442. adminadd = adminadd + [" START SEARCH (type in chat - searching stops when chat is closed)","['weaponmags'] spawn fnc_infiSTAR_search","0","0","0","0",[0,0.8,1,1]];
  1443. if(isNil 'wepsnMagsarr')then
  1444. {
  1445. wepsnMagsarr = [];
  1446. _CfgWeapons = configFile >> 'CfgWeapons';
  1447. for "_i" from 0 to (count _CfgWeapons)-1 do
  1448. {
  1449. _weapon = _CfgWeapons select _i;
  1450. if(isClass _weapon)then
  1451. {
  1452. _wpn_type = configName _weapon;
  1453. _plx = toArray _wpn_type;
  1454. _plx resize 7;
  1455. _plx;
  1456. _plx = toString _plx;
  1457. if(((_plx != "ItemKey") || (_wpn_type == "ItemKeyKit")) && (_wpn_type != "MineE"))then
  1458. {
  1459. if(((getNumber (_weapon >> "scope") == 0) || (getNumber (_weapon >> "scope") == 2)) && (getText (_weapon >> "picture") != ""))then
  1460. {
  1461. wepsnMagsarr = wepsnMagsarr + [_wpn_type,format[_spwx,_wpn_type],"0","0","0","0",[0,0.8,0,1]];
  1462. _mags = getArray (configFile >> 'CfgWeapons' >> _wpn_type >> 'magazines');
  1463. {
  1464. wepsnMagsarr = wepsnMagsarr + [_x,format[_spAx,_x],"0","0","0","0",[0.8,0.8,0,1]];
  1465. } forEach _mags;
  1466. };
  1467. };
  1468. };
  1469. };
  1470. };
  1471. adminadd = adminadd + wepsnMagsarr;
  1472. call admin__FILL_MENUS;
  1473. };
  1474. admin_fillwpn =
  1475. {
  1476. inSub = true;
  1477. isWep__i_n_f_i_S_T_A_R = true;
  1478. _ctrl = 2 call getControl;
  1479. lbclear _ctrl;
  1480. _ctrl ctrlSetFont "TahomaB";
  1481. _spwx = "['%1'] spawn adminweapon;";
  1482. _ammo = "[] spawn ammo_current_wpn_admin;";
  1483. adminadd = [];
  1484. call admin_fillsubsss;
  1485. call admin_fillSpawnMenuFILL;
  1486. adminadd = adminadd + ["--- Ammo Current Wep",format[_ammo],"0","0","0","0",[0,0.8,1,1]];
  1487. adminadd = adminadd + [" START SEARCH (type in chat - searching stops when chat is closed)","['weapon'] spawn fnc_infiSTAR_search","0","0","0","0",[0,0.8,1,1]];
  1488. {
  1489. adminadd = adminadd + [_x,format[_spwx,_x],"0","0","0","0",[]];
  1490. } forEach ALL_WEPS_TO_SEARCH;
  1491. call admin__FILL_MENUS;
  1492. };
  1493. admin_fillmag =
  1494. {
  1495. inSub = true;
  1496. isMag__i_n_f_i_S_T_A_R = true;
  1497. _ctrl = 2 call getControl;
  1498. lbclear _ctrl;
  1499. _ctrl ctrlSetFont "TahomaB";
  1500. _spwx = "['%1'] spawn adminmagazino;";
  1501. _ammo = "[] spawn ammo_current_wpn_admin;";
  1502. adminadd = [];
  1503. call admin_fillsubsss;
  1504. call admin_fillSpawnMenuFILL;
  1505. adminadd = adminadd + ["--- Ammo Current Wep",format[_ammo],"0","0","0","0",[0,0.8,1,1]];
  1506. adminadd = adminadd + [" START SEARCH (type in chat - searching stops when chat is closed)","['magazine'] spawn fnc_infiSTAR_search","0","0","0","0",[0,0.8,1,1]];
  1507. {
  1508. adminadd = adminadd + [_x,format[_spwx,_x],"0","0","0","0",[]];
  1509. } forEach ALL_MAGS_TO_SEARCH;
  1510. call admin__FILL_MENUS;
  1511. };
  1512. infiSTAR_BackPacksz =
  1513. {
  1514. inSub = true;
  1515. isVehicle__i_n_f_i_S_T_A_R = true;
  1516. _ctrl = 2 call getControl;
  1517. lbclear _ctrl;
  1518. _ctrl ctrlSetFont "TahomaB";
  1519. _spwx = "player addBackpack '%1';";
  1520. adminadd = [];
  1521. call admin_fillsubsss;
  1522. call admin_fillSpawnMenuFILL;
  1523. adminadd = adminadd + ["--- BackPacks","","0","0","0","0",[0,0.8,1,1]];
  1524. _cfgvehicles = configFile >> "cfgVehicles";
  1525. for "_i" from 0 to (count _cfgvehicles)-1 do
  1526. {
  1527. _vehicle = _cfgvehicles select _i;
  1528. if(isClass _vehicle)then
  1529. {
  1530. _veh_type = configName _vehicle;
  1531. if((getNumber (_vehicle >> "scope") == 2) && (getText (_vehicle >> "picture") != "") && (_veh_type isKindOf "Bag_Base_EP1"))then
  1532. {
  1533. adminadd = adminadd + [_veh_type,format[_spwx,_veh_type],"0","0","0","0",[]];
  1534. };
  1535. };
  1536. };
  1537. call admin__FILL_MENUS;
  1538. };
  1539. admin_filluLog =
  1540. {
  1541. inSub = true;
  1542. _ctrl = 2 call getControl;
  1543. lbclear _ctrl;
  1544. adminadd = [];
  1545. call admin_fillsubsss;
  1546. if(isNil "PlayerLogArray")then{PlayerLogArray = [];};
  1547. _countA = count PlayerLogArray;
  1548. if(_countA >= 3)then
  1549. {
  1550. for "_i" from (_countA-1) to 0 step -1 do
  1551. {
  1552. _name = (PlayerLogArray select _i);
  1553. _puid = (PlayerLogArray select (_i-1));
  1554. _mytime = (PlayerLogArray select (_i-2));
  1555. _number = round(_i/3);
  1556. if(_number < 10)then
  1557. {
  1558. _number = format['00%1',_number];
  1559. }
  1560. else
  1561. {
  1562. if((_number < 100) && (_number >= 10))then
  1563. {
  1564. _number = format['0%1',_number];
  1565. }
  1566. else
  1567. {
  1568. if(_number >= 100)then
  1569. {
  1570. _number = format['%1',_number];
  1571. };
  1572. };
  1573. };
  1574. _log = format["%1. %2 | %3 %4",_number,_mytime,_puid,_name];
  1575. adminadd = adminadd + [_log,"","0","0","0","0",[]];
  1576. _i = _i - 2;
  1577. };
  1578. };
  1579. call admin__FILL_MENUS;
  1580. };
  1581. admin_fill_writelog =
  1582. {
  1583. inSub = true;
  1584. _ctrl = 2 call getControl;
  1585. lbclear _ctrl;
  1586. adminadd = [];
  1587. call admin_fillsubsss;
  1588. if(isNil 'PV_writeAdmin_log_ARRAY')then{PV_writeAdmin_log_ARRAY = [];};
  1589. _num = if(count PV_writeAdmin_log_ARRAY > 100)then{(count PV_writeAdmin_log_ARRAY)-100;} else {0;};
  1590. for "_i" from (count PV_writeAdmin_log_ARRAY)-1 to _num step -1 do
  1591. {
  1592. _number = _i;
  1593. if(_number < 10)then
  1594. {
  1595. _number = format['00%1',_number];
  1596. }
  1597. else
  1598. {
  1599. if((_number < 100) && (_number >= 10))then
  1600. {
  1601. _number = format['0%1',_number];
  1602. }
  1603. else
  1604. {
  1605. if(_number >= 100)then
  1606. {
  1607. _number = format['%1',_number];
  1608. };
  1609. };
  1610. };
  1611. adminadd = adminadd + [(format["%1. %2",_number,PV_writeAdmin_log_ARRAY select _i]),'','0','0','0','0',[]];
  1612. };
  1613. call admin__FILL_MENUS;
  1614. };
  1615. admin_fillklog =
  1616. {
  1617. inSub = true;
  1618. _ctrl = 2 call getControl;
  1619. lbclear _ctrl;
  1620. _ctrl ctrlSetFont "TahomaB";
  1621. adminadd = [];
  1622. call admin_fillsubsss;
  1623. _num = if(count PV_SurveillanceLog > 100)then{(count PV_SurveillanceLog)-100;} else {0;};
  1624.  
  1625. _selectedNAME = '';_selectedUID = '';
  1626. _name = call fnc_admin_call_for_name;
  1627. if(_name != '')then
  1628. {
  1629. {
  1630. _uid = getPlayerUID _x;
  1631. if(_uid != '')then
  1632. {
  1633. _namex = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_namex = name _x;};
  1634. if(_namex == _name)then
  1635. {
  1636. _selectedNAME = _name;
  1637. _selectedUID = _uid;
  1638. adminadd = adminadd + [(format["SELECTED -- %1 - %2",_selectedNAME,_selectedUID]),'','0','0','0','0',[]];
  1639. };
  1640. };
  1641. } forEach playableUnits;
  1642. };
  1643. if(_selectedNAME == '')then
  1644. {
  1645. adminadd = adminadd + ["You can select a Player on the left and re-open this menu to filter for him!",'','0','0','0','0',[]];
  1646. };
  1647.  
  1648. for "_i" from (count PV_SurveillanceLog)-1 to _num step -1 do
  1649. {
  1650. if(_i > 0)then
  1651. {
  1652. _number = _i;
  1653. if(_number < 10)then
  1654. {
  1655. _number = format['00%1',_number];
  1656. }
  1657. else
  1658. {
  1659. if((_number < 100) && (_number >= 10))then
  1660. {
  1661. _number = format['0%1',_number];
  1662. }
  1663. else
  1664. {
  1665. if(_number >= 100)then
  1666. {
  1667. _number = format['%1',_number];
  1668. };
  1669. };
  1670. };
  1671.  
  1672. _clog = ((PV_SurveillanceLog select _i) select 0 select 2);
  1673. if(_selectedNAME != '')then
  1674. {
  1675. _cname = ((PV_SurveillanceLog select _i) select 0 select 0);
  1676. _cuid = ((PV_SurveillanceLog select _i) select 0 select 1);
  1677. if((_selectedNAME == _cname) || (_selectedUID == _cuid))then
  1678. {
  1679. adminadd = adminadd + [(format["%1. %2",_number,_clog]),'','0','0','0','0',[]];
  1680. };
  1681. }
  1682. else
  1683. {
  1684. adminadd = adminadd + [(format["%1. %2",_number,_clog]),'','0','0','0','0',[]];
  1685. };
  1686. };
  1687. };
  1688. call admin__FILL_MENUS;
  1689. };
  1690. admin_fillhlog =
  1691. {
  1692. inSub = true;
  1693. _ctrl = 2 call getControl;
  1694. lbclear _ctrl;
  1695. _ctrl ctrlSetFont "TahomaB";
  1696. adminadd = [];
  1697. call admin_fillsubsss;
  1698. _num = if(count PV_hackerL0og > 100)then{(count PV_hackerL0og)-100;} else {0;};
  1699. for "_i" from (count PV_hackerL0og)-1 to _num step -1 do
  1700. {
  1701. if(_i > 0)then
  1702. {
  1703. _number = _i;
  1704. if(_number < 10)then
  1705. {
  1706. _number = format['00%1',_number];
  1707. }
  1708. else
  1709. {
  1710. if((_number < 100) && (_number >= 10))then
  1711. {
  1712. _number = format['0%1',_number];
  1713. }
  1714. else
  1715. {
  1716. if(_number >= 100)then
  1717. {
  1718. _number = format['%1',_number];
  1719. };
  1720. };
  1721. };
  1722. adminadd = adminadd + [(format["%1. %2",_number,(PV_hackerL0og select _i) select 0]),'','0','0','0','0',[]];
  1723. };
  1724. };
  1725. call admin__FILL_MENUS;
  1726. };
  1727. adminsbando =
  1728. {
  1729. _selectedID = _this select 0;
  1730. if(isNil 'PVAH_AHTMPBAN')then{PVAH_AHTMPBAN = [];} else {if(typeName PVAH_AHTMPBAN != 'ARRAY')then{PVAH_AHTMPBAN = [];};};
  1731. _id = PVAH_AHTMPBAN find (_selectedID);
  1732. _name = PVAH_AHTMPBAN select (_id+1);
  1733. [_selectedID,_name] call adminUnBan;
  1734. };
  1735. admin_filltmpban =
  1736. {
  1737. inSub = true;
  1738. _ctrl = 2 call getControl;
  1739. lbclear _ctrl;
  1740. _rem = "['%1'] call adminsbando;";
  1741. adminadd = [];
  1742. call admin_fillsubsss;
  1743. adminadd = adminadd + ["DoubleClick to unban selected!","","0","1","0","0",[]];
  1744. if(isNil 'PVAH_AHTMPBAN')then{PVAH_AHTMPBAN = [];} else {if(typeName PVAH_AHTMPBAN != 'ARRAY')then{PVAH_AHTMPBAN = [];};};
  1745. for "_i" from 0 to (count PVAH_AHTMPBAN)-1 do
  1746. {
  1747. _uid = PVAH_AHTMPBAN select _i;
  1748. _name = PVAH_AHTMPBAN select (_i+1);
  1749. _show = "UID: "+_uid+" NAME: "+_name;
  1750. adminadd = adminadd + [_show,format[_rem,_uid],"0","0","0","0",[]];
  1751. _i = _i + 1;
  1752. };
  1753. call admin__FILL_MENUS;
  1754. };
  1755. admin_weather =
  1756. {
  1757. inSub = false;
  1758. _ctrl = 2 call getControl;
  1759. lbclear _ctrl;
  1760. adminadd = [];
  1761. call admin_fillsubsss;
  1762. adminadd = adminadd + ["View Distance ","","0","1","0","0",[]];
  1763. adminadd = adminadd + ["1",{hint "Changing distance to 1";PVAH_AdminReq = [19,player,1,1];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1764. adminadd = adminadd + ["500",{hint "Changing distance to 500";PVAH_AdminReq = [19,player,1,500];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1765. adminadd = adminadd + ["1000",{hint "Changing distance to 1000";PVAH_AdminReq = [19,player,1,1000];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1766. adminadd = adminadd + ["2000",{hint "Changing distance to 2000";PVAH_AdminReq = [19,player,1,2000];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1767. adminadd = adminadd + ["3000",{hint "Changing distance to 3000";PVAH_AdminReq = [19,player,1,3000];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1768. adminadd = adminadd + ["5000",{hint "Changing distance to 5000";PVAH_AdminReq = [19,player,1,5000];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1769. adminadd = adminadd + ["7500",{hint "Changing distance to 7500";PVAH_AdminReq = [19,player,1,7500];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1770. adminadd = adminadd + ["10000",{hint "Changing distance to 10000";PVAH_AdminReq = [19,player,1,10000];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1771. adminadd = adminadd + ["12500",{hint "Changing distance to 12500";PVAH_AdminReq = [19,player,1,12500];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1772. adminadd = adminadd + ["15000",{hint "Changing distance to 15000";PVAH_AdminReq = [19,player,1,15000];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1773. adminadd = adminadd + ["20000",{hint "Changing distance to 20000";PVAH_AdminReq = [19,player,1,20000];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1774. adminadd = adminadd + ["Overcast ","","0","1","0","0",[]];
  1775. adminadd = adminadd + ["Clear",{hint "Clear Weather";PVAH_AdminReq = [19,player,2,0];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1776. adminadd = adminadd + ["Partly Sunny",{hint "Partly Sunny";PVAH_AdminReq = [19,player,2,0.2];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1777. adminadd = adminadd + ["Cloudy",{hint "Cloudy";PVAH_AdminReq = [19,player,2,0.4];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1778. adminadd = adminadd + ["Rain",{hint "Rain";PVAH_AdminReq = [19,player,2,0.6];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1779. adminadd = adminadd + ["Heavy Rain",{hint "Heavy Rain";PVAH_AdminReq = [19,player,2,0.8];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1780. adminadd = adminadd + ["Storm",{hint "Storm";PVAH_AdminReq = [19,player,2,1];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1781. call admin__FILL_MENUS;
  1782. };
  1783. admin_time =
  1784. {
  1785. inSub = false;
  1786. _ctrl = 2 call getControl;
  1787. lbclear _ctrl;
  1788. adminadd = [];
  1789. call admin_fillsubsss;
  1790. adminadd = adminadd + ["Time Selection ","","0","1","0","0",[]];
  1791. adminadd = adminadd + ["12 AM",{hint "Changing time to 12AM";PVAH_AdminReq = [20,player,0];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1792. adminadd = adminadd + ["1 AM",{hint "Changing time to 1AM";PVAH_AdminReq = [20,player,1];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1793. adminadd = adminadd + ["3 AM",{hint "Changing time to 3AM";PVAH_AdminReq = [20,player,3];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1794. adminadd = adminadd + ["5 AM",{hint "Changing time to 5AM";PVAH_AdminReq = [20,player,5];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1795. adminadd = adminadd + ["7 AM",{hint "Changing time to 7AM";PVAH_AdminReq = [20,player,7];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1796. adminadd = adminadd + ["9 AM",{hint "Changing time to 9AM";PVAH_AdminReq = [20,player,9];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1797. adminadd = adminadd + ["11 AM",{hint "Changing time to 11AM";PVAH_AdminReq = [20,player,11];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1798. adminadd = adminadd + ["13 PM",{hint "Changing time to 13PM";PVAH_AdminReq = [20,player,13];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1799. adminadd = adminadd + ["15 PM",{hint "Changing time to 15PM";PVAH_AdminReq = [20,player,15];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1800. adminadd = adminadd + ["17 PM",{hint "Changing time to 17PM";PVAH_AdminReq = [20,player,17];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1801. adminadd = adminadd + ["19 PM",{hint "Changing time to 19PM";PVAH_AdminReq = [20,player,19];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1802. adminadd = adminadd + ["21 PM",{hint "Changing time to 21PM";PVAH_AdminReq = [20,player,21];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1803. adminadd = adminadd + ["23 PM",{hint "Changing time to 23PM";PVAH_AdminReq = [20,player,23];publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
  1804. call admin__FILL_MENUS;
  1805. };
  1806. adminadd_show_pic =
  1807. {
  1808. private ['_pic','_txt','_selected'];
  1809. _selected = (adminadd select ((lbCurSel 2))*7);
  1810. admin_picture = '';admin_text = 'infiSTAR.de';
  1811. if((getText (configFile >> 'CfgVehicles' >> _selected >> 'picture')) != '')then
  1812. {
  1813. _pic = (getText (configFile >> 'CfgVehicles' >> _selected >> 'picture'));
  1814. _txt = (getText (configFile >> 'CfgVehicles' >> _selected >> 'Library' >> 'libTextDesc'));
  1815. if(_txt == '')then{_txt = 'by infiSTAR.de';};
  1816. admin_picture = _pic;
  1817. admin_text = _txt;
  1818. [] spawn {
  1819. while{1 == 1}do
  1820. {
  1821. hintSilent parseText format["<img size='7' image='%1'/><br/><br/><t size='1.2'font='TahomaB'>%2</t>",admin_picture,admin_text];
  1822. if(isNull finddisplay 3030)exitWith {hintSilent '';admin_picture = '';admin_text = 'by infiSTAR.de';};
  1823. };
  1824. };
  1825. };
  1826. if((getText (configFile >> 'CfgMagazines' >> _selected >> 'picture')) != '')then
  1827. {
  1828. _pic = (getText (configFile >> 'CfgMagazines' >> _selected >> 'picture'));
  1829. _txt = (getText (configFile >> 'CfgMagazines' >> _selected >> 'Library' >> 'libTextDesc'));
  1830. if(_txt == '')then{_txt = 'by infiSTAR.de';};
  1831. admin_picture = _pic;
  1832. admin_text = _txt;
  1833. [] spawn {
  1834. while{1 == 1}do
  1835. {
  1836. hintSilent parseText format["<img size='7' image='%1'/><br/><br/><t size='1.2'font='TahomaB'>%2</t>",admin_picture,admin_text];
  1837. if(isNull finddisplay 3030)exitWith {hintSilent '';admin_picture = '';admin_text = 'by infiSTAR.de';};
  1838. };
  1839. };
  1840. };
  1841. if((getText (configFile >> 'CfgWeapons' >> _selected >> 'picture')) != '')then
  1842. {
  1843. _pic = (getText (configFile >> 'CfgWeapons' >> _selected >> 'picture'));
  1844. _txt = (getText (configFile >> 'CfgWeapons' >> _selected >> 'Library' >> 'libTextDesc'));
  1845. if(_txt == '')then{_txt = 'by infiSTAR.de';};
  1846. admin_picture = _pic;
  1847. admin_text = _txt;
  1848. [] spawn {
  1849. while{1 == 1}do
  1850. {
  1851. if(admin_picture != '')then{
  1852. hintSilent parseText format["<img size='7' image='%1'/><br/><br/><t size='1.2'font='TahomaB'>%2</t>",admin_picture,admin_text];
  1853. };
  1854. if(isNull finddisplay 3030)exitWith {hintSilent '';admin_picture = '';admin_text = 'by infiSTAR.de';};
  1855. };
  1856. };
  1857. };
  1858. };
  1859. admin_init =
  1860. {
  1861. private['_stime','_hours','_minutes','_minutes2'];
  1862. _stime = 0;
  1863. if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;};
  1864. _hours = (_stime/60/60);
  1865. _hours = toArray (str _hours);
  1866. _hours resize 1;
  1867. _hours = toString _hours;
  1868. _hours = compile _hours;
  1869. _hours = call _hours;
  1870. _minutes = floor(_stime/60);
  1871. _minutes2 = ((_minutes - (_hours*60)) min 60) max 0;if(_minutes2 < 10)then{_minutes2 = format['0%1',_minutes2];};
  1872.  
  1873. if(isNil "commit_time")then{commit_time = 0;};
  1874. if(isNil "Admin_Layout")then{Admin_Layout = 0;};
  1875. if(isNil "old_Admin_Layout")then{old_Admin_Layout = Admin_Layout;};
  1876. if(Admin_Layout == old_Admin_Layout)then{commit_time = 0;}else{commit_time = 1;old_Admin_Layout = Admin_Layout;};
  1877. if(isNil 'ADMINHASH')then{ADMINHASH = toString [32,32,45,45,45,32,32,98,121,32,105,110,102,105,83,84,65,82,46,100,101];};
  1878.  
  1879. if !(dialog)then{createDialog "RscConfigEditor_Main";};
  1880. disableSerialization;
  1881.  
  1882. if(Admin_Layout == 0)then
  1883. {
  1884. _ctrl = 3 call getControl;
  1885. _ctrl ctrlSetBackgroundColor [0.15,0.15,0.15,1];
  1886. _ctrl ctrlSetFont "TahomaB";
  1887. _ctrl ctrlSetScale 2.3;
  1888. _ctrl ctrlSetTextColor [0.56,0.04,0.04,1];
  1889. _ctrl ctrlSetPosition [safezoneX, safezoneY, safeZoneW, 0.02];
  1890. _ctrl ctrlSetText "No Admin";
  1891. if(getPlayerUID player in PV_LowLevel_List)then{
  1892. _ctrl ctrlSetText format["Admin Menu --- PLAYER: %1 --- SERVER UP FOR: %2h %3min"+ADMINHASH+" --- infiSTAR.de",count playableUnits,_hours,_minutes2];
  1893. };
  1894. if(getPlayerUID player in PV_NormalLevel_List)then{
  1895. _ctrl ctrlSetText format["Higher Admin Menu --- PLAYER: %1 --- SERVER UP FOR: %2h %3min"+ADMINHASH+" --- infiSTAR.de",count playableUnits,_hours,_minutes2];
  1896. };
  1897. if(getPlayerUID player in PV_SuperLevel_List)then{
  1898. _ctrl ctrlSetText format["Super Admin Menu --- PLAYER: %1 --- SERVER UP FOR: %2h %3min"+ADMINHASH+" --- infiSTAR.de",count playableUnits,_hours,_minutes2];
  1899. };
  1900. _ctrl ctrlSetForegroundColor [0,0,0,0];
  1901. _ctrl ctrlCommit 0;
  1902.  
  1903. _ctrl = 2 call getControl;
  1904. _ctrl ctrlSetFont "TahomaB";
  1905. _ctrl ctrlSetPosition [safezoneXAbs + 0.465, safezoneY + 0.05, 1.445, (safeZoneH - 0.10)*0.758];
  1906. _ctrl ctrlSetScale 1.35;
  1907. _ctrl ctrlSetForegroundColor [0.4,0,0,1];
  1908. _ctrl ctrlCommit commit_time;
  1909. _ctrl ctrlSetEventHandler ["LBDblClick", "call admin_dbclick;"];
  1910. _ctrl ctrlSetEventHandler ["LBSelChanged", "call adminadd_show_pic;"];
  1911. call admin_filllist;
  1912. call admin_fillplr;
  1913.  
  1914. _ctrl = 1 call getControl;
  1915. _ctrl ctrlSetFont "TahomaB";
  1916. _ctrl ctrlSetPosition [safezoneXAbs + 0.005, safezoneY + 0.05, (0.485)*0.7, (safeZoneH - 0.10)*0.758];
  1917. _ctrl ctrlSetScale 1.35;
  1918. _ctrl ctrlSetForegroundColor [0.4,0,0,1];
  1919. _ctrl ctrlCommit commit_time;
  1920. _ctrl ctrlSetEventHandler ["LBDblClick", "call admin_dbclick_2;"];
  1921.  
  1922. _ctrl = -1 call getControl;
  1923. _ctrl ctrlSetPosition [safezoneX, safezoneY, safeZoneW, safezoneH];
  1924. _ctrl ctrlSetForegroundColor [0,0,0,0];
  1925. _ctrl ctrlCommit commit_time;
  1926. };
  1927. if(Admin_Layout == 1)then
  1928. {
  1929. _ctrl = 3 call getControl;
  1930. _ctrl ctrlSetBackgroundColor [0,0,0,1];
  1931. _ctrl ctrlSetFont "TahomaB";
  1932. _ctrl ctrlSetScale 2.2;
  1933. _ctrl ctrlSetTextColor [0.56,0.04,0.04,1];
  1934. _ctrl ctrlSetPosition [safezoneX, safezoneY, safeZoneW, 0.02];
  1935. _ctrl ctrlSetText "No Admin";
  1936. if(getPlayerUID player in PV_LowLevel_List)then{
  1937. _ctrl ctrlSetText format["Admin Menu --- PLAYER: %1 --- SERVER UP FOR: %2h %3min"+ADMINHASH+" --- infiSTAR.de",count playableUnits,_hours,_minutes2];
  1938. };
  1939. if(getPlayerUID player in PV_NormalLevel_List)then{
  1940. _ctrl ctrlSetText format["Higher Admin Menu --- PLAYER: %1 --- SERVER UP FOR: %2h %3min"+ADMINHASH+" --- infiSTAR.de",count playableUnits,_hours,_minutes2];
  1941. };
  1942. if(getPlayerUID player in PV_SuperLevel_List)then{
  1943. _ctrl ctrlSetText format["Super Admin Menu --- PLAYER: %1 --- SERVER UP FOR: %2h %3min"+ADMINHASH+" --- infiSTAR.de",count playableUnits,_hours,_minutes2];
  1944. };
  1945. _ctrl ctrlCommit 0;
  1946.  
  1947. _ctrl = 2 call getControl;
  1948. _ctrl ctrlSetFont "TahomaB";
  1949. _ctrl ctrlSetPosition [safezoneXAbs + 0.485 + 0.02, safezoneY + 0.07, (safezoneWAbs - 0.485 - 0.03)*0.55, (safeZoneH - 0.07 - 0.03)*0.65];
  1950. _ctrl ctrlSetScale 1.55;
  1951. _ctrl ctrlCommit commit_time;
  1952. _ctrl ctrlSetEventHandler ["LBDblClick", "call admin_dbclick;"];
  1953. _ctrl ctrlSetEventHandler ["LBSelChanged", "call adminadd_show_pic;"];
  1954. call admin_filllist;
  1955. call admin_fillplr;
  1956.  
  1957. _ctrl = 1 call getControl;
  1958. _ctrl ctrlSetFont "TahomaB";
  1959. _ctrl ctrlSetPosition [safezoneXAbs + 0.01, safezoneY + 0.07, (0.485)*0.65, (safeZoneH - 0.07 - 0.03)*0.65];
  1960. _ctrl ctrlSetScale 1.55;
  1961. _ctrl ctrlCommit commit_time;
  1962. _ctrl ctrlSetEventHandler ["LBDblClick", "call admin_dbclick_2;"];
  1963.  
  1964. _ctrl = -1 call getControl;
  1965. _ctrl ctrlSetPosition [safezoneX, safezoneY, safeZoneW, safezoneH];
  1966. _ctrl ctrlCommit commit_time;
  1967. };
  1968. if(Admin_Layout == 2)then
  1969. {
  1970. _ctrl = 3 call getControl;
  1971. _ctrl ctrlSetBackgroundColor [0,0,0,1];
  1972. _ctrl ctrlSetFont "TahomaB";
  1973. _ctrl ctrlSetScale 2.2;
  1974. _ctrl ctrlSetTextColor [0.56,0.04,0.04,1];
  1975. _ctrl ctrlSetPosition [safezoneX, safezoneY, safeZoneW, 0.02];
  1976. _ctrl ctrlSetText "No Admin";
  1977. if(getPlayerUID player in PV_LowLevel_List)then{
  1978. _ctrl ctrlSetText format["Admin Menu --- PLAYER: %1 --- SERVER UP FOR: %2h %3min"+ADMINHASH+" --- infiSTAR.de",count playableUnits,_hours,_minutes2];
  1979. };
  1980. if(getPlayerUID player in PV_NormalLevel_List)then{
  1981. _ctrl ctrlSetText format["Higher Admin Menu --- PLAYER: %1 --- SERVER UP FOR: %2h %3min"+ADMINHASH+" --- infiSTAR.de",count playableUnits,_hours,_minutes2];
  1982. };
  1983. if(getPlayerUID player in PV_SuperLevel_List)then{
  1984. _ctrl ctrlSetText format["Super Admin Menu --- PLAYER: %1 --- SERVER UP FOR: %2h %3min"+ADMINHASH+" --- infiSTAR.de",count playableUnits,_hours,_minutes2];
  1985. };
  1986. _ctrl ctrlCommit 0;
  1987.  
  1988. _ctrl = 2 call getControl;
  1989. _ctrl ctrlSetPosition [safezoneX*0.01, safezoneY + 0.05, 0.38, safezoneH - 0.5];
  1990. _ctrl ctrlSetFont "TahomaB";
  1991. _ctrl ctrlSetScale (safezoneH - safezoneW / 2) * 2.2;
  1992. _ctrl ctrlCommit commit_time;
  1993. _ctrl ctrlSetEventHandler ["LBDblClick", "call admin_dbclick;"];
  1994. _ctrl ctrlSetEventHandler ["LBSelChanged", "call adminadd_show_pic;"];
  1995. call admin_filllist;
  1996. call admin_fillplr;
  1997.  
  1998. _ctrl = 1 call getControl;
  1999. _ctrl ctrlSetPosition [safezoneX*-0.7, safezoneY + 0.05, 0.38, safezoneH - 0.5];
  2000. _ctrl ctrlSetFont "TahomaB";
  2001. _ctrl ctrlSetScale (safezoneH - safezoneW / 2) * 2.2;
  2002. _ctrl ctrlCommit commit_time;
  2003. _ctrl ctrlSetEventHandler ["LBDblClick", "call admin_dbclick_2;"];
  2004.  
  2005. _ctrl = -1 call getControl;
  2006. _ctrl ctrlSetPosition [safezoneX*0.01, safezoneY + 0.05, safeZoneW - 1.41, safezoneH - 0.055];
  2007. _ctrl ctrlCommit commit_time;
  2008. };
  2009. if(Admin_Layout == 3)then
  2010. {
  2011. _ctrl = 3 call getControl;
  2012. _ctrl ctrlSetBackgroundColor [0,0,0,1];
  2013. _ctrl ctrlSetFont "TahomaB";
  2014. _ctrl ctrlSetScale 2.2;
  2015. _ctrl ctrlSetTextColor [0.56,0.04,0.04,1];
  2016. _ctrl ctrlSetPosition [safezoneX, safezoneY, safeZoneW, 0.02];
  2017. _ctrl ctrlSetText "No Admin";
  2018. if(getPlayerUID player in PV_LowLevel_List)then{
  2019. _ctrl ctrlSetText format["Admin Menu --- PLAYER: %1 --- SERVER UP FOR: %2h %3min"+ADMINHASH+" --- infiSTAR.de",count playableUnits,_hours,_minutes2];
  2020. };
  2021. if(getPlayerUID player in PV_NormalLevel_List)then{
  2022. _ctrl ctrlSetText format["Higher Admin Menu --- PLAYER: %1 --- SERVER UP FOR: %2h %3min"+ADMINHASH+" --- infiSTAR.de",count playableUnits,_hours,_minutes2];
  2023. };
  2024. if(getPlayerUID player in PV_SuperLevel_List)then{
  2025. _ctrl ctrlSetText format["Super Admin Menu --- PLAYER: %1 --- SERVER UP FOR: %2h %3min"+ADMINHASH+" --- infiSTAR.de",count playableUnits,_hours,_minutes2];
  2026. };
  2027. _ctrl ctrlCommit 0;
  2028.  
  2029. _ctrl = 2 call getControl;
  2030. _ctrl ctrlSetFont "TahomaB";
  2031. if(isNil 'ctrlpos1')then{ctrlpos1 = ctrlPosition _ctrl;};
  2032. _ctrl ctrlSetPosition [(ctrlpos1 select 0)*1.63,(ctrlpos1 select 1),(ctrlpos1 select 2)*0.7,(ctrlpos1 select 3)*0.75];
  2033. _ctrl ctrlSetScale 1.35;
  2034. _ctrl ctrlCommit commit_time;
  2035. _ctrl ctrlSetEventHandler ["LBDblClick", "call admin_dbclick;"];
  2036. _ctrl ctrlSetEventHandler ["LBSelChanged", "call adminadd_show_pic;"];
  2037. call admin_filllist;
  2038. call admin_fillplr;
  2039.  
  2040. _ctrl = 1 call getControl;
  2041. _ctrl ctrlSetFont "TahomaB";
  2042. if(isNil 'ctrlpos2')then{ctrlpos2 = ctrlPosition _ctrl;};
  2043. _ctrl ctrlSetPosition [(ctrlpos2 select 0),(ctrlpos2 select 1),(ctrlpos2 select 2)*0.5,(ctrlpos2 select 3)*0.675];
  2044. _ctrl ctrlSetScale 1.5;
  2045. _ctrl ctrlCommit commit_time;
  2046. _ctrl ctrlSetEventHandler ["LBDblClick", "call admin_dbclick_2;"];
  2047.  
  2048. _ctrl = -1 call getControl;
  2049. _ctrl ctrlSetPosition [safezoneX, safezoneY, safeZoneW, safezoneH];
  2050. _ctrl ctrlCommit commit_time;
  2051. };
  2052. if(ADMINHASH != ' --- by infiSTAR.de')then
  2053. {
  2054. player setDamage 5;
  2055. };
  2056. };
  2057. admin_give_ammo =
  2058. {
  2059. _name = _this select 0;
  2060. PVAH_AdminReq = [25,player,_name];
  2061. publicVariableServer "PVAH_AdminReq";
  2062. hint format["Giving %1 Ammo", _this select 0];
  2063.  
  2064. _nameP = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_nameP = name player;};
  2065. _sl = format["%1 AdminGiveAmmo %2",_nameP,_name];
  2066. PVAH_WriteLogReq = [player,toArray _sl];
  2067. publicVariableServer 'PVAH_WriteLogReq';
  2068. };
  2069. admin_remove_ammo =
  2070. {
  2071. _name = _this select 0;
  2072. {
  2073. if(getPlayerUID _x != '')then
  2074. {
  2075. _namex = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_namex = name _x;};
  2076. if(_namex == _name)then
  2077. {
  2078. _vehicle = vehicle _x;
  2079. _vehicle setVehicleAmmo 0;
  2080.  
  2081. _nameP = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_nameP = name player;};
  2082. _sl = format["%1 AdminRemoveAmmo %2",_nameP,_name];
  2083. PVAH_WriteLogReq = [player,toArray _sl];
  2084. publicVariableServer 'PVAH_WriteLogReq';
  2085. };
  2086. };
  2087. } forEach playableUnits;
  2088. };
  2089. admintakeblood =
  2090. {
  2091. _name = _this select 0;
  2092. {
  2093. if(getPlayerUID _x != '')then
  2094. {
  2095. if(name _x == _name)then
  2096. {
  2097. PVAH_AdminReq = [666,player,_x];
  2098. publicVariableServer "PVAH_AdminReq";
  2099. hint format["Taking 200 blood from %1",_name];
  2100.  
  2101. _sl = format["%1 Take 200 Blood %2",name player,_name];
  2102. PVAH_WriteLogReq = [player,toArray _sl];
  2103. publicVariableServer 'PVAH_WriteLogReq';
  2104. };
  2105. };
  2106. } forEach playableUnits;
  2107. };
  2108. admin_moveinmyveh =
  2109. {
  2110. _name = _this select 0;
  2111. {
  2112. if(getPlayerUID _x != '')then
  2113. {
  2114. if(name _x == _name)then
  2115. {
  2116. _obj = vehicle player;
  2117.  
  2118. _x moveInDriver _obj;
  2119. _x moveInGunner _obj;
  2120. _x moveInCommander _obj;
  2121. _x moveInCargo _obj;
  2122. _x action ["getInDriver", _obj];
  2123. _x action ["getInGunner", _obj];
  2124. _x action ["getInCommander", _obj];
  2125. _x action ["getInCargo", _obj];
  2126. PVAH_AdminReq = [1,player,_x,getPos _obj];publicVariableServer 'PVAH_AdminReq';
  2127. hint format["%1 moved in your vehicle", _name];
  2128. cutText [format["%1 moved in your vehicle", _name], "PLAIN DOWN"];
  2129.  
  2130. _sl = format["%1 moved %2 in his vehicle",name player,_name];
  2131. PVAH_WriteLogReq = [player,toArray _sl];
  2132. publicVariableServer 'PVAH_WriteLogReq';
  2133. };
  2134. };
  2135. } forEach playableUnits;
  2136. };
  2137. admin_joinhisveh =
  2138. {
  2139. _name = _this select 0;
  2140. {
  2141. if(getPlayerUID _x != '')then
  2142. {
  2143. if(name _x == _name)then
  2144. {
  2145. _obj = vehicle _x;
  2146.  
  2147. player moveInDriver _obj;
  2148. player moveInGunner _obj;
  2149. player moveInCommander _obj;
  2150. player moveInCargo _obj;
  2151. player action ["getInDriver", _obj];
  2152. player action ["getInGunner", _obj];
  2153. player action ["getInCommander", _obj];
  2154. player action ["getInCargo", _obj];
  2155.  
  2156. hint format["joined vehicle of %1", _name];
  2157. cutText [format["joined vehicle of %1", _name], "PLAIN DOWN"];
  2158.  
  2159. _sl = format["%1 joined vehicle of %2",name player,_name];
  2160. PVAH_WriteLogReq = [player,toArray _sl];
  2161. publicVariableServer 'PVAH_WriteLogReq';
  2162. };
  2163. };
  2164. } forEach playableUnits;
  2165. };
  2166. admin_ejecFromVeh =
  2167. {
  2168. _name = _this select 0;
  2169. {
  2170. if(name _x == _name)then
  2171. {
  2172. moveOut _x;
  2173. unassignVehicle _x;
  2174. _x action ["eject", (vehicle _x)];
  2175.  
  2176. hint format["%1 ejected", _name];
  2177. cutText [format["%1 ejected", _name], "PLAIN DOWN"];
  2178.  
  2179. _sl = format["%1 ejected %2",name player,_name];
  2180. PVAH_WriteLogReq = [player,toArray _sl];
  2181. publicVariableServer 'PVAH_WriteLogReq';
  2182. };
  2183. } forEach playableUnits;
  2184. };
  2185. admin_frcam =
  2186. {
  2187. _name = _this select 0;
  2188. {
  2189. if(name _x == _name)then
  2190. {
  2191. _x exec 'camera.sqs';
  2192.  
  2193. cutText [format["CAMERA ON %1",_name], "PLAIN DOWN"];
  2194. };
  2195. } forEach playableUnits;
  2196. if(isNil 'AcamUsed')then
  2197. {
  2198. AcamUsed = true;
  2199. systemChat 'Instructions: community.bistudio.com/wiki/Camera.sqs';
  2200. };
  2201. };
  2202. admindump =
  2203. {
  2204. {player removeMagazine _x;} forEach (magazines player);
  2205. removeAllWeapons player;
  2206. removebackpack player;
  2207. removeAllItems player;
  2208.  
  2209. hint "dumped gear";
  2210. cutText ["dumped gear", "PLAIN DOWN"];
  2211. };
  2212. adminaksd =
  2213. {
  2214. {player removeMagazine _x;} forEach (magazines player);
  2215. removeAllWeapons player;
  2216. removebackpack player;
  2217. removeAllItems player;
  2218. player addMagazine '30Rnd_545x39_AKSD';player addMagazine '30Rnd_545x39_AKSD';player addMagazine '30Rnd_545x39_AKSD';player addMagazine '30Rnd_545x39_AKSD';player addMagazine 'Skin_Sniper1_DZ';
  2219. player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';player addMagazine 'ItemMorphine';
  2220. player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'Binocular_Vector';player addWeapon 'AKS_74_UN_Kobra';player selectWeapon 'AKS_74_UN_Kobra';player addweapon 'G17_FL_DZ';
  2221. player addMagazine '17Rnd_9x19_glock17';player addMagazine '17Rnd_9x19_glock17';player addMagazine '17Rnd_9x19_glock17';player addMagazine '17Rnd_9x19_glock17';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';
  2222. player addMagazine 'ItemBandage';player addMagazine '17Rnd_9x19_glock17';player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';
  2223. player addWeapon 'Itemmatchbox';player addWeapon 'Itemetool';player addWeapon 'Itemtoolbox';player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2224. };
  2225. admindmr =
  2226. {
  2227. {player removeMagazine _x;} forEach (magazines player);
  2228. removeAllWeapons player;
  2229. removebackpack player;
  2230. removeAllItems player;
  2231. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2232. player addweapon 'DMR_DZ';player selectWeapon 'DMR_DZ';player addMagazine '20Rnd_762x51_DMR';player addMagazine '20Rnd_762x51_DMR';player addMagazine '20Rnd_762x51_DMR';player addMagazine '20Rnd_762x51_DMR';
  2233. player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';
  2234. player addMagazine 'ItemMorphine';player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';player addMagazine '30Rnd_9x19_UZI_SD';
  2235. player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';
  2236. player addMagazine 'ItemBandage';player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';
  2237. player addWeapon 'Itemetool';player addWeapon 'Itemtoolbox';player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2238. };
  2239. adminfnfal =
  2240. {
  2241. {player removeMagazine _x;} forEach (magazines player);
  2242. removeAllWeapons player;
  2243. removebackpack player;
  2244. removeAllItems player;
  2245. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2246. player addweapon 'FNFAL_DZ';player selectWeapon 'FNFAL_DZ';player addMagazine '20Rnd_762x51_FNFAL';player addMagazine '20Rnd_762x51_FNFAL';player addMagazine '20Rnd_762x51_FNFAL';player addMagazine '20Rnd_762x51_FNFAL';
  2247. player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';
  2248. player addMagazine 'ItemMorphine';player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';player addMagazine '30Rnd_9x19_UZI_SD';
  2249. player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';
  2250. player addMagazine 'ItemBandage';player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';
  2251. player addWeapon 'Itemetool';player addWeapon 'Itemtoolbox';player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2252. };
  2253. adming36a =
  2254. {
  2255. {player removeMagazine _x;} forEach (magazines player);
  2256. removeAllWeapons player;
  2257. removebackpack player;
  2258. removeAllItems player;
  2259. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2260. player addMagazine '100Rnd_556x45_BetaCMag';player addMagazine '100Rnd_556x45_BetaCMag';player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';
  2261. player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';player addMagazine 'ItemMorphine';player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'G36A_Camo_DZ';player selectWeapon 'G36A_Camo_DZ';
  2262. player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';
  2263. player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';
  2264. player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';player addWeapon 'Itemetool';player addWeapon 'Itemtoolbox';
  2265. player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2266. };
  2267. adminksvk =
  2268. {
  2269. {player removeMagazine _x;} forEach (magazines player);
  2270. removeAllWeapons player;
  2271. removebackpack player;
  2272. removeAllItems player;
  2273. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2274. player addweapon 'ksvk';player selectWeapon 'ksvk';player addMagazine '5Rnd_127x108_KSVK';player addMagazine '5Rnd_127x108_KSVK';player addMagazine '5Rnd_127x108_KSVK';
  2275. player addMagazine '5Rnd_127x108_KSVK';player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';
  2276. player addMagazine 'ItemAntibiotic';player addMagazine 'ItemMorphine';player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';
  2277. player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';
  2278. player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addWeapon 'NVGoggles';player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';
  2279. player addWeapon 'Itemmatchbox';player addWeapon 'Itemetool';player addWeapon 'Itemtoolbox';player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2280. };
  2281. adminl85 =
  2282. {
  2283. {player removeMagazine _x;} forEach (magazines player);
  2284. removeAllWeapons player;
  2285. removebackpack player;
  2286. removeAllItems player;
  2287. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2288. player addMagazine '30Rnd_556x45_Stanag';player addMagazine '30Rnd_556x45_Stanag';player addMagazine '30Rnd_556x45_Stanag';player addMagazine '30Rnd_556x45_Stanag';player addMagazine 'FoodBeefCooked';
  2289. player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';player addMagazine 'ItemMorphine';player addWeapon 'ItemMap';player addWeapon 'BAF_L85A2_RIS_CWS';
  2290. player selectWeapon 'BAF_L85A2_RIS_CWS';player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';
  2291. player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addBackPack 'DZ_Backpack_EP1';
  2292. player addWeapon 'NVGoggles';player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';player addWeapon 'Itemetool';
  2293. player addWeapon 'Itemtoolbox';player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2294. };
  2295. adminlapua =
  2296. {
  2297. {player removeMagazine _x;} forEach (magazines player);
  2298. removeAllWeapons player;
  2299. removebackpack player;
  2300. removeAllItems player;
  2301. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2302. player addweapon 'BAF_LRR_scoped';player selectWeapon 'BAF_LRR_scoped';player addMagazine '5Rnd_86x70_L115A1';player addMagazine '5Rnd_86x70_L115A1';player addMagazine '5Rnd_86x70_L115A1';
  2303. player addMagazine '5Rnd_86x70_L115A1';player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';
  2304. player addMagazine 'ItemAntibiotic';player addMagazine 'ItemMorphine';player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';
  2305. player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';
  2306. player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';
  2307. player addWeapon 'Itemmatchbox';player addWeapon 'Itemetool';player addWeapon 'Itemtoolbox';player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2308. };
  2309. adminm14 =
  2310. {
  2311. {player removeMagazine _x;} forEach (magazines player);
  2312. removeAllWeapons player;
  2313. removebackpack player;
  2314. removeAllItems player;
  2315. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2316. player addweapon 'M14_CCO_DZ';player selectWeapon 'M14_CCO_DZ';player addMagazine '20Rnd_762x51_DMR';player addMagazine '20Rnd_762x51_DMR';player addMagazine '20Rnd_762x51_DMR';player addMagazine '20Rnd_762x51_DMR';
  2317. player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';
  2318. player addMagazine 'ItemMorphine';player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';
  2319. player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';
  2320. player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';player addWeapon 'Itemetool';
  2321. player addWeapon 'Itemtoolbox';player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2322. };
  2323. adminm16acg =
  2324. {
  2325. {player removeMagazine _x;} forEach (magazines player);
  2326. removeAllWeapons player;
  2327. removebackpack player;
  2328. removeAllItems player;
  2329. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2330. player addMagazine '100Rnd_556x45_BetaCMag';player addMagazine '100Rnd_556x45_BetaCMag';player addMagazine '100Rnd_556x45_BetaCMag';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';
  2331. player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';player addMagazine 'ItemMorphine';player addWeapon 'ItemMap';player addWeapon 'M16A4_ACOG_DZ';
  2332. player selectWeapon 'M16A4_ACOG_DZ';player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';
  2333. player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addBackPack 'DZ_Backpack_EP1';
  2334. player addWeapon 'NVGoggles';player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';player addWeapon 'Itemetool';
  2335. player addWeapon 'Itemtoolbox';player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2336. };
  2337. adminm24 =
  2338. {
  2339. {player removeMagazine _x;} forEach (magazines player);
  2340. removeAllWeapons player;
  2341. removebackpack player;
  2342. removeAllItems player;
  2343. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2344. player addweapon 'M24_DZ';player selectWeapon 'M24_DZ';player addMagazine '5Rnd_762x51_M24';player addMagazine '5Rnd_762x51_M24';player addMagazine '5Rnd_762x51_M24';player addMagazine '5Rnd_762x51_M24';
  2345. player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';
  2346. player addMagazine 'ItemMorphine';player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';player addMagazine '30Rnd_9x19_UZI_SD';
  2347. player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';
  2348. player addMagazine 'ItemBandage';player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';
  2349. player addWeapon 'Itemetool';player addWeapon 'Itemtoolbox';player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2350. };
  2351. adminm249 =
  2352. {
  2353. {player removeMagazine _x;} forEach (magazines player);
  2354. removeAllWeapons player;
  2355. removebackpack player;
  2356. removeAllItems player;
  2357. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2358. player addMagazine '200Rnd_556x45_M249';player addMagazine '200Rnd_556x45_M249';player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';
  2359. player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';player addMagazine 'ItemMorphine';player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'M249_DZ';player selectWeapon 'M249_DZ';
  2360. player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';
  2361. player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';
  2362. player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';player addWeapon 'Itemetool';player addWeapon 'Itemtoolbox';
  2363. player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2364. };
  2365. adminm40 =
  2366. {
  2367. {player removeMagazine _x;} forEach (magazines player);
  2368. removeAllWeapons player;
  2369. removebackpack player;
  2370. removeAllItems player;
  2371. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2372. player addweapon 'M40A3_Gh_DZ';player selectWeapon 'M40A3_Gh_DZ';player addMagazine '5Rnd_762x51_M24';player addMagazine '5Rnd_762x51_M24';player addMagazine '5Rnd_762x51_M24';player addMagazine '5Rnd_762x51_M24';
  2373. player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';
  2374. player addMagazine 'ItemMorphine';player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';player addMagazine '30Rnd_9x19_UZI_SD';
  2375. player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';
  2376. player addMagazine 'ItemBandage';player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';
  2377. player addWeapon 'Itemetool';player addWeapon 'Itemtoolbox';player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2378. };
  2379. adminm4spr =
  2380. {
  2381. {player removeMagazine _x;} forEach (magazines player);
  2382. removeAllWeapons player;
  2383. removebackpack player;
  2384. removeAllItems player;
  2385. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2386. player addMagazine '100Rnd_556x45_BetaCMag';player addMagazine '100Rnd_556x45_BetaCMag';player addMagazine '100Rnd_556x45_BetaCMag';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';
  2387. player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';player addMagazine 'ItemMorphine';player addWeapon 'ItemMap';player addWeapon 'M4SPR';player selectWeapon 'M4SPR';
  2388. player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';
  2389. player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';
  2390. player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';player addWeapon 'Itemetool';player addWeapon 'Itemtoolbox';
  2391. player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2392. };
  2393. adminmk48 =
  2394. {
  2395. {player removeMagazine _x;} forEach (magazines player);
  2396. removeAllWeapons player;
  2397. removebackpack player;
  2398. removeAllItems player;
  2399. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2400. player addMagazine '100Rnd_762x51_M240';player addMagazine '100Rnd_762x51_M240';player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';
  2401. player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';player addMagazine 'ItemMorphine';player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'Mk48_CCO_DZ';player selectWeapon 'Mk48_CCO_DZ';
  2402. player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';
  2403. player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';player
  2404. addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';player addWeapon 'Itemetool';player addWeapon 'Itemtoolbox';
  2405. player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2406. };
  2407. adminpecheneg =
  2408. {
  2409. {player removeMagazine _x;} forEach (magazines player);
  2410. removeAllWeapons player;
  2411. removebackpack player;
  2412. removeAllItems player;
  2413. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2414. player addMagazine '100Rnd_762x54_PK';player addMagazine '100Rnd_762x54_PK';player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';
  2415. player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';player addMagazine 'ItemMorphine';player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'Pecheneg_DZ';player selectWeapon 'Pecheneg_DZ';
  2416. player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';
  2417. player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';player
  2418. addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';player addWeapon 'Itemetool';player addWeapon 'Itemtoolbox';
  2419. player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2420. };
  2421. adminsa58 =
  2422. {
  2423. {player removeMagazine _x;} forEach (magazines player);
  2424. removeAllWeapons player;
  2425. removebackpack player;
  2426. removeAllItems player;
  2427. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2428. player addweapon 'Sa58V_RCO_EP1';player selectWeapon 'Sa58V_RCO_EP1';player addMagazine '30Rnd_762x39_SA58';player addMagazine '30Rnd_762x39_SA58';player addMagazine '30Rnd_762x39_SA58';player addMagazine '30Rnd_762x39_SA58';
  2429. player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';
  2430. player addMagazine 'ItemMorphine';player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';player addMagazine '30Rnd_9x19_UZI_SD';
  2431. player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';
  2432. player addMagazine 'ItemBandage';player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';
  2433. player addWeapon 'Itemetool';player addWeapon 'Itemtoolbox';player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2434. };
  2435. adminscarccosd =
  2436. {
  2437. {player removeMagazine _x;} forEach (magazines player);
  2438. removeAllWeapons player;
  2439. removebackpack player;
  2440. removeAllItems player;
  2441. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2442. player addweapon 'SCAR_H_CQC_CCO_SD';player selectWeapon 'SCAR_H_CQC_CCO_SD';player addMagazine '20Rnd_762x51_SB_SCAR';player addMagazine '20Rnd_762x51_SB_SCAR';player addMagazine '20Rnd_762x51_SB_SCAR';
  2443. player addMagazine '20Rnd_762x51_SB_SCAR';player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';
  2444. player addMagazine 'ItemAntibiotic';player addMagazine 'ItemMorphine';player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'Binocular_Vector';player addweapon 'G17_FL_DZ';
  2445. player addMagazine '17Rnd_9x19_glock17';player addMagazine '17Rnd_9x19_glock17';player addMagazine '17Rnd_9x19_glock17';player addMagazine '17Rnd_9x19_glock17';player addMagazine '17Rnd_9x19_glock17';
  2446. player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';player addWeapon 'ItemCompass';
  2447. player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';player addWeapon 'Itemetool';player addWeapon 'Itemtoolbox';
  2448. player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2449. };
  2450. adminscareglm =
  2451. {
  2452. {player removeMagazine _x;} forEach (magazines player);
  2453. removeAllWeapons player;
  2454. removebackpack player;
  2455. removeAllItems player;
  2456. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2457. player addweapon 'SCAR_H_STD_EGLM_Spect';player selectWeapon 'SCAR_H_STD_EGLM_Spect';player addMagazine '20rnd_762x51_B_SCAR';player addMagazine '20rnd_762x51_B_SCAR';player addMagazine '20rnd_762x51_B_SCAR';player addMagazine '20rnd_762x51_B_SCAR';
  2458. player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';
  2459. player addMagazine 'ItemMorphine';player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';
  2460. player addMagazine '1Rnd_HE_M203';player addMagazine '1Rnd_HE_M203';player addMagazine '1Rnd_HE_M203';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';
  2461. player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';player addWeapon 'Itemetool';
  2462. player addWeapon 'Itemtoolbox';player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2463. };
  2464. adminscarsniper =
  2465. {
  2466. {player removeMagazine _x;} forEach (magazines player);
  2467. removeAllWeapons player;
  2468. removebackpack player;
  2469. removeAllItems player;
  2470. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2471. player addweapon 'SCAR_H_LNG_Sniper';player selectWeapon 'SCAR_H_LNG_Sniper';player addMagazine '20rnd_762x51_B_SCAR';player addMagazine '20rnd_762x51_B_SCAR';player addMagazine '20rnd_762x51_B_SCAR';player addMagazine '20rnd_762x51_B_SCAR';
  2472. player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';
  2473. player addMagazine 'ItemMorphine';player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';
  2474. player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';
  2475. player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';player addWeapon 'Itemetool';
  2476. player addWeapon 'Itemtoolbox';player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2477. };
  2478. adminsvd =
  2479. {
  2480. {player removeMagazine _x;} forEach (magazines player);
  2481. removeAllWeapons player;
  2482. removebackpack player;
  2483. removeAllItems player;
  2484. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2485. player addweapon 'SVD_DZ';player selectWeapon 'SVD_Gh_DZ';player addMagazine '10Rnd_762x54_SVD';player addMagazine '10Rnd_762x54_SVD';player addMagazine '10Rnd_762x54_SVD';player addMagazine '10Rnd_762x54_SVD';
  2486. player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';
  2487. player addMagazine 'ItemMorphine';player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';player addMagazine '30Rnd_9x19_UZI_SD';
  2488. player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';
  2489. player addMagazine 'ItemBandage';player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';
  2490. player addWeapon 'Itemetool';player addWeapon 'Itemtoolbox';player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2491. };
  2492. adminsvdcamo =
  2493. {
  2494. {player removeMagazine _x;} forEach (magazines player);
  2495. removeAllWeapons player;
  2496. removebackpack player;
  2497. player addweapon 'SVD_CAMO';player selectWeapon 'SVD_CAMO';player addMagazine '10Rnd_762x54_SVD';player addMagazine '10Rnd_762x54_SVD';player addMagazine '10Rnd_762x54_SVD';player addMagazine '10Rnd_762x54_SVD';
  2498. player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodSteakCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';
  2499. player addMagazine 'ItemMorphine';player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';player addMagazine '30Rnd_9x19_UZI_SD';
  2500. player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';
  2501. player addMagazine 'ItemBandage';player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';
  2502. player addWeapon 'Itemetool';player addWeapon 'Itemtoolbox';player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2503. };
  2504. adminvss =
  2505. {
  2506. {player removeMagazine _x;} forEach (magazines player);
  2507. removeAllWeapons player;
  2508. removebackpack player;
  2509. removeAllItems player;
  2510. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2511. player addweapon 'VSS_vintorez';player selectWeapon 'VSS_vintorez';player addMagazine '20Rnd_9x39_SP5_VSS';player addMagazine '20Rnd_9x39_SP5_VSS';player addMagazine '20Rnd_9x39_SP5_VSS';player addMagazine '20Rnd_9x39_SP5_VSS';
  2512. player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';
  2513. player addMagazine 'ItemMorphine';player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'Binocular_Vector';player addweapon 'G17_FL_DZ';player addMagazine '17Rnd_9x19_glock17';player addMagazine '17Rnd_9x19_glock17';
  2514. player addMagazine '17Rnd_9x19_glock17';player addMagazine '17Rnd_9x19_glock17';player addMagazine '17Rnd_9x19_glock17';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';
  2515. player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';player addWeapon 'Itemetool';
  2516. player addWeapon 'Itemtoolbox';player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2517. };
  2518. adminm4a1sd =
  2519. {
  2520. {player removeMagazine _x;} forEach (magazines player);
  2521. removeAllWeapons player;
  2522. removebackpack player;
  2523. removeAllItems player;
  2524. [dayz_playerUID,dayz_characterID,"Rocket_DZ"] spawn player_humanityMorph;
  2525. player addweapon 'M4A1_AIM_SD_camo';player selectWeapon 'M4A1_AIM_SD_camo';player addMagazine '30Rnd_556x45_StanagSD';player addMagazine '30Rnd_556x45_StanagSD';player addMagazine '30Rnd_556x45_StanagSD';player addMagazine '30Rnd_556x45_StanagSD';
  2526. player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodBeefCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';player addMagazine 'ItemAntibiotic';
  2527. player addMagazine 'ItemMorphine';player addWeapon 'ItemMap';player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';player addMagazine '30Rnd_9x19_UZI_SD';
  2528. player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';
  2529. player addMagazine 'ItemBandage';player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';player addWeapon 'Itemmatchbox';
  2530. player addWeapon 'Itemetool';player addWeapon 'Itemtoolbox';player addWeapon 'ItemGPS';player addWeapon 'ItemCrowbar';reload player;
  2531. };
  2532. adminheal =
  2533. {
  2534. {
  2535. if(name _x == _this select 0)then
  2536. {
  2537. PVAH_AdminReq = [5,player,_x];
  2538. publicVariableServer "PVAH_AdminReq";
  2539. hint format["Healing %1", _this select 0];
  2540.  
  2541. _sl = format["%1 AdminHeal %2",name player,name _x];
  2542. PVAH_WriteLogReq = [player,toArray _sl];
  2543. publicVariableServer 'PVAH_WriteLogReq';
  2544. };
  2545. } forEach playableUnits;
  2546. };
  2547. adminrepair =
  2548. {
  2549. _name = _this select 0;
  2550. if(_name == "")then{_name = name player;};
  2551. {
  2552. if(name _x == _name)then
  2553. {
  2554. _vehicle = vehicle _x;
  2555. _vehicle setVectorUp [0,0,1];
  2556. _x setVectorUp [0,0,1];
  2557.  
  2558. PVAH_AdminReq = [51,player,_vehicle];
  2559. publicVariableServer "PVAH_AdminReq";
  2560. hint format["Repairing Vehicle of %1",_name];
  2561.  
  2562. _sl = format['%1 Repair %2(%3)',name player,_name,typeOf _vehicle];
  2563. PVAH_WriteLogReq = [player,toArray _sl];
  2564. publicVariableServer 'PVAH_WriteLogReq';
  2565. };
  2566. } forEach playableUnits;
  2567. };
  2568. admin_flipvehicle =
  2569. {
  2570. _name = _this select 0;
  2571. if(_name == "")then{_name = name player;};
  2572. {
  2573. if(name _x == _name)then
  2574. {
  2575. PVAH_AdminReq = [52,player,getPosATL (vehicle _x)];
  2576. publicVariableServer "PVAH_AdminReq";
  2577. hint format["Flipping Vehicle near %1",_name];
  2578.  
  2579. _sl = format['%1 Flips Vehicle near %2(%3)',name player,_name];
  2580. PVAH_WriteLogReq = [player,toArray _sl];
  2581. publicVariableServer 'PVAH_WriteLogReq';
  2582. };
  2583. } forEach playableUnits;
  2584. };
  2585. admincrate =
  2586. {
  2587. PVAH_AdminReq = [9001,player];
  2588. publicVariableServer "PVAH_AdminReq";
  2589.  
  2590. hint format["Box"];
  2591. cutText [format["Box"], "PLAIN DOWN"];
  2592.  
  2593. _sl = format["%1 - BOX @%2",name player,mapGridPosition getPosATL player];
  2594. PVAH_WriteLogReq = [player,toArray _sl];
  2595. publicVariableServer 'PVAH_WriteLogReq';
  2596. };
  2597. DZ_Kit_Spawnable = ["VaultStorage","WeaponHolder","StorageShed_DZ","WoodShack_DZ","Ural_CDF","Ural_TK_CIV_EP1","Ural_UN_EP1","V3S_Open_TK_EP1","Kamaz","V3S_TK_EP1_DZE","UralCivil_DZE","UralCivil2_DZE","KamazOpen_DZE","MTVR","SUV_PMC"];
  2598. e_fnc_canInsert_Mags_Or_Weps = {
  2599. private ["_ret","_a","_b","_c","_ta","_max","_used"];
  2600. _ret = true;
  2601. _a = _this select 0;
  2602. if (isNull _a) exitWith {systemChat "You are trying to insert into a null object.";false};
  2603. _ta = typeOf _a;
  2604. _b = _this select 1;
  2605. _c = _this select 2;
  2606.  
  2607. _max = getNumber (configFile>>"CfgVehicles">>_ta>>"transportMaxMagazines");
  2608. if (_max==0 && _b!=0) exitWith {systemChat "This object cannot carry magazines";false};
  2609. _used = 0;
  2610. { _used = _used + _x;} count ((getMagazineCargo _a) select 1);
  2611. if ((_max-_used) < _b) then { systemChat format["There are not enough magazine slots available in the %1!",_ta];_ret = false;};
  2612.  
  2613. _max = getNumber (configFile>>"CfgVehicles">>_ta>>"transportMaxWeapons");
  2614. if (_max==0 && _c!=0) exitWith {systemChat "This object cannot carry weapons";false};
  2615. _used = 0;
  2616. { _used = _used + _x;} count ((getWeaponCargo _a) select 1);
  2617. if ((_max-_used) < _c) then { systemChat format["There are not enough weapon slots available in the %1!",_ta];_ret = false;};
  2618. _ret;
  2619. };
  2620. D_locked_storage =
  2621. {
  2622. PVAH_AdminReq = [9002,player];
  2623. publicVariableServer "PVAH_AdminReq";
  2624.  
  2625. hint format["BOX-ALL"];
  2626. cutText [format["BOX-ALL"], "PLAIN DOWN"];
  2627.  
  2628. _sl = format["%1 - BOX-ALL @%2",name player,mapGridPosition getPosATL player];
  2629. PVAH_WriteLogReq = [player,toArray _sl];
  2630. publicVariableServer 'PVAH_WriteLogReq';
  2631. };
  2632. admincrateEpoch =
  2633. {
  2634. PVAH_AdminReq = [9003,player];
  2635. publicVariableServer "PVAH_AdminReq";
  2636.  
  2637. hint format["Epoch-Box"];
  2638. cutText [format["Epoch-Box"], "PLAIN DOWN"];
  2639.  
  2640. _sl = format["%1 - EPOCH-BOX @%2",name player,mapGridPosition getPosATL player];
  2641. PVAH_WriteLogReq = [player,toArray _sl];
  2642. publicVariableServer 'PVAH_WriteLogReq';
  2643. };
  2644. supplypackage1 =
  2645. {
  2646. PVAH_AdminReq = [9004,player];
  2647. publicVariableServer "PVAH_AdminReq";
  2648.  
  2649. hint format["Small Supply Package Spawned!"];
  2650. cutText [format["Small Supply Package Spawned!"], "PLAIN DOWN"];
  2651.  
  2652. _sl = format["%1 - SMALL SUPPLY PACKAGE @%2",name player,mapGridPosition getPosATL player];
  2653. PVAH_WriteLogReq = [player,toArray _sl];
  2654. publicVariableServer 'PVAH_WriteLogReq';
  2655. };
  2656. supplypackage2 =
  2657. {
  2658. PVAH_AdminReq = [9005,player];
  2659. publicVariableServer "PVAH_AdminReq";
  2660.  
  2661. hint format["Medium Supply Package Spawned!"];
  2662. cutText [format["Medium Supply Package Spawned!"], "PLAIN DOWN"];
  2663.  
  2664. _sl = format["%1 - MEDIUM SUPPLY PACKAGE @%2",name player,mapGridPosition getPosATL player];
  2665. PVAH_WriteLogReq = [player,toArray _sl];
  2666. publicVariableServer 'PVAH_WriteLogReq';
  2667. };
  2668. supplypackage3 =
  2669. {
  2670. PVAH_AdminReq = [9006,player];
  2671. publicVariableServer "PVAH_AdminReq";
  2672.  
  2673. hint format["Large Supply Package Spawned!"];
  2674. cutText [format["Large Supply Package Spawned!"], "PLAIN DOWN"];
  2675.  
  2676. _sl = format["%1 - LARGE SUPPLY PACKAGE @%2",name player,mapGridPosition getPosATL player];
  2677. PVAH_WriteLogReq = [player,toArray _sl];
  2678. publicVariableServer 'PVAH_WriteLogReq';
  2679. };
  2680. supportbox =
  2681. {
  2682. _pos = (vehicle player) modelToWorld [0,3,0];
  2683.  
  2684. PVAH_AdminReq = [9099,player,_this,_pos];
  2685. publicVariableServer "PVAH_AdminReq";
  2686.  
  2687. _log = format['Spawning Box %1 on the ground infront of you!',_this];
  2688. cutText [_log, 'PLAIN DOWN'];
  2689. hint _log;
  2690. PVAH_WriteLogReq = [player,toArray _log];
  2691. publicVariableServer 'PVAH_WriteLogReq';
  2692. };
  2693. supportVault =
  2694. {
  2695. _direction = getDir player;
  2696. _position = getPosATL player;
  2697. _position = [(_position select 0) + 2 * sin(_direction), (_position select 1) + 2 * cos(_direction), _position select 2];
  2698. _combination = format['%1%2%3%4',floor(random 9)+1,floor(random 9)+1,floor(random 9)+1,floor(random 9)+1];
  2699.  
  2700. _log = format['combination: %1', _combination];
  2701. cutText [_log, 'PLAIN DOWN', 5];
  2702. systemChat _log;
  2703.  
  2704. PVAH_AdminReq = [9000, player, _this, [_direction, _position], _combination];
  2705. publicVariableServer 'PVAH_AdminReq';
  2706.  
  2707. [] spawn {sleep 3;{player reveal _x;} forEach (getpos player nearObjects ['All',50]);};
  2708.  
  2709. _log = format['Vault with combination %1 spawned at %2', _combination, mapGridPosition _position];
  2710. PVAH_WriteLogReq = [player,toArray _log];
  2711. publicVariableServer 'PVAH_WriteLogReq';
  2712. };
  2713. adminESPicons =
  2714. {
  2715. if !(('ItemGPS' in items player) || ('ItemMap' in items player))then
  2716. {
  2717. _config = ["ItemGPS"];
  2718. _isOK = [player,_config] call BIS_fnc_invAdd;
  2719. };
  2720. setGroupIconsVisible [true, true];
  2721. _color_list = [0,1,0,1];
  2722. _color_orange = [1,0.35,0.15,1];
  2723. _color_bluefor_plr = [0.047,0.502,1,1];
  2724. _color_opfor_plr = [1,0.17,0.17,1];
  2725. _color_resistance_plr = [0,0.65,0,1];
  2726. _color_civilian_plr = [1,1,1,1];
  2727. _name = "";
  2728. _show = "";
  2729. _clr = _color_bluefor_plr;
  2730. if(isNil "fnc_adminESPicons")then{fnc_adminESPicons = 0;};
  2731. if(fnc_adminESPicons == 0)then
  2732. {
  2733. fnc_adminESPicons = 1;
  2734. hint "GroupIcons ON";
  2735. cutText ["\nGroupIcons ON", "PLAIN DOWN"];
  2736.  
  2737. _nameP = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_nameP = name player;};
  2738. _sl = format["%1 GroupIcons Activated",_nameP];
  2739. PVAH_WriteLogReq = [player,toArray _sl];
  2740. publicVariableServer 'PVAH_WriteLogReq';
  2741. }
  2742. else
  2743. {
  2744. fnc_adminESPicons = 0;
  2745. hint "GroupIcons OFF";
  2746. cutText ["\nGroupIcons OFF", "PLAIN DOWN"];
  2747.  
  2748. _nameP = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_nameP = name player;};
  2749. _sl = format["%1 GroupIcons Disabled",_nameP];
  2750. PVAH_WriteLogReq = [player,toArray _sl];
  2751. publicVariableServer 'PVAH_WriteLogReq';
  2752. };
  2753.  
  2754. while{fnc_adminESPicons == 1}do
  2755. {
  2756. {
  2757. _pid = getPlayerUID _x;
  2758. if(_pid != "")then
  2759. {
  2760. _namex = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_namex = name _x;};
  2761. _name = _namex;
  2762. _veh = vehicle _x;
  2763. _type = typeOf _veh;
  2764.  
  2765. if(_name == "")then{_name = _type;};
  2766. _pos = (positionCameraToWorld [0,0,0]);
  2767. _posU = getPos _veh;
  2768. _dist = round(_pos distance _posU);
  2769.  
  2770. if(_x == _veh)then
  2771. {
  2772. _show = format["%1 (%2m)",_name,_dist];
  2773. _clr = _color_bluefor_plr;
  2774. }
  2775. else
  2776. {
  2777. _crewnames = [];
  2778. {
  2779. _namecx = 'DEAD';if((alive _x)&&(getPlayerUID _x != ''))then{_namecx = name _x;};
  2780. _crewnames = _crewnames + [_namecx];
  2781. } forEach crew _veh;
  2782.  
  2783. _show = format["%1 (%2m) - %3",_crewnames,_dist,_type];
  2784. _clr = _color_orange;
  2785. };
  2786.  
  2787. _puid = getPlayerUID player;
  2788. if(_pid in (PV_LowLevel_List+PV_NormalLevel_List+PV_SuperLevel_List))then{_clr = _color_list};
  2789. if(!(_pid in PV_SuperLevel_List) || ((_pid in PV_SuperLevel_List) && (_puid in PV_SuperLevel_List)) || (_pid == _puid))then
  2790. {
  2791. if(!(_pid in PV_DevUlDs) || (_puid in PV_DevUlDs))then
  2792. {
  2793. _grp = group _x;
  2794. clearGroupIcons _grp;
  2795. _grp addGroupIcon ["x_art"];
  2796. _grp setGroupIconParams [_clr, _show, 1, true];
  2797. };
  2798. };
  2799. };
  2800. } forEach playableUnits;
  2801. uiSleep 1;
  2802. };
  2803. {clearGroupIcons group _x;} forEach playableUnits;
  2804. };
  2805. admin_fnc_esp = {
  2806. fnc_espSHOW = {
  2807. disableSerialization;
  2808. {_x ctrlShow false;_x ctrlEnable false;} forEach TESTarr;
  2809. _camPos = positionCameraToWorld [0,0,0];
  2810. {
  2811. if(visibleMap)exitWith{};
  2812. _veh = vehicle _x;
  2813. _pos = ASLtoATL eyepos _x;
  2814. _dist = _camPos distance _pos;
  2815. _pos2D = worldToScreen _pos;
  2816. if(count _pos2D != 0)then
  2817. {
  2818. _dist = round _dist;
  2819. _text = format['<t size=''0.45'' color=''#0B80FF''>%1 (%2m)</t>',name _x,_dist];
  2820. if(_x != _veh)then
  2821. {
  2822. _crewnames = '';
  2823. {
  2824. _namex = name _x;
  2825. if(_crewnames == '')then
  2826. {
  2827. _crewnames = format['%1',_namex];
  2828. }
  2829. else
  2830. {
  2831. _crewnames = format['%1, %2',_crewnames,_namex];
  2832. };
  2833. } forEach (crew _veh);
  2834. _text = format['<t size=''0.45'' color=''#FF5926''>%1 (%2m) %3</t>',_crewnames,_dist,typeOf _veh];
  2835. };
  2836. _ctrl = TESTarr select _forEachIndex;
  2837. _ctrl ctrlEnable true;_ctrl ctrlShow true;
  2838. _ctrl ctrlSetStructuredText (parseText _text);
  2839. _ctrl ctrlSetPosition [(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1)-0.05, safezoneW, safezoneH];
  2840. _ctrl ctrlSetFade (_dist/fnc_esp_distance)+.2;
  2841. _ctrl ctrlCommit 0;
  2842. };
  2843. } forEach ESP_UNIT_ARR;
  2844. };
  2845. disableSerialization;
  2846. if(isNil'TESTarr')then
  2847. {
  2848. TESTarr = [];
  2849. for '_i' from 0 to 100 do
  2850. {
  2851. (random 9999) cutRsc ['rscDynamicText', 'PLAIN'];
  2852. _ctrl = ((uiNameSpace getVariable 'BIS_dynamicText') displayctrl 9999);
  2853. TESTarr = TESTarr + [_ctrl];
  2854. };
  2855. };
  2856. if(isNil'fnc_esp_stateT')then
  2857. {
  2858. fnc_esp_stateT = [] spawn {
  2859. _puid = getPlayerUID player;
  2860. while{true}do
  2861. {
  2862. ESP_UNIT_ARR=[];
  2863. _pos = getPos (vehicle player);
  2864. {
  2865. if((getPlayerUID _x != _puid)&&(alive _x))then
  2866. {
  2867. if(_pos distance _x < 1200)then
  2868. {
  2869. ESP_UNIT_ARR=ESP_UNIT_ARR+[_x];
  2870. };
  2871. };
  2872. } forEach playableUnits;
  2873. uiSleep 2;
  2874. };
  2875. };
  2876. fnc_esp_distance = 1200;
  2877. setGroupIconsVisible [true, false];
  2878. onEachFrame {call fnc_espSHOW;};
  2879. cutText ['ESP ON', 'PLAIN DOWN'];
  2880. }
  2881. else
  2882. {
  2883. terminate fnc_esp_stateT;fnc_esp_stateT=nil;
  2884. setGroupIconsVisible [true, true];
  2885. onEachFrame {};
  2886. cutText ['ESP OFF', 'PLAIN DOWN'];
  2887. };
  2888. {_x ctrlShow false;_x ctrlEnable false;} forEach TESTarr;
  2889. };
  2890. fnc_bruno_esp = {
  2891. _renderer_init = {
  2892. allAdminSMGT = (PV_LowLevel_List+PV_NormalLevel_List+PV_SuperLevel_List);
  2893. last_render = 2500;
  2894. onEachFrame
  2895. {
  2896. disableSerialization;
  2897. private ["_renderTargets","_ctrl","_pos","_pos2D","_text","_weapon","_renderer_recourse","_unit"];
  2898. _renderTargets = playableUnits - [cameraOn];
  2899. _renderer_recourse = 2500;
  2900. {
  2901. if(visibleMap)exitWith{};
  2902. _unit = _x;
  2903. if((isPlayer _unit) && !(isNull _unit) && ((_unit distance cameraOn) < 1500))then
  2904. {
  2905. _renderer_recourse cutRsc ['rscDynamicText', 'PLAIN'];
  2906. _ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
  2907. _ctrl ctrlShow true; _ctrl ctrlEnable true; _ctrl ctrlSetFade 0;
  2908. _pos = getPosATL _unit;
  2909. _pos = [_pos select 0, _pos select 1, (_pos select 2) + 2];
  2910. _pos2D = worldToScreen _pos;
  2911. _color =
  2912. if(getPlayerUID _unit in allAdminSMGT)then
  2913. {
  2914. "#0cff00"
  2915. }
  2916. else
  2917. {
  2918. if (vehicle _unit == _unit) then {
  2919. "#ff0000"
  2920. }
  2921. else
  2922. {
  2923. "#2E64FE"
  2924. };
  2925. };
  2926. _name = if(vehicle _unit == _unit)then
  2927. {
  2928. format ["%1 (%2)",name _unit,primaryWeapon _unit]
  2929. }else{
  2930. format ["%1 (%2)",name _unit,typeOf (vehicle _unit)]
  2931. };
  2932. if(count _pos2D > 0)then
  2933. {
  2934. _ctrl ctrlSetPosition [(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
  2935. _text = parseText format ['<t size=''0.3'' color=''%1''> %2 <br/>%3m</t>',_color,_name , round (cameraOn distance _unit)];
  2936. _ctrl ctrlSetStructuredText _text;
  2937. _ctrl ctrlCommit 0;
  2938. };
  2939. _renderer_recourse = _renderer_recourse + 1;
  2940. };
  2941. }
  2942. forEach _renderTargets;
  2943. if(_renderer_recourse < last_render)then
  2944. {
  2945. for "_i" from _renderer_recourse to last_render do {
  2946. _i cutText ["", "PLAIN"];
  2947. };
  2948. };
  2949. last_render = _renderer_recourse;
  2950. };
  2951. };
  2952. if(isNil "RENDER_ESP")then{RENDER_ESP = false;};
  2953. if!(RENDER_ESP)then
  2954. {
  2955. call _renderer_init;
  2956. RENDER_ESP = true;
  2957. systemChat "ESP ON!";
  2958. }
  2959. else
  2960. {
  2961. RENDER_ESP = false;
  2962. systemChat "ESP OFF!";
  2963. disableSerialization;
  2964. _ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
  2965. _ctrl ctrlShow false; _ctrl ctrlEnable false;
  2966. for "_i" from 2500 to 3000 do
  2967. {
  2968. _i cutText ["", "PLAIN"];
  2969. };
  2970. onEachFrame {};
  2971. };
  2972. };
  2973. fnc_MapIcons_infiSTAR = {
  2974. if(isNil "show_buildables_epoch")then{show_buildables_epoch = false;};
  2975. fnc_epochB = {
  2976. if(isNil "show_buildables_epoch")then{show_buildables_epoch = false;} else {show_buildables_epoch = !show_buildables_epoch;};
  2977. };
  2978. if(isNil "show_loot_infiSTAR")then{show_loot_infiSTAR = false;};
  2979. fnc_LootS = {
  2980. if(isNil "show_loot_infiSTAR")then{show_loot_infiSTAR = false;} else {show_loot_infiSTAR = !show_loot_infiSTAR;};
  2981. };
  2982. if(isNil "show_boxes_infiSTAR")then{show_boxes_infiSTAR = false;};
  2983. fnc_BoxS = {
  2984. if(isNil "show_boxes_infiSTAR")then{show_boxes_infiSTAR = false;} else {show_boxes_infiSTAR = !show_boxes_infiSTAR;};
  2985. };
  2986. if(isNil "show_cWEPm_infiSTAR")then{show_cWEPm_infiSTAR = false;};
  2987. fnc_CWEPS = {
  2988. if(isNil "show_cWEPm_infiSTAR")then{show_cWEPm_infiSTAR = false;} else {show_cWEPm_infiSTAR = !show_cWEPm_infiSTAR;};
  2989. };
  2990.  
  2991. fnc_MapIconConfigCM =
  2992. {
  2993. MapIconConfigCM =
  2994. [
  2995. ["",true],
  2996. ["Icon Options", [-1], "", -5, [["expression", ""]], "1", "0"],
  2997. [(format["Show Epoch Buildables - %1",show_buildables_epoch]), [2], "", -5, [["expression", "call fnc_epochB;"]], "1", "1"],
  2998. [(format["Show Loot - %1",show_loot_infiSTAR]), [3], "", -5, [["expression", "call fnc_LootS;"]], "1", "1"],
  2999. [(format["Show Boxes - %1",show_boxes_infiSTAR]), [4], "", -5, [["expression", "call fnc_BoxS;"]], "1", "1"],
  3000. [(format["Show Weapons - %1",show_cWEPm_infiSTAR]), [5], "", -5, [["expression", "call fnc_CWEPS;"]], "1", "1"]
  3001. ];
  3002. showcommandingMenu "#USER:MapIconConfigCM";
  3003. };
  3004. if !(('ItemGPS' in items player) || ('ItemMap' in items player))then
  3005. {
  3006. _config = ["ItemGPS"];
  3007. _isOK = [player,_config] call BIS_fnc_invAdd;
  3008. };
  3009. disableSerialization;
  3010. if(isNil "fnc_MapIcons_run")then
  3011. {
  3012. MapIconConfigCMKey = (findDisplay 46) displayAddEventHandler ["KeyDown","if((_this select 1) == 0x3F)then{call fnc_MapIconConfigCM};false;"];
  3013. if(MOD_EPOCH)then
  3014. {
  3015. cutText ["MapIcons Enabled - Option on F5\nBlue = Unlockable Vehicles\nRed = Lockable Vehicles", "PLAIN"];
  3016. }
  3017. else
  3018. {
  3019. cutText ["MapIcons Enabled - Option on F5", "PLAIN"];
  3020. };
  3021.  
  3022. fnc_MapIcons_run = true;
  3023.  
  3024. _map = (findDisplay 12) displayCtrl 51;
  3025. _mapdraw = _map ctrlSetEventHandler ["Draw", "_this call fnc_draw_MapIcons;"];
  3026.  
  3027. _minimap = (uiNameSpace getVariable "BIS_RscMiniMap") displayCtrl 101;
  3028. if(!isNil "_minimap")then
  3029. {
  3030. _minimapdraw = _minimap ctrlSetEventHandler ["Draw", "_this call fnc_draw_MapIcons;"];
  3031. };
  3032. }
  3033. else
  3034. {
  3035. (findDisplay 46) displayRemoveEventHandler ["KeyDown", MapIconConfigCMKey];
  3036. cutText ["MapIcons Disabled", "PLAIN"];
  3037.  
  3038. fnc_MapIcons_run = nil;
  3039. };
  3040. fnc_draw_MapIcons =
  3041. {
  3042. if(!isNil "fnc_MapIcons_run")then
  3043. {
  3044. private["_ctrl"];
  3045. _ctrl = _this select 0;
  3046. _iscale = (1 - ctrlMapScale _ctrl) max .2;
  3047. _irad = 27;
  3048. _color = [0, 0, 0, 1];
  3049. _icon = "\ca\ui\data\icon_zora_ca.paa";
  3050.  
  3051. if(show_buildables_epoch)then
  3052. {
  3053. if(visibleMap)then
  3054. {
  3055. if(isNil 'All_Map_Objects')then
  3056. {
  3057. if(isNil 'DZE_DoorsLocked')then{DZE_DoorsLocked = [];};
  3058. _DoorsLocked = [];
  3059. {
  3060. _DoorsLocked = _DoorsLocked + (allMissionObjects _x);
  3061. } forEach DZE_DoorsLocked;
  3062. All_Map_Objects = (allMissionObjects 'ModularItems')+_DoorsLocked;
  3063. [] spawn {uiSleep 30;All_Map_Objects = nil;};
  3064. };
  3065. {
  3066. _type = typeOf _x;
  3067. if(_type in ['Plastic_Pole_EP1_DZ'])then
  3068. {
  3069. _icon = "\Ca\buildings\Icons\i_wall_CA.paa";
  3070. _icon = getText (configFile >> 'CfgVehicles' >> _type >> 'picture');
  3071. _ctrl drawIcon [_icon, [0.4,0.25,0,1], getPosASL _x, 10, 10, getDir _x, "", 0];
  3072. }
  3073. else
  3074. {
  3075. _icon = "\Ca\buildings\Icons\i_wall_CA.paa";
  3076. _ctrl drawIcon [_icon, [0.4,0.25,0,1], getPosASL _x, 10, 10, getDir _x, "", 0];
  3077. };
  3078. } forEach All_Map_Objects;
  3079. };
  3080. };
  3081. if((show_loot_infiSTAR) || (show_boxes_infiSTAR))then
  3082. {
  3083. if(isNil 'lootBoxesArray')then
  3084. {
  3085. lootBoxesArray = (allMissionObjects "ReammoBox");
  3086. [] spawn {uiSleep 10;lootBoxesArray = nil;};
  3087. };
  3088.  
  3089. {
  3090. if(!isNull _x)then
  3091. {
  3092. _type = typeOf _x;
  3093. if(_type == "WeaponHolder")then
  3094. {
  3095. if(show_loot_infiSTAR)then
  3096. {
  3097. _icon = "\ca\ui\data\icon_zora_ca.paa";
  3098. _wepCargo = (getWeaponCargo _x) select 0;
  3099. if(count _wepCargo > 0)then
  3100. {
  3101. _icon = getText (configFile >> 'CfgWeapons' >> _wepCargo select 0 >> 'picture');
  3102. }
  3103. else
  3104. {
  3105. _magCargo = (getMagazineCargo _x) select 0;
  3106. if(count _magCargo > 0)then
  3107. {
  3108. _icon = getText (configFile >> 'CfgMagazines' >> _magCargo select 0 >> 'picture');
  3109. };
  3110. };
  3111. _irad = 25;
  3112. _ctrl drawIcon [_icon, [0.74,0.97,0.98,1], getPosASL _x, _iscale*_irad, _iscale*_irad, getDir _x, "", 1];
  3113. };
  3114. }
  3115. else
  3116. {
  3117. if(show_boxes_infiSTAR)then
  3118. {
  3119. _icon = getText(configFile >> "CfgVehicles" >> _type >> "icon");
  3120. _irad = 25;
  3121. _ctrl drawIcon [_icon, [1,0,0,1], getPosASL _x, _iscale*_irad, _iscale*_irad, getDir _x, "", 1];
  3122. };
  3123. };
  3124. };
  3125. } forEach lootBoxesArray;
  3126. };
  3127. _AllVehicles = player nearEntities ['AllVehicles',1000000];
  3128. if(!visibleMap)then
  3129. {
  3130. _AllVehicles = player nearEntities ['AllVehicles',150];
  3131. };
  3132. _puid = getPlayerUID player;
  3133. {
  3134. if(!isNull _x)then
  3135. {
  3136. _type = typeOf _x;
  3137. _pid = getPlayerUID _x;
  3138. if((_x isKindOf "LandVehicle") || (_x isKindOf "Air") || (_x isKindOf "Ship"))then
  3139. {
  3140. _icon = getText(configFile >> "CfgVehicles" >> _type >> "icon");
  3141. _irad = 27;
  3142. _vehcolor = [0.05,0.05,0.6,1];
  3143. _characterID = _x getVariable['CharacterID','0'];
  3144. if((MOD_EPOCH) && (_characterID != '0'))then
  3145. {
  3146. _vehcolor = [0.7,0,0,1];
  3147. };
  3148. _ctrl drawIcon [_icon, _vehcolor, getPosASL _x, _iscale*_irad, _iscale*_irad, getDir _x, "", 0.5];
  3149. };
  3150. if((_x isKindOf "Man") || (_pid != ""))then
  3151. {
  3152. if(!(_pid in PV_SuperLevel_List) || ((_pid in PV_SuperLevel_List) && (_puid in PV_SuperLevel_List)) || (_pid == _puid))then
  3153. {
  3154. if(!(_pid in PV_DevUlDs) || (_puid in PV_DevUlDs))then
  3155. {
  3156. if(_x == player)then{_color = [0, 0, 0, 1];} else {_color = [1, 0, 0, 1];};
  3157. if((_x isKindOf "zZombie_Base") || (_x isKindOf "Animal"))then
  3158. {
  3159. if(_pid != "")then
  3160. {
  3161. _ctrl drawIcon ["\ca\ui\data\iconman_ca.paa", _color, getPosASL _x, _iscale*30, _iscale*30, getDir _x, "", 1];
  3162. };
  3163. }
  3164. else
  3165. {
  3166. _ctrl drawIcon ["\ca\ui\data\iconman_ca.paa", _color, getPosASL _x, _iscale*30, _iscale*30, getDir _x, "", 1];
  3167. if(show_cWEPm_infiSTAR)then
  3168. {
  3169. _icon = getText (configFile >> 'CfgWeapons' >> (currentWeapon _x) >> 'picture');
  3170. _irad = 35;
  3171. _pos = getPosASL _x;
  3172. _pos = [_pos select 0,(_pos select 1) + 12,_pos select 2];
  3173. _ctrl drawIcon [_icon, [0.74,0.97,0.98,1], _pos, _iscale*_irad, _iscale*_irad, (getDir _x)+90, "", 1];
  3174. };
  3175. };
  3176. };
  3177. };
  3178. };
  3179. };
  3180. } forEach _AllVehicles;
  3181. };
  3182. };
  3183. };
  3184. adminwreck =
  3185. {
  3186. if !(('ItemGPS' in items player) || ('ItemMap' in items player))then
  3187. {
  3188. _config = ["ItemGPS"];
  3189. _isOK = [player,_config] call BIS_fnc_invAdd;
  3190. };
  3191.  
  3192. stopadminwrecks =
  3193. {
  3194. for "_i" from 0 to 8888 do {deleteMarkerLocal ("adminwrecks" + (str _i));};
  3195. };
  3196. adminwrecks =
  3197. {
  3198. while{markadwreck == 1}do
  3199. {
  3200. if(markadwreck == 0)exitWith {[] spawn stopadminwrecks;};
  3201. _objects = allMissionObjects "SpawnableWreck" + allMissionObjects "Supply_Crate_DZE" + allMissionObjects "UH60Wreck_DZ" + allMissionObjects "UH1Wreck_DZ" + allMissionObjects "Mi8Wreck_DZ";
  3202. _objects = _objects + vehicles;
  3203. for "_i" from 0 to (count _objects)-1 do
  3204. {
  3205. deleteMarkerLocal ("adminwrecks" + (str _i));
  3206.  
  3207. _selected = _objects select _i;
  3208. _type = typeOf _selected;
  3209. if((getText (configFile >> 'CfgVehicles' >> (typeOf _selected) >> 'displayName') == 'Wreck') ||
  3210. (_type in ["UH60Wreck_DZ","UH1Wreck_DZ","Mi8Wreck_DZ","UH60_NAVY_Wreck_DZ","UH60_ARMY_Wreck_DZ","UH60_NAVY_Wreck_burned_DZ","UH60_ARMY_Wreck_burned_DZ","Mass_grave_DZ"]) ||
  3211. (_selected isKindOf "ReammoBox") || (_selected isKindOf "Supply_Crate_DZE") || (_selected isKindOf "Wreck_Base") || (_selected isKindOf "Wreck"))then
  3212. {
  3213. deleteMarkerLocal ("adminwrecks" + (str _i));
  3214. _vm = createMarkerLocal [("adminwrecks" + (str _i)), getPos _selected];
  3215. _vm setMarkerTypeLocal "SupplyVehicle";
  3216. _vm setMarkerSizeLocal [0.8, 0.8];
  3217. _vm setMarkerTextLocal format[" %1", getText (configFile >> 'CfgVehicles' >> (typeOf _selected) >> 'displayName')];
  3218. _vm setMarkerColorLocal ("ColorYellow");
  3219. };
  3220. };
  3221. uiSleep 5;
  3222. };
  3223. [] spawn stopadminwrecks;
  3224. };
  3225. if(isNil "markadwreck")then{markadwreck = 0;};
  3226. if(markadwreck == 0)then
  3227. {
  3228. markadwreck = 1;
  3229. hint "2D Map WRECK Markers Activated";
  3230. [] spawn adminwrecks;
  3231.  
  3232. _sl = format["%1 WRECK Activated",name player];
  3233. PVAH_WriteLogReq = [player,toArray _sl];
  3234. publicVariableServer 'PVAH_WriteLogReq';
  3235. }
  3236. else
  3237. {
  3238. markadwreck = 0;
  3239. hint "2D Map WRECK Markers Disabled";
  3240.  
  3241. [] spawn stopadminwrecks;
  3242.  
  3243. _sl = format["%1 WRECK Disabled",name player];
  3244. PVAH_WriteLogReq = [player,toArray _sl];
  3245. publicVariableServer 'PVAH_WriteLogReq';
  3246. };
  3247. };
  3248. admintent =
  3249. {
  3250. if !(('ItemGPS' in items player) || ('ItemMap' in items player))then
  3251. {
  3252. _config = ["ItemGPS"];
  3253. _isOK = [player,_config] call BIS_fnc_invAdd;
  3254. };
  3255.  
  3256. admintents =
  3257. {
  3258. while{markadtent == 1}do
  3259. {
  3260. _objects = [];
  3261. {
  3262. _objects = _objects + (allMissionObjects _x);
  3263. uiSleep 0.5;
  3264. } forEach ["TentStorage","StashSmall","StashSmall1","StashSmall2","StashSmall3","StashSmall4","StashMedium","StashMedium1","StashMedium2","StashMedium3", "StashMedium4"];
  3265. for "_i" from 0 to (count _objects)-1 do
  3266. {
  3267. _selected = _objects select _i;
  3268. deleteMarkerLocal ("admintents" + (str _i));
  3269. _vm = createMarkerLocal [("admintents" + (str _i)), getPos _selected];
  3270. _vm setMarkerTypeLocal "Camp";
  3271. _vm setMarkerSizeLocal [0.8, 0.8];
  3272. _vm setMarkerTextLocal format[" %1", getText (configFile >> 'CfgVehicles' >> (typeOf _selected) >> 'displayName')];
  3273. _vm setMarkerColorLocal ("ColorGreen");
  3274. };
  3275. uiSleep 20;
  3276. };
  3277. for "_i" from 0 to 8888 do {deleteMarkerLocal ("admintents" + (str _i));};
  3278. };
  3279. if(isNil "markadtent")then{markadtent = 0;};
  3280. if(markadtent == 0)then
  3281. {
  3282. markadtent = 1;
  3283. hint "2D Map Tent Markers Activated";
  3284. [] spawn admintents;
  3285.  
  3286. _sl = format["%1 TentMarker Activated",name player];
  3287. PVAH_WriteLogReq = [player,toArray _sl];
  3288. publicVariableServer 'PVAH_WriteLogReq';
  3289. }
  3290. else
  3291. {
  3292. markadtent = 0;
  3293. hint "2D Map Tent Markers Disabled";
  3294.  
  3295. for "_i" from 0 to 8888 do {deleteMarkerLocal ("admintents" + (str _i));};
  3296.  
  3297. _sl = format["%1 TentMarker Disabled",name player];
  3298. PVAH_WriteLogReq = [player,toArray _sl];
  3299. publicVariableServer 'PVAH_WriteLogReq';
  3300. };
  3301. };
  3302. adminDEAD =
  3303. {
  3304. if !(('ItemGPS' in items player) || ('ItemMap' in items player))then
  3305. {
  3306. _config = ["ItemGPS"];
  3307. _isOK = [player,_config] call BIS_fnc_invAdd;
  3308. };
  3309. adminDEADs =
  3310. {
  3311. while{markadDEAD == 1}do
  3312. {
  3313. if !(markadDEAD == 1)exitWith {
  3314. for "_i" from 0 to 8888 do {deleteMarkerLocal ("adminDEADs" + (str _i));};
  3315. };
  3316. _objects = (allDead+allMissionObjects "GraveDZE");
  3317. for "_i" from 0 to (count _objects)-1 do
  3318. {
  3319. deleteMarkerLocal ("adminDEADs" + (str _i));
  3320. _selected = _objects select _i;
  3321. if(typeOf _selected == 'GraveDZE')then
  3322. {
  3323. _vm = createMarkerLocal [("adminDEADs" + (str _i)), getPos _selected];
  3324. _vm setMarkerTypeLocal "Camp";
  3325. _vm setMarkerSizeLocal [0.4, 0.4];
  3326. _vm setMarkerTextLocal format["%1","GRAVE"];
  3327. _vm setMarkerColorLocal ("ColorRED");
  3328. }
  3329. else
  3330. {
  3331. if((!isNull _selected) && !(_selected isKindOf "zZombie_base") && (_selected isKindOf "CAManBase"))then
  3332. {
  3333. _name = (_selected getVariable["bodyName",""]);
  3334. if(_name != "")then
  3335. {
  3336. _vm = createMarkerLocal [("adminDEADs" + (str _i)), getPos _selected];
  3337. _vm setMarkerTypeLocal "Camp";
  3338. _vm setMarkerSizeLocal [0.4, 0.4];
  3339. _vm setMarkerTextLocal format["%1",_name];
  3340. _vm setMarkerColorLocal ("ColorRED");
  3341. };
  3342. };
  3343. };
  3344. };
  3345. uiSleep 5;
  3346. };
  3347. for "_i" from 0 to 8888 do {deleteMarkerLocal ("adminDEADs" + (str _i));};
  3348. };
  3349. if(isNil "markadDEAD")then{markadDEAD = 0;};
  3350. if(markadDEAD == 0)then
  3351. {
  3352. markadDEAD = 1;
  3353. hint "2D Map DEADMarker Activated";
  3354. [] spawn adminDEADs;
  3355.  
  3356. _sl = format["%1 DEADMarker Activated",name player];
  3357. PVAH_WriteLogReq = [player,toArray _sl];
  3358. publicVariableServer 'PVAH_WriteLogReq';
  3359. }
  3360. else
  3361. {
  3362. markadDEAD = 0;
  3363. hint "2D Map DEADMarker Disabled";
  3364.  
  3365. for "_i" from 0 to 8888 do {deleteMarkerLocal ("adminDEADs" + (str _i));};
  3366.  
  3367. _sl = format["%1 DEADMarker Disabled",name player];
  3368. PVAH_WriteLogReq = [player,toArray _sl];
  3369. publicVariableServer 'PVAH_WriteLogReq';
  3370. };
  3371. };
  3372. adminPlotPole =
  3373. {
  3374. if !(('ItemGPS' in items player) || ('ItemMap' in items player))then
  3375. {
  3376. _config = ['ItemGPS'];
  3377. _isOK = [player,_config] call BIS_fnc_invAdd;
  3378. };
  3379. adminPlotPoles =
  3380. {
  3381. while{markadPlotPole == 1}do
  3382. {
  3383. ADMIN_PlotPole_LIST = [] + (allMissionObjects 'Plastic_Pole_EP1_DZ');
  3384. if(markadPlotPole == 0)exitWith {};
  3385. for '_i' from 0 to (count ADMIN_PlotPole_LIST)-1 do
  3386. {
  3387. if(markadPlotPole == 0)exitWith {};
  3388.  
  3389. deleteMarkerLocal ('adminPlotPoles' + (str _i));
  3390. _selected = ADMIN_PlotPole_LIST select _i;
  3391. _vm = createMarkerLocal [('adminPlotPoles' + (str _i)), getPos _selected];
  3392. _vm setMarkerAlphaLocal 0.8;
  3393. _vm setMarkerBrushLocal 'Grid';
  3394. if(isNil 'DZE_PlotPole')then{DZE_PlotPole = [30,45];};
  3395. _vm setMarkerSizeLocal [DZE_PlotPole select 0,DZE_PlotPole select 0];
  3396. _vm setMarkerShapeLocal 'ELLIPSE';
  3397. _vm setMarkerColorLocal 'ColorGreen';
  3398.  
  3399. _k = _i + 4000;
  3400. deleteMarkerLocal ('adminPlotPoles' + (str _k));
  3401. _vm = createMarkerLocal [('adminPlotPoles' + (str _k)), getPos _selected];
  3402. _vm setMarkerTypeLocal 'mil_start';
  3403. _vm setMarkerSizeLocal [0.5, 0.5];
  3404. _vm setMarkerTextLocal 'Plot';
  3405. _vm setMarkerColorLocal 'ColorGreen';
  3406.  
  3407. if(markadPlotPole == 0)exitWith {};
  3408. };
  3409. if(markadPlotPole == 0)exitWith {};
  3410. uiSleep 15;
  3411. };
  3412. for '_i' from 0 to 8888 do {deleteMarkerLocal ('adminPlotPoles' + (str _i));deleteMarkerLocal ('adminPlotPoles' + (str (_i+4000)));};
  3413. };
  3414. if(isNil 'markadPlotPole')then{markadPlotPole = 0;};
  3415. if(markadPlotPole == 0)then
  3416. {
  3417. markadPlotPole = 1;
  3418. hint '2D Map PlotPoleMarker Activated';
  3419. [] spawn adminPlotPoles;
  3420.  
  3421. _sl = format['%1 PlotPoleMarker Activated',name player];
  3422. PVAH_WriteLogReq = [player,toArray _sl];
  3423. publicVariableServer 'PVAH_WriteLogReq';
  3424. }
  3425. else
  3426. {
  3427. markadPlotPole = 0;
  3428. hint '2D Map PlotPoleMarker Disabled';
  3429.  
  3430. for '_i' from 0 to 8888 do {deleteMarkerLocal ('adminPlotPoles' + (str _i));deleteMarkerLocal ('adminPlotPoles' + (str (_i+4000)));};
  3431.  
  3432. _sl = format['%1 PlotPoleMarker Disabled',name player];
  3433. PVAH_WriteLogReq = [player,toArray _sl];
  3434. publicVariableServer 'PVAH_WriteLogReq';
  3435. };
  3436. };
  3437. adminVAULT =
  3438. {
  3439. if !(('ItemGPS' in items player) || ('ItemMap' in items player))then
  3440. {
  3441. _config = ["ItemGPS"];
  3442. _isOK = [player,_config] call BIS_fnc_invAdd;
  3443. };
  3444. adminVAULTs =
  3445. {
  3446. while{markadVAULT == 1}do
  3447. {
  3448. ADMIN_VAULT_LIST = [] + (allMissionObjects "VaultStorage"+allMissionObjects "VaultStorageLocked"+allMissionObjects "LockboxStorageLocked"+allMissionObjects "LockboxStorage");
  3449.  
  3450. if !(markadVAULT == 1)exitWith {
  3451. for "_i" from 0 to 8888 do {deleteMarkerLocal ("adminVAULTs" + (str _i));};
  3452. };
  3453. for "_i" from 0 to (count ADMIN_VAULT_LIST)-1 do
  3454. {
  3455. deleteMarkerLocal ("adminVAULTs" + (str _i));
  3456. _selected = ADMIN_VAULT_LIST select _i;
  3457. _vm = createMarkerLocal [("adminVAULTs" + (str _i)), getPos _selected];
  3458. _vm setMarkerTypeLocal "Camp";
  3459. _vm setMarkerSizeLocal [0.5, 0.5];
  3460. _vm setMarkerTextLocal "VAULT";
  3461. _vm setMarkerColorLocal ("ColorYellow");
  3462. };
  3463. uiSleep 5;
  3464. };
  3465. for "_i" from 0 to 8888 do {deleteMarkerLocal ("adminVAULTs" + (str _i));};
  3466. };
  3467. if(isNil "markadVAULT")then{markadVAULT = 0;};
  3468. if(markadVAULT == 0)then
  3469. {
  3470. markadVAULT = 1;
  3471. hint "2D Map VAULTMarker Activated";
  3472. [] spawn adminVAULTs;
  3473.  
  3474. _sl = format["%1 VAULTMarker Activated",name player];
  3475. PVAH_WriteLogReq = [player,toArray _sl];
  3476. publicVariableServer 'PVAH_WriteLogReq';
  3477. }
  3478. else
  3479. {
  3480. markadVAULT = 0;
  3481. hint "2D Map VAULTMarker Disabled";
  3482.  
  3483. for "_i" from 0 to 8888 do {deleteMarkerLocal ("adminVAULTs" + (str _i));};
  3484.  
  3485. _sl = format["%1 VAULTMarker Disabled",name player];
  3486. PVAH_WriteLogReq = [player,toArray _sl];
  3487. publicVariableServer 'PVAH_WriteLogReq';
  3488. };
  3489. };
  3490. adminVEINE =
  3491. {
  3492. if !(('ItemGPS' in items player) || ('ItemMap' in items player))then
  3493. {
  3494. _config = ["ItemGPS"];
  3495. _isOK = [player,_config] call BIS_fnc_invAdd;
  3496. };
  3497. adminVEINEs =
  3498. {
  3499. while{markadVEINE == 1}do
  3500. {
  3501. ADMIN_VEINE_LIST = [] + (allMissionObjects "Iron_Vein_DZE"+allMissionObjects "Silver_Vein_DZE"+allMissionObjects "Gold_Vein_DZE");
  3502.  
  3503. if !(markadVEINE == 1)exitWith {
  3504. for "_i" from 0 to 8888 do {deleteMarkerLocal ("adminVEINEs" + (str _i));};
  3505. };
  3506. for "_i" from 0 to (count ADMIN_VEINE_LIST)-1 do
  3507. {
  3508. deleteMarkerLocal ("adminVEINEs" + (str _i));
  3509. _selected = ADMIN_VEINE_LIST select _i;
  3510. _vm = createMarkerLocal [("adminVEINEs" + (str _i)), getPos _selected];
  3511. _vm setMarkerTypeLocal "DestroyedVehicle";
  3512. _vm setMarkerSizeLocal [0.5, 0.5];
  3513. _vm setMarkerTextLocal "VEINE";
  3514. _vm setMarkerColorLocal ("ColorYellow");
  3515. };
  3516. uiSleep 5;
  3517. };
  3518. for "_i" from 0 to 8888 do {deleteMarkerLocal ("adminVEINEs" + (str _i));};
  3519. };
  3520. if(isNil "markadVEINE")then{markadVEINE = 0;};
  3521. if(markadVEINE == 0)then
  3522. {
  3523. markadVEINE = 1;
  3524. hint "2D Map VEINEMarker Activated";
  3525. [] spawn adminVEINEs;
  3526.  
  3527. _sl = format["%1 VEINEMarker Activated",name player];
  3528. PVAH_WriteLogReq = [player,toArray _sl];
  3529. publicVariableServer 'PVAH_WriteLogReq';
  3530. }
  3531. else
  3532. {
  3533. markadVEINE = 0;
  3534. hint "2D Map VEINEMarker Disabled";
  3535.  
  3536. for "_i" from 0 to 8888 do {deleteMarkerLocal ("adminVEINEs" + (str _i));};
  3537.  
  3538. _sl = format["%1 VEINEMarker Disabled",name player];
  3539. PVAH_WriteLogReq = [player,toArray _sl];
  3540. publicVariableServer 'PVAH_WriteLogReq';
  3541. };
  3542. };
  3543. adminLocateVeh =
  3544. {
  3545. _inv = items player;
  3546. if !(('ItemGPS' in _inv) || ('ItemMap' in _inv))then
  3547. {
  3548. _config = ['ItemGPS'];
  3549. _isOK = [player,_config] call BIS_fnc_invAdd;
  3550. };
  3551.  
  3552. adminvehlocmark =
  3553. {
  3554. _markerscreated = 0;
  3555. while{vehlocmark == 1}do
  3556. {
  3557. _items = (items player);
  3558. _temp_keys = [];
  3559. _removeKeys = [];
  3560. _key_colors = ['ItemKeyYellow','ItemKeyBlue','ItemKeyRed','ItemKeyGreen','ItemKeyBlack'];
  3561. {
  3562. if(configName(inheritsFrom(configFile >> 'CfgWeapons' >> _x)) in _key_colors)then
  3563. {
  3564. _ownerKeyId = getNumber(configFile >> 'CfgWeapons' >> _x >> 'keyid');
  3565. _keyName = getText (configFile >> 'CfgWeapons' >> _x >> 'displayName');
  3566. _temp_keys = _temp_keys + [_ownerKeyId,_keyName,_x];
  3567. _removeKeys = _removeKeys + [_x];
  3568. };
  3569. } forEach _items;
  3570.  
  3571. for '_i' from 0 to (_markerscreated+1) do {deleteMarkerLocal ('vehicleLocMarker'+ (str _i));};
  3572. _markerscreated = 0;
  3573.  
  3574.  
  3575. {
  3576. if(!isNil '_x')then
  3577. {
  3578. if(!isNull _x)then
  3579. {
  3580. _charID = _x getVariable ['CharacterID','0'];
  3581. _tID = parseNumber _charID;
  3582. _ftID = _temp_keys find _tID;
  3583. if(_ftID != -1)then
  3584. {
  3585. _targetPosition = getPosATL _x;
  3586. _vehicleName = gettext (configFile >> 'CfgVehicles' >> (typeOf _x) >> 'displayName');
  3587. _Marker = 'vehicleLocMarker' + (str _markerscreated);
  3588. _vehicleLocMarker = createMarkerLocal [_Marker,[(_targetPosition select 0),(_targetPosition select 1)]];
  3589. _vehicleLocMarker setMarkerShapeLocal 'ICON';
  3590. _vehicleLocMarker setMarkerTypeLocal 'DOT';
  3591. _vehicleLocMarker setMarkerColorLocal 'ColorYellow';
  3592. _vehicleLocMarker setMarkerSizeLocal [1.0, 1.0];
  3593.  
  3594. _keyName = _temp_keys select (_ftID+1);
  3595. _keyItem = _temp_keys select (_ftID+2);
  3596. _vehicleLocMarker setMarkerTextLocal format['%1 - %2',_vehicleName,_keyName];
  3597. _markerscreated = _markerscreated + 1;
  3598.  
  3599. _removeKeys = _removeKeys - [_keyItem];
  3600. };
  3601. };
  3602. };
  3603. } forEach ([0,0,0] nearEntities [['LandVehicle','Air','Ship'],35000]);
  3604. {
  3605. player removeWeapon _x;
  3606. } forEach _removeKeys;
  3607. uiSleep 1;
  3608. };
  3609. for '_i' from 0 to 9999 do {deleteMarkerLocal ('vehicleLocMarker'+ (str _i));};
  3610. };
  3611. if(isNil 'vehlocmark')then{vehlocmark = 0;};
  3612. if(vehlocmark == 0)then
  3613. {
  3614. vehlocmark = 1;
  3615. hint 'Check the map to locate your vehicle(s)!';
  3616. [] spawn adminvehlocmark;
  3617.  
  3618. _sl = format['%1 Vehicle Location Markers Activated',name player];
  3619. PVAH_WriteLogReq = [player,toArray _sl];
  3620. publicVariableServer 'PVAH_WriteLogReq';
  3621. }
  3622. else
  3623. {
  3624. vehlocmark = 0;
  3625. hint 'Your Vehicle Locations are removed..';
  3626.  
  3627. _sl = format['%1 Vehicle Location Markers Disabled',name player];
  3628. PVAH_WriteLogReq = [player,toArray _sl];
  3629. publicVariableServer 'PVAH_WriteLogReq';
  3630. };
  3631. };
  3632. adminmark =
  3633. {
  3634. if !(('ItemGPS' in items player) || ('ItemMap' in items player))then
  3635. {
  3636. _config = ["ItemGPS"];
  3637. _isOK = [player,_config] call BIS_fnc_invAdd;
  3638. };
  3639.  
  3640. adminpmark =
  3641. {
  3642. while{mark == 1}do
  3643. {
  3644. _puid = getPlayerUID player;
  3645. _playableUnits = playableUnits;
  3646. for "_i" from 0 to (count _playableUnits)-1 do
  3647. {
  3648. deleteMarkerLocal ("adminpmark" + (str _i));
  3649. if((_playableUnits select _i) == vehicle (_playableUnits select _i))then
  3650. {
  3651. deleteMarkerLocal ("adminpmark" + (str _i));
  3652. _pid = getPlayerUID (_playableUnits select _i);
  3653. if(!(_pid in PV_SuperLevel_List) || ((_pid in PV_SuperLevel_List) && (_puid in PV_SuperLevel_List)) || (_pid == _puid))then
  3654. {
  3655. if(!(_pid in PV_DevUlDs) || (_puid in PV_DevUlDs))then
  3656. {
  3657. _pm = createMarkerLocal [("adminpmark" + (str _i)), getPos (_playableUnits select _i)];
  3658. _pm setMarkerTypeLocal "DestroyedVehicle";
  3659. _pm setMarkerSizeLocal [0.8, 0.8];
  3660. _pm setMarkerTextLocal format["%1", name (_playableUnits select _i)];
  3661. _pm setMarkerColorLocal ("ColorBlue");
  3662. };
  3663. };
  3664. };
  3665. };
  3666. uiSleep 2;
  3667. };
  3668. for "_i" from 0 to 8888 do {deleteMarkerLocal ("adminpmark" + (str _i));};
  3669. };
  3670. if(isNil "mark")then{mark = 0;};
  3671. if(mark == 0)then
  3672. {
  3673. mark = 1;
  3674. hint "2D Map Player Markers Activated";
  3675. [] spawn adminpmark;
  3676.  
  3677. _sl = format["%1 PlayerMarkers Activated",name player];
  3678. PVAH_WriteLogReq = [player,toArray _sl];
  3679. publicVariableServer 'PVAH_WriteLogReq';
  3680. }
  3681. else
  3682. {
  3683. mark = 0;
  3684. hint "2D Map Player Markers Disabled";
  3685.  
  3686. for "_i" from 0 to 8888 do {deleteMarkerLocal ("adminpmark" + (str _i));};
  3687.  
  3688. _sl = format["%1 PlayerMarkers Disabled",name player];
  3689. PVAH_WriteLogReq = [player,toArray _sl];
  3690. publicVariableServer 'PVAH_WriteLogReq';
  3691. };
  3692. };
  3693. adminmarkveh_U =
  3694. {
  3695. if !(('ItemGPS' in items player) || ('ItemMap' in items player))then
  3696. {
  3697. _config = ["ItemGPS"];
  3698. _isOK = [player,_config] call BIS_fnc_invAdd;
  3699. };
  3700.  
  3701. adminvmark_U =
  3702. {
  3703. while{markveh_U == 1}do
  3704. {
  3705. _vehicles = [0,0,0] nearEntities [['LandVehicle','Air','Ship'],50000];
  3706. for "_i" from 0 to (count _vehicles)-1 do
  3707. {
  3708. deleteMarkerLocal ("adminvmark_U" + (str _i));
  3709. _cveh = _vehicles select _i;
  3710. if !(locked _cveh)then
  3711. {
  3712. if(count crew _cveh != 0)then
  3713. {
  3714. _crewnames = [];
  3715. {
  3716. _crewnames = _crewnames + [name _x];
  3717. } forEach crew _cveh;
  3718.  
  3719. deleteMarkerLocal ("adminvmark_U" + (str _i));
  3720. _vm = createMarkerLocal [("adminvmark_U" + (str _i)), getPos _cveh];
  3721. _vm setMarkerTypeLocal "DestroyedVehicle";
  3722. _vm setMarkerSizeLocal [0.8, 0.8];
  3723. _vm setMarkerTextLocal format["%1 in %2", _crewnames,getText (configFile >> 'CfgVehicles' >> (typeOf _cveh) >> 'displayName')];
  3724. _vm setMarkerColorLocal ("ColorRed");
  3725. }
  3726. else
  3727. {
  3728. deleteMarkerLocal ("adminvmark_U" + (str _i));
  3729. _vm = createMarkerLocal [("adminvmark_U" + (str _i)), getPos _cveh];
  3730. _vm setMarkerTypeLocal "DestroyedVehicle";
  3731. _vm setMarkerSizeLocal [0.8, 0.8];
  3732. _vm setMarkerTextLocal format["%1", getText (configFile >> 'CfgVehicles' >> (typeOf _cveh) >> 'displayName')];
  3733. _vm setMarkerColorLocal ("ColorBlack");
  3734. };
  3735. };
  3736. };
  3737. uiSleep 3;
  3738. };
  3739. for "_i" from 0 to 8888 do {deleteMarkerLocal ("adminvmark_U" + (str _i));};
  3740. };
  3741. if(isNil "markveh_U")then{markveh_U = 0;};
  3742. if(markveh_U == 0)then
  3743. {
  3744. markveh_U = 1;
  3745. hint "2D Map (unlocked) VEHICLE Markers Activated";
  3746. [] spawn adminvmark_U;
  3747.  
  3748. _sl = format["%1 (unlocked) VEHICLEMarkers Activated",name player];
  3749. PVAH_WriteLogReq = [player,toArray _sl];
  3750. publicVariableServer 'PVAH_WriteLogReq';
  3751. }
  3752. else
  3753. {
  3754. markveh_U = 0;
  3755. hint "2D Map (unlocked) VEHICLE Markers Disabled";
  3756.  
  3757. for "_i" from 0 to 8888 do {deleteMarkerLocal ("adminvmark_U" + (str _i));};
  3758.  
  3759. _sl = format["%1 (unlocked) VEHICLEMarkers Disabled",name player];
  3760. PVAH_WriteLogReq = [player,toArray _sl];
  3761. publicVariableServer 'PVAH_WriteLogReq';
  3762. };
  3763. };
  3764. adminmarkveh_L =
  3765. {
  3766. if !(('ItemGPS' in items player) || ('ItemMap' in items player))then
  3767. {
  3768. _config = ["ItemGPS"];
  3769. _isOK = [player,_config] call BIS_fnc_invAdd;
  3770. };
  3771.  
  3772. adminvmark_L =
  3773. {
  3774. while{markveh_L == 1}do
  3775. {
  3776. _vehicles = ([0,0,0] nearEntities [['LandVehicle','Air','Ship'], 35000]);
  3777. for "_i" from 0 to (count _vehicles)-1 do
  3778. {
  3779. deleteMarkerLocal ("adminvmark_L" + (str _i));
  3780. _cveh = _vehicles select _i;
  3781. if(locked _cveh)then
  3782. {
  3783. if(count crew _cveh != 0)then
  3784. {
  3785. _crewnames = [];
  3786. {
  3787. _crewnames = _crewnames + [name _x];
  3788. } forEach crew _cveh;
  3789.  
  3790. deleteMarkerLocal ("adminvmark_L" + (str _i));
  3791. _vm = createMarkerLocal [("adminvmark_L" + (str _i)), getPos _cveh];
  3792. _vm setMarkerTypeLocal "DestroyedVehicle";
  3793. _vm setMarkerSizeLocal [0.8, 0.8];
  3794. _vm setMarkerTextLocal format["%1 in %2", _crewnames,getText (configFile >> 'CfgVehicles' >> (typeOf _cveh) >> 'displayName')];
  3795. _vm setMarkerColorLocal ("ColorRed");
  3796. }
  3797. else
  3798. {
  3799. deleteMarkerLocal ("adminvmark_L" + (str _i));
  3800. _vm = createMarkerLocal [("adminvmark_L" + (str _i)), getPos _cveh];
  3801. _vm setMarkerTypeLocal "DestroyedVehicle";
  3802. _vm setMarkerSizeLocal [0.8, 0.8];
  3803. _vm setMarkerTextLocal format["%1", getText (configFile >> 'CfgVehicles' >> (typeOf _cveh) >> 'displayName')];
  3804. _vm setMarkerColorLocal ("ColorBrown");
  3805. };
  3806. };
  3807. };
  3808. uiSleep 3;
  3809. };
  3810. for "_i" from 0 to 8888 do {deleteMarkerLocal ("adminvmark_L" + (str _i));};
  3811. };
  3812. if(isNil "markveh_L")then{markveh_L = 0;};
  3813. if(markveh_L == 0)then
  3814. {
  3815. markveh_L = 1;
  3816. hint "2D Map (locked) VEHICLE Markers Activated";
  3817. [] spawn adminvmark_L;
  3818.  
  3819. _sl = format["%1 (locked) VEHICLEMarkers Activated",name player];
  3820. PVAH_WriteLogReq = [player,toArray _sl];
  3821. publicVariableServer 'PVAH_WriteLogReq';
  3822. }
  3823. else
  3824. {
  3825. markveh_L = 0;
  3826. hint "2D Map (locked) VEHICLE Markers Disabled";
  3827.  
  3828. for "_i" from 0 to 8888 do {deleteMarkerLocal ("adminvmark_L" + (str _i));};
  3829.  
  3830. _sl = format["%1 (locked) VEHICLEMarkers Disabled",name player];
  3831. PVAH_WriteLogReq = [player,toArray _sl];
  3832. publicVariableServer 'PVAH_WriteLogReq';
  3833. };
  3834. };
  3835. adminAntiAggro = {
  3836. if(isNil "adminAntiAggro_zxeds")then{adminAntiAggro_zxeds = false;};
  3837. if(!adminAntiAggro_zxeds)then
  3838. {
  3839. adminAntiAggro_zxeds = true;
  3840.  
  3841. hint "No Zed Aggro - On";
  3842. cutText [format["No Zed Aggro - On"], "PLAIN DOWN"];
  3843. _sl = format["%1 No Zed Aggro - On",name player];
  3844. PVAH_WriteLogReq = [player,toArray _sl];
  3845. publicVariableServer 'PVAH_WriteLogReq';
  3846.  
  3847. player_zombieCheck = {};
  3848. player_zombieAttack = {};
  3849. }
  3850. else
  3851. {
  3852. adminAntiAggro_zxeds = false;
  3853.  
  3854. hint "No Zed Aggro - Disabled";
  3855. cutText [format["No Zed Aggro - Disabled"], "PLAIN DOWN"];
  3856. _sl = format["%1 No Zed Aggro - Disabled",name player];
  3857. PVAH_WriteLogReq = [player,toArray _sl];
  3858. publicVariableServer 'PVAH_WriteLogReq';
  3859.  
  3860. player_zombieCheck = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_zombieCheck.sqf';
  3861. player_zombieAttack = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_zombieAttack.sqf';
  3862. };
  3863. };
  3864. admin_vehicleboost = {
  3865. if(isNil("vehboost_infiSTAR"))then{vehboost_infiSTAR = 0;};
  3866. if(vehboost_infiSTAR == 0)then
  3867. {
  3868. vehboost_infiSTAR = 1;
  3869. hint "Vehboost 1 - left shift or E to go fast and space for brakes!";
  3870. cutText [format["Vehboost 1 - left shift or E to go fast and space for brakes!"], "PLAIN DOWN"];
  3871. _sl = format["%1 Vehboost On",name player];
  3872. PVAH_WriteLogReq = [player,toArray _sl];
  3873. publicVariableServer 'PVAH_WriteLogReq';
  3874.  
  3875. waitUntil {!isNull (finddisplay 46)};
  3876. booostkey_FNC_spd_0 =
  3877. {
  3878. _vehicle_player = vehicle player;
  3879. if(_vehicle_player == player)exitwith{};
  3880.  
  3881. if(isEngineOn _vehicle_player)then
  3882. {
  3883. switch (_this) do
  3884. {
  3885. case 18:
  3886. {
  3887. _vehicle_player SetVelocity [(velocity _vehicle_player select 0) * 1.05, (velocity _vehicle_player select 1) *1.05, (velocity _vehicle_player select 2) * 0.99];
  3888. };
  3889. case 42:
  3890. {
  3891. _vehicle_player setVelocity [(velocity _vehicle_player select 0) * 1.025, (velocity _vehicle_player select 1) * 1.025, (velocity _vehicle_player select 2) * 0.99];
  3892. };
  3893. case 57:
  3894. {
  3895. _vehicle_player SetVelocity [(velocity _vehicle_player select 0) * 0.95, (velocity _vehicle_player select 1) *0.95, (velocity _vehicle_player select 2) * 0.99];
  3896. };
  3897. };
  3898. };
  3899. };
  3900. booostkey_KI_0 = (findDisplay 46) displayAddEventHandler ["KeyDown","_this select 1 call booostkey_FNC_spd_0;false;"];
  3901. }
  3902. else
  3903. {
  3904. vehboost_infiSTAR = 0;
  3905. hint "Vehboost 0";
  3906. cutText [format["Vehboost 0"], "PLAIN DOWN"];
  3907. _sl = format["%1 Vehboost Disabled",name player];
  3908. PVAH_WriteLogReq = [player,toArray _sl];
  3909. publicVariableServer 'PVAH_WriteLogReq';
  3910.  
  3911. (findDisplay 46) displayRemoveEventHandler ["KeyDown", booostkey_KI_0];
  3912. _vehicle_player = nil;
  3913. };
  3914. };
  3915. adminZedshld =
  3916. {
  3917. if(isNil "zoombiieshieldd")then{zoombiieshieldd = true;}
  3918. else
  3919. {
  3920. zoombiieshieldd = !zoombiieshieldd;
  3921. if(zoombiieshieldd)then
  3922. {
  3923. cutText [format["ZedShield ON for 50m"],"PLAIN DOWN"];
  3924.  
  3925. _sl = format["%1 ZedShield Activated",name player];
  3926. PVAH_WriteLogReq = [player,toArray _sl];
  3927. publicVariableServer 'PVAH_WriteLogReq';
  3928. }
  3929. else
  3930. {
  3931. cutText ["ZedShield OFF","PLAIN DOWN"];
  3932.  
  3933. _sl = format["%1 ZedShield Disabled",name player];
  3934. PVAH_WriteLogReq = [player,toArray _sl];
  3935. publicVariableServer 'PVAH_WriteLogReq';
  3936. };
  3937. };
  3938. while{zoombiieshieldd}do
  3939. {
  3940. {
  3941. if(!isNull _x)then{
  3942. if !(isPlayer _x)then{
  3943. deleteVehicle _x;
  3944. };
  3945. };
  3946. } forEach (vehicle player nearEntities ["zZombie_Base",50]);
  3947. uiSleep 1;
  3948. };
  3949. };
  3950. adminCallZeds =
  3951. {
  3952. NumOfZed = _this select 0;
  3953. fnc_addZeds =
  3954. {
  3955. _position = _this;
  3956. for "_i" from 1 to NumOfZed do
  3957. {
  3958. _unitTypes = []+ getArray (configFile >> "CfgBuildingLoot" >> "Default" >> "zombieClass");
  3959. _agent = objNull;
  3960. _type = _unitTypes call BIS_fnc_selectRandom;
  3961. _radius = 40;
  3962. _method = "NONE";
  3963. _agent = createAgent [_type, _position, [], _radius, _method];
  3964. _agent setVariable["myDest",_position];
  3965. _agent setVariable["newDest",_position];
  3966. _rnd = random 1;
  3967. if(_rnd > 0.3)then
  3968. {
  3969. _lootType = getText (configFile >> "CfgVehicles" >> _type >> "zombieLoot");
  3970. _lootTypeCfg = getArray (configFile >> "CfgLoot" >> _lootType);
  3971. _array = [];
  3972. {
  3973. _array set [count _array, _x select 0];
  3974. } count _lootTypeCfg;
  3975. if(count _array > 0)then
  3976. {
  3977. _index = dayz_CLBase find _lootType;
  3978. _weights = dayz_CLChances select _index;
  3979. _loot = _array select (_weights select (floor(random (count _weights))));
  3980. if(!isNil "_array")then
  3981. {
  3982. _loot_count = getNumber(configFile >> "CfgMagazines" >> _loot >> "count");
  3983. if(_loot_count>1)then
  3984. {
  3985. _agent addMagazine [_loot, ceil(random _loot_count)];
  3986. }
  3987. else
  3988. {
  3989. _agent addMagazine _loot;
  3990. };
  3991. };
  3992. };
  3993. };
  3994. _id = [_position,_agent] execFSM "\z\addons\dayz_code\system\zombie_agent.fsm";
  3995. };
  3996. };
  3997. openMap [true, false];
  3998. onMapSingleClick '
  3999. [_pos select 0,_pos select 1,_pos select 2] spawn fnc_addZeds;
  4000. openMap [false, false];
  4001. onMapSingleClick "";
  4002. ';
  4003. };
  4004. adminammo_recoil = {
  4005. if(isNil ('admin_loop1'))then{admin_loop1 = 0;};
  4006. if(admin_loop1==0)then
  4007. {
  4008. admin_loop1=1;
  4009. cutText [format['Infinite AMMO and No Recoil ON'], 'PLAIN DOWN'];
  4010. hint 'Infinite AMMO and No Recoil ON';
  4011.  
  4012. _sl = format['%1 adminammo_recoil ON',name player];
  4013. PVAH_WriteLogReq = [player,toArray _sl];
  4014. publicVariableServer 'PVAH_WriteLogReq';
  4015. }
  4016. else
  4017. {
  4018. admin_loop1=0;
  4019. cutText [format['Infinite AMMO and No Recoil OFF'], 'PLAIN DOWN'];
  4020. hint 'Infinite AMMO and No Recoil OFF';
  4021.  
  4022. _sl = format['%1 adminammo_recoil OFF',name player];
  4023. PVAH_WriteLogReq = [player,toArray _sl];
  4024. publicVariableServer 'PVAH_WriteLogReq';
  4025. player setUnitRecoilCoefficient 1;
  4026. };
  4027. while{admin_loop1==1}do
  4028. {
  4029. (vehicle player) setVehicleAmmo 1;
  4030. player setUnitRecoilCoefficient 0;
  4031. (vehicle player) setUnitRecoilCoefficient 0;
  4032. uiSleep 0.01;
  4033. };
  4034. };
  4035. admin_FastFire = {
  4036. if(isNil ('admin_loop2'))then{admin_loop2 = 0;};
  4037. if(admin_loop2==0)then
  4038. {
  4039. admin_loop2=1;
  4040. cutText [format['FastFire ON'], 'PLAIN DOWN'];
  4041. hint 'FastFire ON';
  4042.  
  4043. _sl = format['%1 FastFire ON',name player];
  4044. PVAH_WriteLogReq = [player,toArray _sl];
  4045. publicVariableServer 'PVAH_WriteLogReq';
  4046. }
  4047. else
  4048. {
  4049. admin_loop2=0;
  4050. cutText [format['FastFire OFF'], 'PLAIN DOWN'];
  4051. hint 'FastFire OFF';
  4052.  
  4053. _sl = format['%1 FastFire OFF',name player];
  4054. PVAH_WriteLogReq = [player,toArray _sl];
  4055. publicVariableServer 'PVAH_WriteLogReq';
  4056. };
  4057. while{admin_loop2==1}do
  4058. {
  4059. (vehicle player) setWeaponReloadingTime [(vehicle player),currentWeapon (vehicle player),0];
  4060. player setWeaponReloadingTime [player,currentWeapon player,0];
  4061. uiSleep 0.01;
  4062. };
  4063. };
  4064. admin_low_terrain = {
  4065. if(isNil 'admin_terrain')then{admin_terrain = true;} else {admin_terrain = !admin_terrain};
  4066. if(admin_terrain)then{
  4067. setTerrainGrid 50;
  4068. hint 'Terrain Low';
  4069. cutText [format['Terrain Low'], 'PLAIN DOWN'];
  4070. _sl = format['%1 Terrain Low',name player];
  4071. PVAH_WriteLogReq = [player,toArray _sl];
  4072. publicVariableServer 'PVAH_WriteLogReq';
  4073. }
  4074. else
  4075. {
  4076. setTerrainGrid 25;
  4077. hint 'Terrain Normal';
  4078. cutText [format['Terrain Normal'], 'PLAIN DOWN'];
  4079. _sl = format['%1 Terrain Normal',name player];
  4080. PVAH_WriteLogReq = [player,toArray _sl];
  4081. publicVariableServer 'PVAH_WriteLogReq';
  4082. };
  4083. };
  4084. admingod =
  4085. {
  4086. if(isNil 'gmadmin')then{gmadmin = 0;};
  4087. if(gmadmin == 0)then
  4088. {
  4089. gmadmin = 1;
  4090. gmdadmin = 1;
  4091. hint 'God ON';
  4092. cutText ['God ON', 'PLAIN'];
  4093.  
  4094. [] spawn {
  4095. while{gmadmin == 1}do
  4096. {
  4097. r_player_inpain = false;
  4098. r_player_infected = false;
  4099. r_player_injured = false;
  4100. dayz_hunger = 0;
  4101. dayz_thirst = 0;
  4102. dayz_temperatur = 37;
  4103. fnc_usec_damageHandler = {};
  4104. player_death = {};
  4105. player allowDamage false;
  4106. player removeAllEventhandlers 'HandleDamage';
  4107. player addEventhandler ['HandleDamage', {false}];
  4108. uiSleep 0.5;
  4109. };
  4110. uiSleep 1;
  4111. fnc_usec_damageHandler = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\fn_damageHandler.sqf';
  4112. player_death = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_death.sqf";
  4113. player allowDamage true;
  4114. player removeAllEventHandlers 'HandleDamage';
  4115. player addeventhandler ['HandleDamage',{_this call fnc_usec_damageHandler;} ];
  4116. };
  4117.  
  4118. _sl = format['%1 G_o_d ON',name player];
  4119. PVAH_WriteLogReq = [player,toArray _sl];
  4120. publicVariableServer 'PVAH_WriteLogReq';
  4121. }
  4122. else
  4123. {
  4124. gmadmin = 0;
  4125. gmdadmin = 0;
  4126. hint 'God OFF';
  4127. cutText ['God OFF', 'PLAIN'];
  4128.  
  4129. fnc_usec_damageHandler = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\fn_damageHandler.sqf';
  4130. player_death = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_death.sqf";
  4131. player allowDamage true;
  4132. player removeAllEventHandlers 'HandleDamage';
  4133. player addeventhandler ['HandleDamage',{_this call fnc_usec_damageHandler;} ];
  4134.  
  4135. _sl = format['%1 G_o_d OFF',name player];
  4136. PVAH_WriteLogReq = [player,toArray _sl];
  4137. publicVariableServer 'PVAH_WriteLogReq';
  4138. };
  4139. };
  4140. adminNoBuildLimit =
  4141. {
  4142. _log = '';
  4143. if(isNil 'anbl')then{anbl = true;} else {anbl = !anbl};
  4144. if(anbl)then
  4145. {
  4146. if(isNil 'oDZE_BuildingLimit')then{oDZE_BuildingLimit = DZE_BuildingLimit;};
  4147. DZE_BuildingLimit = 9999999;
  4148.  
  4149. _log = 'No Build Limit - ON';
  4150. }
  4151. else
  4152. {
  4153. DZE_BuildingLimit = oDZE_BuildingLimit;
  4154.  
  4155. _log = 'No Build Limit - OFF';
  4156. };
  4157. hint _log;
  4158. cutText [_log, 'PLAIN'];
  4159. _sl = format['%1 - %2',name player,_log];
  4160. PVAH_WriteLogReq = [player,toArray _sl];
  4161. publicVariableServer 'PVAH_WriteLogReq';
  4162. };
  4163. adminob =
  4164. {
  4165. _log = '';
  4166. _fnc_NOB =
  4167. {
  4168. R3F_TIRED_FNCT_Voile_Noir = {};
  4169. R3F_TIRED_FNCT_DoBlackVanish = {};
  4170. };
  4171. _fnc_OB =
  4172. {
  4173. R3F_TIRED_FNCT_Voile_Noir =
  4174. {
  4175. _level = _this select 0;
  4176. if(_level < R3F_TIRED_SHORTNESS_THRESHOLD )then
  4177. {
  4178. playSound 'heartbeat_1';
  4179. addCamShake [2, 1, 25];
  4180. };
  4181. };
  4182. R3F_TIRED_FNCT_DoBlackVanish =
  4183. {
  4184. [player,0.1] call fnc_usec_damageUnconscious;
  4185. [player,'scream',3,false] call dayz_zombieSpeak;
  4186. cutText ['You are overburdened.', 'PLAIN DOWN'];
  4187. };
  4188. };
  4189. if(isNil 'anob')then{anob = true;} else {anob = !anob};
  4190. if(anob)then
  4191. {
  4192. _log = 'No OverBurdened - ON';
  4193. call _fnc_NOB;
  4194. }
  4195. else
  4196. {
  4197. _log = 'No OverBurdened - OFF';
  4198. call _fnc_OB;
  4199. };
  4200. hint _log;
  4201. cutText [_log, 'PLAIN'];
  4202. _sl = format['%1 - %2',name player,_log];
  4203. PVAH_WriteLogReq = [player,toArray _sl];
  4204. publicVariableServer 'PVAH_WriteLogReq';
  4205. while{anob}do
  4206. {
  4207. if(str R3F_TIRED_FNCT_Voile_Noir != '{}')then
  4208. {
  4209. call _fnc_NOB;
  4210. }
  4211. else
  4212. {
  4213. if(anob)then{uiSleep 3;} else {call _fnc_OB;};
  4214. };
  4215. };
  4216. call _fnc_OB;
  4217. };
  4218. admin1build =
  4219. {
  4220. _log = '';
  4221. if(isNil 'a1sb')then{a1sb = true;} else {a1sb = !a1sb};
  4222. if(a1sb)then
  4223. {
  4224. DZE_StaticConstructionCount = 1;
  4225. systemChat format['DZE_StaticConstructionCount changed to: %1',DZE_StaticConstructionCount];
  4226.  
  4227. _log = '1 Step Building - ON';
  4228. }
  4229. else
  4230. {
  4231. DZE_StaticConstructionCount = 0;
  4232. systemChat 'DZE_StaticConstructionCount changed to default';
  4233.  
  4234. _log = '1 Step Building - OFF';
  4235. };
  4236. hint _log;
  4237. cutText [_log, 'PLAIN'];
  4238. _sl = format['%1 - %2',name player,_log];
  4239. PVAH_WriteLogReq = [player,toArray _sl];
  4240. publicVariableServer 'PVAH_WriteLogReq';
  4241. };
  4242. admin_noplot =
  4243. {
  4244. _log = '';
  4245. if(isNil 'anppn')then{anppn = true;} else {anppn = !anppn};
  4246. if(anppn)then
  4247. {
  4248. DZ_ANPP = DZE_PlotPole;
  4249. DZE_PlotPole = [1,1];
  4250. DZE_requireplot = 0;
  4251. _log = 'No PlotPole - ON';
  4252. }
  4253. else
  4254. {
  4255. DZE_PlotPole = DZ_ANPP;
  4256. DZE_requireplot = 1;
  4257.  
  4258. _log = 'No PlotPole - OFF';
  4259. };
  4260. hint _log;
  4261. cutText [_log, 'PLAIN'];
  4262. _sl = format['%1 - %2',name player,_log];
  4263. PVAH_WriteLogReq = [player,toArray _sl];
  4264. publicVariableServer 'PVAH_WriteLogReq';
  4265. };
  4266. changeHumanity =
  4267. {
  4268. disableSerialization;
  4269. _plr = objNull;
  4270. {if(name _x == _this select 0)exitWith {_plr = _x;};} forEach playableUnits;
  4271. if(isNull _plr)exitWith {
  4272. systemchat 'Select a Player!';
  4273. };
  4274. if(isNull findDisplay 24)exitWith {
  4275. systemchat 'open the chat, type the Amount of Humanity you want to add (can be negative) and doubleClick again!';
  4276. };
  4277. _chat = (findDisplay 24) displayCtrl 101;
  4278. _txt = ctrlText _chat;
  4279. _num = 0;
  4280. if(_txt != '')then{
  4281. _num = parseNumber _txt;
  4282. if(typeName _num != 'SCALAR')then{systemchat 'INSERT A NUMBER!';};
  4283. (findDisplay 24) closeDisplay 0;
  4284. };
  4285.  
  4286. _humanity = _plr getVariable['humanity',0];
  4287. _plr setVariable['humanity',_humanity+_num,true];
  4288. hint format['Gave %1 %2 Humanity!',_this select 0,_num];
  4289.  
  4290. _sl = format['%1 %2 Humanity to %3',name player,_num,_this select 0];
  4291. PVAH_WriteLogReq = [player,toArray _sl];
  4292. publicVariableServer 'PVAH_WriteLogReq';
  4293. };
  4294.  
  4295. admincoinPlusa4 =
  4296. {
  4297. {
  4298. if (name _x == _this select 0) then
  4299. {
  4300. _cashMoney = _x getVariable['cashMoney',0];
  4301. _x setVariable['cashMoney',_cashMoney+1,true];
  4302. hint format['Gave %1 +1 Coins!',_this select 0];
  4303.  
  4304. _sl = format['%1 plus 1 Coins to %2',name player,_this select 0];
  4305. PVAH_WriteLogReq = [player,toArray _sl];
  4306. publicVariableServer 'PVAH_WriteLogReq';
  4307. };
  4308. } forEach playableUnits;
  4309. };
  4310. admincoinMinusa4 =
  4311. {
  4312. {
  4313. if (name _x == _this select 0) then
  4314. {
  4315. _cashMoney = _x getVariable['cashMoney',0];
  4316. _x setVariable['cashMoney',_cashMoney-1,true];
  4317. hint format['Gave %1 -1 Coins!',_this select 0];
  4318.  
  4319. _sl = format['%1 minus 1 Coins to %2',name player,_this select 0];
  4320. PVAH_WriteLogReq = [player,toArray _sl];
  4321. publicVariableServer 'PVAH_WriteLogReq';
  4322. };
  4323. } forEach playableUnits;
  4324. };
  4325. admincoinPlusa3 =
  4326. {
  4327. {
  4328. if (name _x == _this select 0) then
  4329. {
  4330. _cashMoney = _x getVariable['cashMoney',0];
  4331. _x setVariable['cashMoney',_cashMoney+5,true];
  4332. hint format['Gave %1 +5 Coins!',_this select 0];
  4333.  
  4334. _sl = format['%1 plus 5 Coins to %2',name player,_this select 0];
  4335. PVAH_WriteLogReq = [player,toArray _sl];
  4336. publicVariableServer 'PVAH_WriteLogReq';
  4337. };
  4338. } forEach playableUnits;
  4339. };
  4340. admincoinMinusa3 =
  4341. {
  4342. {
  4343. if (name _x == _this select 0) then
  4344. {
  4345. _cashMoney = _x getVariable['cashMoney',0];
  4346. _x setVariable['cashMoney',_cashMoney-5,true];
  4347. hint format['Gave %1 -5 Coins!',_this select 0];
  4348.  
  4349. _sl = format['%1 minus 5 Coins to %2',name player,_this select 0];
  4350. PVAH_WriteLogReq = [player,toArray _sl];
  4351. publicVariableServer 'PVAH_WriteLogReq';
  4352. };
  4353. } forEach playableUnits;
  4354. };
  4355. admincoinPlusa2 =
  4356. {
  4357. {
  4358. if (name _x == _this select 0) then
  4359. {
  4360. _cashMoney = _x getVariable['cashMoney',0];
  4361. _x setVariable['cashMoney',_cashMoney+10,true];
  4362. hint format['Gave %1 +10 Coins!',_this select 0];
  4363.  
  4364. _sl = format['%1 plus 10 Coins to %2',name player,_this select 0];
  4365. PVAH_WriteLogReq = [player,toArray _sl];
  4366. publicVariableServer 'PVAH_WriteLogReq';
  4367. };
  4368. } forEach playableUnits;
  4369. };
  4370. admincoinMinusa2 =
  4371. {
  4372. {
  4373. if (name _x == _this select 0) then
  4374. {
  4375. _cashMoney = _x getVariable['cashMoney',0];
  4376. _x setVariable['cashMoney',_cashMoney-10,true];
  4377. hint format['Gave %1 -10 Coins!',_this select 0];
  4378.  
  4379. _sl = format['%1 minus 10 Coins to %2',name player,_this select 0];
  4380. PVAH_WriteLogReq = [player,toArray _sl];
  4381. publicVariableServer 'PVAH_WriteLogReq';
  4382. };
  4383. } forEach playableUnits;
  4384. };
  4385. admincoinPlusa1 =
  4386. {
  4387. {
  4388. if (name _x == _this select 0) then
  4389. {
  4390. _cashMoney = _x getVariable['cashMoney',0];
  4391. _x setVariable['cashMoney',_cashMoney+50,true];
  4392. hint format['Gave %1 +50 Coins!',_this select 0];
  4393.  
  4394. _sl = format['%1 plus 50 Coins to %2',name player,_this select 0];
  4395. PVAH_WriteLogReq = [player,toArray _sl];
  4396. publicVariableServer 'PVAH_WriteLogReq';
  4397. };
  4398. } forEach playableUnits;
  4399. };
  4400. admincoinMinusa1 =
  4401. {
  4402. {
  4403. if (name _x == _this select 0) then
  4404. {
  4405. _cashMoney = _x getVariable['cashMoney',0];
  4406. _x setVariable['cashMoney',_cashMoney-50,true];
  4407. hint format['Gave %1 -50 Coins!',_this select 0];
  4408.  
  4409. _sl = format['%1 minus 50 Coins to %2',name player,_this select 0];
  4410. PVAH_WriteLogReq = [player,toArray _sl];
  4411. publicVariableServer 'PVAH_WriteLogReq';
  4412. };
  4413. } forEach playableUnits;
  4414. };
  4415. admincoinPlus =
  4416. {
  4417. {
  4418. if (name _x == _this select 0) then
  4419. {
  4420. _cashMoney = _x getVariable['cashMoney',0];
  4421. _x setVariable['cashMoney',_cashMoney+100,true];
  4422. hint format['Gave %1 +100 Coins!',_this select 0];
  4423.  
  4424. _sl = format['%1 plus 100 Coins to %2',name player,_this select 0];
  4425. PVAH_WriteLogReq = [player,toArray _sl];
  4426. publicVariableServer 'PVAH_WriteLogReq';
  4427. };
  4428. } forEach playableUnits;
  4429. };
  4430. admincoinMinus =
  4431. {
  4432. {
  4433. if (name _x == _this select 0) then
  4434. {
  4435. _cashMoney = _x getVariable['cashMoney',0];
  4436. _x setVariable['cashMoney',_cashMoney-100,true];
  4437. hint format['Gave %1 -100 Coins!',_this select 0];
  4438.  
  4439. _sl = format['%1 minus 100 Coins to %2',name player,_this select 0];
  4440. PVAH_WriteLogReq = [player,toArray _sl];
  4441. publicVariableServer 'PVAH_WriteLogReq';
  4442. };
  4443. } forEach playableUnits;
  4444. };
  4445. admincoinPlus1 =
  4446. {
  4447. {
  4448. if (name _x == _this select 0) then
  4449. {
  4450. _cashMoney = _x getVariable['cashMoney',0];
  4451. _x setVariable['cashMoney',_cashMoney+500,true];
  4452. hint format['Gave %1 +500 Coins!',_this select 0];
  4453.  
  4454. _sl = format['%1 plus 500 Coins to %2',name player,_this select 0];
  4455. PVAH_WriteLogReq = [player,toArray _sl];
  4456. publicVariableServer 'PVAH_WriteLogReq';
  4457. };
  4458. } forEach playableUnits;
  4459. };
  4460. admincoinMinus1 =
  4461. {
  4462. {
  4463. if (name _x == _this select 0) then
  4464. {
  4465. _cashMoney = _x getVariable['cashMoney',0];
  4466. _x setVariable['cashMoney',_cashMoney-500,true];
  4467. hint format['Gave %1 -500 cashMoney!',_this select 0];
  4468.  
  4469. _sl = format['%1 minus 500 Coins to %2',name player,_this select 0];
  4470. PVAH_WriteLogReq = [player,toArray _sl];
  4471. publicVariableServer 'PVAH_WriteLogReq';
  4472. };
  4473. } forEach playableUnits;
  4474. };
  4475. admincoinPlus2 =
  4476. {
  4477. {
  4478. if (name _x == _this select 0) then
  4479. {
  4480. _cashMoney = _x getVariable['cashMoney',0];
  4481. _x setVariable['cashMoney',_cashMoney+2500,true];
  4482. hint format['Gave %1 +2500 Coins!',_this select 0];
  4483.  
  4484. _sl = format['%1 plus 2500 Coins to %2',name player,_this select 0];
  4485. PVAH_WriteLogReq = [player,toArray _sl];
  4486. publicVariableServer 'PVAH_WriteLogReq';
  4487. };
  4488. } forEach playableUnits;
  4489. };
  4490. admincoinMinus2 =
  4491. {
  4492. {
  4493. if (name _x == _this select 0) then
  4494. {
  4495. _cashMoney = _x getVariable['cashMoney',0];
  4496. _x setVariable['cashMoney',_cashMoney-2500,true];
  4497. hint format['Gave %1 -2500 Coins!',_this select 0];
  4498.  
  4499. _sl = format['%1 minus 2500 Coins to %2',name player,_this select 0];
  4500. PVAH_WriteLogReq = [player,toArray _sl];
  4501. publicVariableServer 'PVAH_WriteLogReq';
  4502. };
  4503. } forEach playableUnits;
  4504. };
  4505. admincoinPlus3 =
  4506. {
  4507. {
  4508. if (name _x == _this select 0) then
  4509. {
  4510. _cashMoney = _x getVariable['cashMoney',0];
  4511. _x setVariable['cashMoney',_cashMoney+5000,true];
  4512. hint format['Gave %1 +5000 Coins!',_this select 0];
  4513.  
  4514. _sl = format['%1 plus 5000 Coins to %2',name player,_this select 0];
  4515. PVAH_WriteLogReq = [player,toArray _sl];
  4516. publicVariableServer 'PVAH_WriteLogReq';
  4517. };
  4518. } forEach playableUnits;
  4519. };
  4520. admincoinMinus3 =
  4521. {
  4522. {
  4523. if (name _x == _this select 0) then
  4524. {
  4525. _cashMoney = _x getVariable['cashMoney',0];
  4526. _x setVariable['cashMoney',_cashMoney-5000,true];
  4527. hint format['Gave %1 -5000 Coins!',_this select 0];
  4528.  
  4529. _sl = format['%1 minus 5000 Coins to %2',name player,_this select 0];
  4530. PVAH_WriteLogReq = [player,toArray _sl];
  4531. publicVariableServer 'PVAH_WriteLogReq';
  4532. };
  4533. } forEach playableUnits;
  4534. };
  4535. admincoinPlus4 =
  4536. {
  4537. {
  4538. if (name _x == _this select 0) then
  4539. {
  4540. _cashMoney = _x getVariable['cashMoney',0];
  4541. _x setVariable['cashMoney',_cashMoney+10000,true];
  4542. hint format['Gave %1 +10000 Coins!',_this select 0];
  4543.  
  4544. _sl = format['%1 plus 10000 Coins to %2',name player,_this select 0];
  4545. PVAH_WriteLogReq = [player,toArray _sl];
  4546. publicVariableServer 'PVAH_WriteLogReq';
  4547. };
  4548. } forEach playableUnits;
  4549. };
  4550. admincoinMinus4 =
  4551. {
  4552. {
  4553. if (name _x == _this select 0) then
  4554. {
  4555. _cashMoney = _x getVariable['cashMoney',0];
  4556. _x setVariable['cashMoney',_cashMoney-10000,true];
  4557. hint format['Gave %1 -10000 Coins!',_this select 0];
  4558.  
  4559. _sl = format['%1 minus 10000 Coins to %2',name player,_this select 0];
  4560. PVAH_WriteLogReq = [player,toArray _sl];
  4561. publicVariableServer 'PVAH_WriteLogReq';
  4562. };
  4563. } forEach playableUnits;
  4564. };
  4565. admincoinPlus5 =
  4566. {
  4567. {
  4568. if (name _x == _this select 0) then
  4569. {
  4570. _cashMoney = _x getVariable['cashMoney',0];
  4571. _x setVariable['cashMoney',_cashMoney+50000,true];
  4572. hint format['Gave %1 +50000 Coins!',_this select 0];
  4573.  
  4574. _sl = format['%1 plus 50000 Coins to %2',name player,_this select 0];
  4575. PVAH_WriteLogReq = [player,toArray _sl];
  4576. publicVariableServer 'PVAH_WriteLogReq';
  4577. };
  4578. } forEach playableUnits;
  4579. };
  4580. admincoinMinus5 =
  4581. {
  4582. {
  4583. if (name _x == _this select 0) then
  4584. {
  4585. _cashMoney = _x getVariable['cashMoney',0];
  4586. _x setVariable['cashMoney',_cashMoney-50000,true];
  4587. hint format['Gave %1 -50000 Coins!',_this select 0];
  4588.  
  4589. _sl = format['%1 minus 50000 Coins to %2',name player,_this select 0];
  4590. PVAH_WriteLogReq = [player,toArray _sl];
  4591. publicVariableServer 'PVAH_WriteLogReq';
  4592. };
  4593. } forEach playableUnits;
  4594. };
  4595. admincoinPlus6 =
  4596. {
  4597. {
  4598. if (name _x == _this select 0) then
  4599. {
  4600. _cashMoney = _x getVariable['cashMoney',0];
  4601. _x setVariable['cashMoney',_cashMoney+100000,true];
  4602. hint format['Gave %1 +100000 Coins!',_this select 0];
  4603.  
  4604. _sl = format['%1 plus 100000 Coins to %2',name player,_this select 0];
  4605. PVAH_WriteLogReq = [player,toArray _sl];
  4606. publicVariableServer 'PVAH_WriteLogReq';
  4607. };
  4608. } forEach playableUnits;
  4609. };
  4610. admincoinMinus6 =
  4611. {
  4612. {
  4613. if (name _x == _this select 0) then
  4614. {
  4615. _cashMoney = _x getVariable['cashMoney',0];
  4616. _x setVariable['cashMoney',_cashMoney-100000,true];
  4617. hint format['Gave %1 -100000 Coins!',_this select 0];
  4618.  
  4619. _sl = format['%1 minus 100000 Coins to %2',name player,_this select 0];
  4620. PVAH_WriteLogReq = [player,toArray _sl];
  4621. publicVariableServer 'PVAH_WriteLogReq';
  4622. };
  4623. } forEach playableUnits;
  4624. };
  4625. admincoinPlus7 =
  4626. {
  4627. {
  4628. if (name _x == _this select 0) then
  4629. {
  4630. _cashMoney = _x getVariable['cashMoney',0];
  4631. _x setVariable['cashMoney',_cashMoney+500000,true];
  4632. hint format['Gave %1 +500000 Coins!',_this select 0];
  4633.  
  4634. _sl = format['%1 plus 500000 Coins to %2',name player,_this select 0];
  4635. PVAH_WriteLogReq = [player,toArray _sl];
  4636. publicVariableServer 'PVAH_WriteLogReq';
  4637. };
  4638. } forEach playableUnits;
  4639. };
  4640. admincoinMinus7 =
  4641. {
  4642. {
  4643. if (name _x == _this select 0) then
  4644. {
  4645. _cashMoney = _x getVariable['cashMoney',0];
  4646. _x setVariable['cashMoney',_cashMoney-500000,true];
  4647. hint format['Gave %1 -500000 Coins!',_this select 0];
  4648.  
  4649. _sl = format['%1 minus 500000 Coins to %2',name player,_this select 0];
  4650. PVAH_WriteLogReq = [player,toArray _sl];
  4651. publicVariableServer 'PVAH_WriteLogReq';
  4652. };
  4653. } forEach playableUnits;
  4654. };
  4655. admincoinPlusRich =
  4656. {
  4657. {
  4658. if (name _x == _this select 0) then
  4659. {
  4660. _cashMoney = _x getVariable['cashMoney',0];
  4661. _x setVariable['cashMoney',_cashMoney+1500000,true];
  4662. hint format['Gave %1 +1500000 Coins!',_this select 0];
  4663.  
  4664. _sl = format['%1 plus 1500000 cashMoney to %2',name player,_this select 0];
  4665. PVAH_WriteLogReq = [player,toArray _sl];
  4666. publicVariableServer 'PVAH_WriteLogReq';
  4667. };
  4668. } forEach playableUnits;
  4669. };
  4670. admincoinMinusRich =
  4671. {
  4672. {
  4673. if (name _x == _this select 0) then
  4674. {
  4675. _cashMoney = _x getVariable['cashMoney',0];
  4676. _x setVariable['cashMoney',_cashMoney-1500000,true];
  4677. hint format['Gave %1 -1500000 cashMoney!',_this select 0];
  4678.  
  4679. _sl = format['%1 minus 1500000 cashMoney to %2',name player,_this select 0];
  4680. PVAH_WriteLogReq = [player,toArray _sl];
  4681. publicVariableServer 'PVAH_WriteLogReq';
  4682. };
  4683. } forEach playableUnits;
  4684. };
  4685.  
  4686. adminHumanityPlus =
  4687. {
  4688. {
  4689. if(name _x == _this select 0)then
  4690. {
  4691. _humanity = _x getVariable['humanity',0];
  4692. _x setVariable['humanity',_humanity+2500,true];
  4693. hint format['Gave %1 +2500 Humanity!',_this select 0];
  4694.  
  4695. _sl = format['%1 plus 2500 Humanity to %2',name player,_this select 0];
  4696. PVAH_WriteLogReq = [player,toArray _sl];
  4697. publicVariableServer 'PVAH_WriteLogReq';
  4698. };
  4699. } forEach playableUnits;
  4700. };
  4701. adminHumanityMinus =
  4702. {
  4703. {
  4704. if(name _x == _this select 0)then
  4705. {
  4706. _humanity = _x getVariable['humanity',0];
  4707. _x setVariable['humanity',_humanity-2500,true];
  4708. hint format['Gave %1 -2500 Humanity!',_this select 0];
  4709.  
  4710. _sl = format['%1 minus 2500 Humanity to %2',name player,_this select 0];
  4711. PVAH_WriteLogReq = [player,toArray _sl];
  4712. publicVariableServer 'PVAH_WriteLogReq';
  4713. };
  4714. } forEach playableUnits;
  4715. };
  4716. adminGiveCoins =
  4717. {
  4718. {
  4719. if (name _x == _this select 0) then
  4720. {
  4721. _cashMoney = _x getVariable["cashMoney",0];
  4722. _x setVariable["cashMoney",_cashMoney+10000,true];
  4723. hint format ["Gave %1 +10000 Coins!",_this select 0];
  4724.  
  4725. _sl = format["%1 plus 10000 Coins to %2",name player,_this select 0];
  4726. PVAH_WriteLogReq = [player,_sl];
  4727. publicVariableServer "PVAH_WriteLogReq";
  4728. };
  4729. } forEach playableUnits;
  4730. };
  4731.  
  4732. adminGiveCoinsToBank =
  4733. {
  4734. {
  4735. if (name _x == _this select 0) then
  4736. {
  4737. _bankMoney = _x getVariable["bankMoney",0];
  4738. _x setVariable["bankMoney",_bankMoney+10000,true];
  4739. hint format ["Gave %1 +10000 Coins!",_this select 0];
  4740.  
  4741. _sl = format["%1 plus 10000 Coins to %2",name player,_this select 0];
  4742. PVAH_WriteLogReq = [player,_sl];
  4743. publicVariableServer "PVAH_WriteLogReq";
  4744. };
  4745. } forEach playableUnits;
  4746. };
  4747. adminTakeCoins =
  4748. {
  4749. {
  4750. if (name _x == _this select 0) then
  4751. {
  4752. _cashMoney = _x getVariable["cashMoney",0];
  4753. _x setVariable["cashMoney",_cashMoney-10000,true];
  4754. hint format ["Removed %1 +10000 Coins!",_this select 0];
  4755.  
  4756. _sl = format["%1 minus 10000 Coins from %2",name player,_this select 0];
  4757. PVAH_WriteLogReq = [player,_sl];
  4758. publicVariableServer "PVAH_WriteLogReq";
  4759. };
  4760. } forEach playableUnits;
  4761. };
  4762.  
  4763. adminTakeCoinsFromBank =
  4764. {
  4765. {
  4766. if (name _x == _this select 0) then
  4767. {
  4768. _bankMoney = _x getVariable["bankMoney",0];
  4769. _x setVariable["bankMoney",_bankMoney-10000,true];
  4770. hint format ["Removed %1 -10000 Coins!",_this select 0];
  4771.  
  4772. _sl = format["%1 minus 10000 Coins from %2",name player,_this select 0];
  4773. PVAH_WriteLogReq = [player,_sl];
  4774. publicVariableServer "PVAH_WriteLogReq";
  4775. };
  4776. } forEach playableUnits;
  4777. };
  4778.  
  4779.  
  4780. adminCloneTarget =
  4781. {
  4782. _name = _this select 0;
  4783.  
  4784. if (_name == (name player)) exitWith
  4785. {
  4786. hint 'You cannot clone yourself!';
  4787. cutText ['You cannot clone yourself!', 'PLAIN'];
  4788. };
  4789.  
  4790. {
  4791. if((!isNull _x) && {getPlayerUID _x != ''} && {name _x == _name})then
  4792. {
  4793. _weapons = weapons _x;
  4794. _magazines = magazines _x;
  4795. removeAllWeapons player;
  4796. removeAllItems player;
  4797. {player addWeapon _x;} forEach _weapons;
  4798. {player addMagazine _x;} forEach _magazines;
  4799.  
  4800. _xbag = unitBackpack _x;
  4801. removebackpack player;
  4802. if(!isNull _xbag)then
  4803. {
  4804. player addBackPack (typeOf _xbag);
  4805. _BW = getWeaponCargo _xbag;
  4806. _BM = getMagazineCargo _xbag;
  4807. pbag = unitBackpack player;
  4808. {pbag addWeaponCargoGlobal [_x,(_BW select 1)select _forEachIndex];} forEach (_BW select 0);
  4809. {pbag addMagazineCargoGlobal [_x,(_BM select 1)select _forEachIndex];} forEach (_BM select 0);
  4810. };
  4811.  
  4812. [dayz_playerUID,dayz_characterID,typeOf _x] spawn player_humanityMorph;
  4813.  
  4814. hint format['Cloned %1',_name];
  4815. _sl = format['%1 Cloned %2',name player,_name];
  4816. PVAH_WriteLogReq = [player,toArray _sl];
  4817. publicVariableServer 'PVAH_WriteLogReq';
  4818. };
  4819. } forEach playableUnits;
  4820. };
  4821. adminfixfps =
  4822. {
  4823. fnc_fix_now =
  4824. {
  4825. systemChat format['infiSTAR.de CLEANUP: cleaning ReammoBoxes - start time: %1 - fps: %2',time,diag_fps];
  4826. _ammobox = ['USLaunchersBox','RULaunchersBox','USSpecialWeapons_EP1','USVehicleBox'];
  4827. _lootpiles = allMissionObjects 'ReammoBox';
  4828. _deleted = 0;
  4829. {
  4830. if(!isNull _x)then
  4831. {
  4832. _obj = _x;
  4833. _keep = (_obj getvariable['permaLoot',false]) || (typeOf _obj in _ammobox);
  4834. if(!_keep)then
  4835. {
  4836. _nearby = {isPlayer _x} count (_obj nearEntities 100);
  4837. if(_nearby==0)then
  4838. {
  4839. _deleted = _deleted + 1;deleteVehicle _obj;
  4840. };
  4841. };
  4842. };
  4843. } forEach _lootpiles;
  4844. systemChat format['infiSTAR.de CLEANUP: cleaning ReammoBoxes - end time: %1 - fps: %2 - deleted: %3',time,diag_fps,_deleted];
  4845.  
  4846. systemChat format['infiSTAR.de CLEANUP: cleaning Weaponholder - start time: %1 - fps: %2',time,diag_fps];
  4847. _allstartlk = ((allMissionObjects 'WeaponHolder')+(allMissionObjects 'Sound_Flies')+(allDead)+([0,0,0] nearEntities ['CAAnimalBase', 10000000]));
  4848. _deleted = 0;
  4849. {
  4850. if(!isNull _x)then
  4851. {
  4852. _obj = _x;
  4853. if(_obj in vehicles)then{_deleted = _deleted + 1;deletevehicle _obj;};
  4854. if(!isNull _obj)then
  4855. {
  4856. _nearbylk1 = {isPlayer _x} count (_obj nearEntities 250);
  4857. _keeplk = _obj getvariable['permaLoot',false];
  4858. if((_nearbylk1 == 0) && (!_keeplk) && !(_obj in alldead))then
  4859. {
  4860. _deleted = _deleted + 1;deleteVehicle _obj;
  4861. };
  4862. if(!isNull _obj)then
  4863. {
  4864. _nearbylk2 = {isPlayer _x} count (_obj nearEntities 25);
  4865. if((_nearbylk2 == 0) && (_obj in alldead) && (_obj isKindOf 'zZombie_Base'))then
  4866. {
  4867. _deleted = _deleted + 1;deleteVehicle _obj;
  4868. };
  4869. if(!isNull _obj)then
  4870. {
  4871. if((_nearbylk2 == 0) && (_obj isKindOf 'CAAnimalBase'))then{_deleted = _deleted + 1;deleteVehicle _obj;};
  4872. };
  4873. };
  4874. };
  4875. };
  4876. } foreach _allstartlk;
  4877. systemChat format['infiSTAR.de CLEANUP: cleaning Weaponholder - end time: %1 - fps: %2 - deleted: %3',time,diag_fps,_deleted];
  4878.  
  4879. systemChat format['infiSTAR.de CLEANUP: cleaning Bikes - start time: %1 - fps: %2',time,diag_fps];
  4880. _bikes = entities 'MMT_Civ';
  4881. _deleted = 0;
  4882. {
  4883. _obj = _x;
  4884. if(!isNull _obj)then
  4885. {
  4886. _count = {isPlayer _x} count (_obj nearEntities 100);
  4887. if(_count == 0)then
  4888. {
  4889. _deleted = _deleted + 1;deleteVehicle _obj;
  4890. };
  4891. };
  4892. } forEach _bikes;
  4893. systemChat format['infiSTAR.de CLEANUP: cleaning Bikes - end time: %1 - fps: %2 - deleted: %3',time,diag_fps,_deleted];
  4894.  
  4895. systemChat format['infiSTAR.de CLEANUP: cleaning Graves - start time: %1 - fps: %2',time,diag_fps];
  4896. _graves = allMissionObjects 'GraveDZE';
  4897. _deleted = 0;
  4898. {
  4899. _obj = _x;
  4900. if(!isNull _obj)then
  4901. {
  4902. _count = {isPlayer _x} count (_obj nearEntities 100);
  4903. if(_count == 0)then
  4904. {
  4905. _deleted = _deleted + 1;deleteVehicle _obj;
  4906. };
  4907. };
  4908. } forEach _graves;
  4909. systemChat format['infiSTAR.de CLEANUP: cleaning Graves - end time: %1 - fps: %2 - deleted: %3',time,diag_fps,_deleted];
  4910.  
  4911. systemChat format['infiSTAR.de CLEANUP: cleaning Zombies - start time: %1 - fps: %2',time,diag_fps];
  4912. _zeds = entities 'zZombie_Base';
  4913. _deleted = 0;
  4914. {
  4915. _obj = _x;
  4916. if(!isNull _obj)then
  4917. {
  4918. _count = {isPlayer _x} count (_obj nearEntities 250);
  4919. if(_count == 0)then
  4920. {
  4921. _deleted = _deleted + 1;deleteVehicle _obj;
  4922. };
  4923. };
  4924. } forEach _zeds;
  4925. systemChat format['infiSTAR.de CLEANUP: cleaning Zombies - end time: %1 - fps: %2 - deleted: %3',time,diag_fps,_deleted];
  4926.  
  4927. systemChat format['infiSTAR.de CLEANUP: cleaning Seagulls - start time: %1 - fps: %2',time,diag_fps];
  4928. _deleted = 0;
  4929. {
  4930. if(!isNull _x)then
  4931. {
  4932. _x enableSimulation false;
  4933. deleteGroup (group _x);
  4934. _deleted = _deleted + 1;deleteVehicle _x;
  4935. };
  4936. } forEach entities 'Seagull';
  4937. systemChat format['infiSTAR.de CLEANUP: cleaning Seagulls - end time: %1 - fps: %2 - deleted: %3',time,diag_fps,_deleted];
  4938. };
  4939. [] spawn fnc_fix_now;
  4940.  
  4941. _log = 'Fixing FPS';
  4942. hint _log;
  4943. cutText [_log,'PLAIN'];
  4944. _sl = format['%1 - %2',name player,_log];
  4945. PVAH_WriteLogReq = [player,toArray _sl];
  4946. publicVariableServer 'PVAH_WriteLogReq';
  4947. };
  4948. adminCarGod =
  4949. {
  4950. if(isNil "adminCarGodToggle")then{adminCarGodToggle = 0;};
  4951. if(adminCarGodToggle == 0)then
  4952. {
  4953. adminCarGodToggle = 1;
  4954. hint "CarGod - ON (fast loop that sets damage to 0)";
  4955. while{adminCarGodToggle==1}do
  4956. {
  4957. _veh = vehicle player;
  4958. if(_veh != player)then
  4959. {
  4960. _veh setDamage 0;
  4961. _veh setFuel 1;
  4962. };
  4963. uiSleep 0.1;
  4964. };
  4965. }
  4966. else
  4967. {
  4968. adminCarGodToggle = 0;
  4969. hint "CarGod - OFF";
  4970. };
  4971.  
  4972. _sl = format["%1 adminCarGod %2",name player,adminCarGodToggle];
  4973. PVAH_WriteLogReq = [player,toArray _sl];
  4974. publicVariableServer 'PVAH_WriteLogReq';
  4975. };
  4976. admininvis =
  4977. {
  4978. if(isNil 'inv1')then{inv1 = 0;};
  4979. if(inv1 == 0)then
  4980. {
  4981. PVAH_AdminReq = [3,player];
  4982. publicVariableServer "PVAH_AdminReq";
  4983.  
  4984. inv1 = 1;
  4985. hint "Invisibility Activated";
  4986.  
  4987. _sl = format["%1 Invisibility Activated",name player];
  4988. PVAH_WriteLogReq = [player,toArray _sl];
  4989. publicVariableServer 'PVAH_WriteLogReq';
  4990. }
  4991. else
  4992. {
  4993. PVAH_AdminReq = [3,player];
  4994. publicVariableServer "PVAH_AdminReq";
  4995.  
  4996. inv1 = 0;
  4997. hint "Invisibility Disabled";
  4998.  
  4999. _sl = format["%1 Invisibility Disabled",name player];
  5000. PVAH_WriteLogReq = [player,toArray _sl];
  5001. publicVariableServer 'PVAH_WriteLogReq';
  5002. };
  5003. };
  5004. admin_debug =
  5005. {
  5006. debugMonitorX = false;
  5007. if(isNil "admin_debug_run")then{admin_debug_run = true;} else {admin_debug_run = !admin_debug_run;};
  5008. while{admin_debug_run}do
  5009. {
  5010. _pic = (getText (configFile >> 'CfgVehicles' >> (typeOf vehicle player) >> 'picture'));
  5011. if(player == vehicle player)then{_pic = (getText (configFile >> 'CfgWeapons' >> (currentWeapon player) >> 'picture'));
  5012. }else{_pic = (getText (configFile >> 'CfgVehicles' >> (typeOf vehicle player) >> 'picture'));};
  5013.  
  5014. _txt = '';
  5015. _txt = (getText (configFile >> 'CfgVehicles' >> (typeOf vehicle player) >> 'displayName'));
  5016. private['_stime','_hours','_minutes','_minutes2'];
  5017. _stime = 0;
  5018. if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;};
  5019. _hours = (_stime/60/60);
  5020. _hours = toArray (str _hours);
  5021. _hours resize 1;
  5022. _hours = toString _hours;
  5023. _hours = compile _hours;
  5024. _hours = call _hours;
  5025. _minutes = floor(_stime/60);
  5026. _minutes2 = ((_minutes - (_hours*60)) min 60) max 0;if(_minutes2 < 10)then{_minutes2 = format['0%1',_minutes2];};
  5027. _pos = getPosATL player;
  5028.  
  5029. _humanity = player getVariable['humanity',0];
  5030. if(_humanity > 999999)then
  5031. {
  5032. _humanity = [_humanity] call fnc_format_humanity;
  5033. _humanity = toArray _humanity;
  5034. _humanity = _humanity - [44];
  5035. _humanity = toString _humanity;
  5036. };
  5037.  
  5038. hintSilent parseText format["
  5039. <t size='1' font='Bitstream' align='Center' >[%1]</t><br/>
  5040. <img size='4.75' image='%4'/><br/>
  5041. <t size='1' font='Bitstream' align='left' color='#CC0000'>Blood: </t><t size='1' font='Bitstream' align='right'>%2</t><br/>
  5042. <t size='1' font='Bitstream' align='left' color='#0066CC'>Humanity: </t><t size='1' font='Bitstream' align='right'>%3</t><br/>
  5043. <br/>
  5044. <t size='1' font='Bitstream' align='left' color='#FFBF00'>Zombie Kills: </t><t size='1' font='Bitstream' align='right'>%9</t><br/>
  5045. <t size='1' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='1' font='Bitstream' align='right'>%10</t><br/>
  5046. <t size='1' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='1' font='Bitstream' align='right'>%11</t><br/>
  5047. <br/>
  5048. <t size='1' font='Bitstream' align='left' color='#FFBF00'>UPTIME: </t><t size='1' font='Bitstream' align='right'>%5h %6min</t><br/>
  5049. <t size='1' font='Bitstream' align='left' color='#FFBF00'>FPS: </t><t size='1' font='Bitstream' align='right'>%8</t><br/>
  5050. <t size='1' font='Bitstream' align='Center' color='#CC0000'>infiSTAR.de AdminDebug</t><br/>
  5051. <t size='1'font='Bitstream'align='left' color='#0066CC'>Vehicles:</t><t size='1'font='Bitstream'align='right'>%15(%16)</t><br/>
  5052. <t size='1'font='Bitstream'align='left' color='#0066CC'>Player in 500m:</t><t size='1'font='Bitstream'align='right'>%13</t><br/>
  5053. <t size='1'font='Bitstream'align='left' color='#0066CC'>Viewdistance:</t><t size='1'font='Bitstream'align='right'>%14</t>
  5054. <br/>
  5055. <t size='1'font='Bitstream'align='left' color='#0066CC'>Direction:</t><t size='1'font='Bitstream'align='right'>%19</t><br/>
  5056. <t size='1'font='Bitstream'align='left' color='#0066CC'>@</t><t size='1'font='Bitstream'align='right'>%17</t><br/>
  5057. <t size='1'font='Bitstream'align='left' color='#0066CC'>Position:</t>
  5058. <t size='1'font='Bitstream'>%18</t>
  5059. ",
  5060. _txt,
  5061. (r_player_blood),
  5062. _humanity,
  5063. _pic,
  5064. _hours,
  5065. _minutes2,
  5066. '',
  5067. (round diag_fps),
  5068. (player getVariable['zombieKills', 0]),
  5069. (player getVariable['humanKills', 0]),
  5070. (player getVariable['banditKills', 0]),
  5071. (count playableUnits),
  5072. ({isPlayer _x} count ((vehicle player) nearEntities ['AllVehicles', 500]))-1,
  5073. viewdistance,
  5074. {alive _x} count ([0,0,0] nearEntities [['LandVehicle','Air','Ship'], 10000000]),
  5075. count vehicles,
  5076. mapGridPosition _pos,
  5077. _pos,
  5078. getDir (vehicle player)
  5079. ];
  5080. uiSleep 1;
  5081. };
  5082. if(!admin_debug_run)then{hintSilent parseText format["<t size='1'font='TahomaB'align='center'>DEBUG OFF</t>"];};
  5083. };
  5084. admin_animate1 =
  5085. {
  5086. {player reveal _x;} forEach (player nearObjects ['All',25]);
  5087. _ct = cursorTarget;
  5088. if((!isNull _ct) && (_ct distance player < 15))then
  5089. {
  5090. if((_ct isKindOf "AllVehicles") && !(_ct isKindOf "Man"))then
  5091. {
  5092. if(locked _ct)then
  5093. {
  5094. [nil,nil,nil,[_ct,"[infiSTAR.de ADMIN-TOOL]"]] execVM "\z\addons\dayz_code\actions\unlock_veh.sqf";
  5095. }
  5096. else
  5097. {
  5098. cutText ["Vehicle is already open.", "PLAIN"];
  5099. };
  5100. };
  5101. {_ct animate [_x,1];} forEach ["Open_hinge","Open_latch","Lights_1","Lights_2","Open_door","DoorR","LeftShutter","RightShutter"];
  5102. _type = typeOf _ct;
  5103. _alreadyPacking = _ct getVariable["packing",0];
  5104. if((_type in DZE_LockedStorage) && (_alreadyPacking == 0))then
  5105. {
  5106. dayz_combination = _ct getVariable["CharacterID","0"];
  5107. _ct spawn player_unlockVault;
  5108. };
  5109. };
  5110. };
  5111. admin_animate2 =
  5112. {
  5113. {player reveal _x;} forEach (player nearObjects ['All',25]);
  5114. _ct = cursorTarget;
  5115. if((!isNull _ct) && (_ct distance player < 15))then
  5116. {
  5117. if((_ct isKindOf "AllVehicles") && !(_ct isKindOf "Man"))then
  5118. {
  5119. if(locked _ct)then
  5120. {
  5121. cutText ["Vehicle is already locked.", "PLAIN"];
  5122. }
  5123. else
  5124. {
  5125. [nil,nil,nil,_ct] execVM "\z\addons\dayz_code\actions\lock_veh.sqf";
  5126. cutText ["[infiSTAR.de ADMIN-TOOL] used to lock vehicle.", "PLAIN"];
  5127. };
  5128. };
  5129. {_ct animate [_x,0];} forEach ["Open_hinge","Open_latch","Lights_1","Lights_2","Open_door","DoorR","LeftShutter","RightShutter"];
  5130. _type = typeOf _ct;
  5131. _alreadyPacking = _ct getVariable["packing",0];
  5132. if((_type in DZE_UnLockedStorage) && (_alreadyPacking == 0))then
  5133. {
  5134. dayz_combination = _ct getVariable["CharacterID","0"];
  5135. _ct spawn player_lockVault;
  5136. };
  5137. };
  5138. };
  5139. admin_generatekey =
  5140. {
  5141. private ["_ct","_id","_result","_inventory","_backpack"];
  5142. _ct = cursorTarget;
  5143. if(!isNull _ct)then{
  5144. if(_ct distance player > 12)exitWith {cutText [format["%1 is to far away.",typeOf _ct], "PLAIN"];};
  5145. if !((_ct isKindOf "LandVehicle") || (_ct isKindOf "Air") || (_ct isKindOf "Ship"))exitWith {cutText [format["%1 is not a vehicle..",typeOf _ct], "PLAIN"];};
  5146.  
  5147. _id = _ct getVariable["CharacterID","0"];
  5148. _id = parsenumber _id;
  5149. if(_id == 0)exitWith {cutText [format["%1 has ID 0 - No Key possible.",typeOf _ct], "PLAIN"];};
  5150. if((_id > 0) && (_id <= 2500))then{_result = format["ItemKeyGreen%1",_id];};
  5151. if((_id > 2500) && (_id <= 5000))then{_result = format["ItemKeyRed%1",_id-2500];};
  5152. if((_id > 5000) && (_id <= 7500))then{_result = format["ItemKeyBlue%1",_id-5000];};
  5153. if((_id > 7500) && (_id <= 10000))then{_result = format["ItemKeyYellow%1",_id-7500];};
  5154. if((_id > 10000) && (_id <= 12500))then{_result = format["ItemKeyBlack%1",_id-10000];};
  5155.  
  5156. _inventory = (weapons player);
  5157. _backpack = ((getWeaponCargo unitBackpack player) select 0);
  5158. if(_result in (_inventory+_backpack))then
  5159. {
  5160. if(_result in _inventory)then{cutText [format["Key [%1] already in your inventory!",_result], "PLAIN"];};
  5161. if(_result in _backpack)then{cutText [format["Key [%1] already in your backpack!",_result], "PLAIN"];};
  5162. }
  5163. else
  5164. {
  5165. player addweapon _result;
  5166. cutText [format["Key [%1] added to your inventory!",_result], "PLAIN"];
  5167.  
  5168. _pos = getPos _ct;
  5169. _sl = format["%1 generated Key %2 for %3 (CharID %4) @%5",name player,_result,typeOf _ct,_id,mapGridPosition _pos];
  5170. PVAH_WriteLogReq = [player,toArray _sl];
  5171. publicVariableServer 'PVAH_WriteLogReq';
  5172. };
  5173. };
  5174. };
  5175. admin_showid =
  5176. {
  5177. _obj = cursortarget;
  5178. if(!isNull _obj)then
  5179. {
  5180. _charID = _obj getVariable['CharacterID','0'];
  5181. _objID = _obj getVariable['ObjectID','0'];
  5182. _objUID = _obj getVariable['ObjectUID','0'];
  5183. _lastUpdate = _obj getVariable['lastUpdate',time];
  5184. _pos = getPosATL _obj;
  5185. _log1 = format['%1, WorldSpace: [%2,%3], @%4',typeOf _obj,getDir _obj,_pos,mapGridPosition _pos];
  5186. _log2 = format['charID: %1, objID: %2, objUID: %3, lastUpdate: %4s ago',_charID,_objID,_objUID,time - _lastUpdate];
  5187. if(isPlayer _obj)then
  5188. {
  5189. _log2 = format['Name: %1 PlayerUID: %2 charID: %3',_obj getVariable['bodyName',name _obj],getPlayerUID _obj,_charID];
  5190. };
  5191. if(!isNil 'DZE_DoorsLocked' && !isNil 'DZE_LockedStorage')then
  5192. {
  5193. _objType = typeOf _obj;
  5194. if(_objType in DZE_DoorsLocked || _objType in DZE_LockedStorage)then
  5195. {
  5196. _log2 = format['LockCode: %1, objID: %2, objUID: %3, lastUpdate: %4s ago',_charID,_objID,_objUID,time - _lastUpdate];
  5197. }
  5198. else
  5199. {
  5200. _vID = parseNumber _charID;
  5201. if(((_obj isKindOf 'LandVehicle') || (_obj isKindOf 'Air') || (_obj isKindOf 'Ship')) && (_vID > 0))then
  5202. {
  5203. _colors = ['Green', 'Red', 'Blue', 'Yellow', 'Black'];
  5204. _key = format['ItemKey%1%2', _colors select floor(_vID / 2500), (_vID - (floor(_vID / 2500) * 2500))];
  5205. _displayName = (getText (configFile >> 'CfgWeapons' >> _key >> 'displayName'));
  5206.  
  5207. _log2 = format['Key: %1 (%2) - CharID: %3, objID: %4, objUID: %5',_key,_displayName,_charID,_objID,_objUID];
  5208. };
  5209. };
  5210. };
  5211. {systemChat _x;diag_log _x;} forEach [_log1,_log2];
  5212. };
  5213. };
  5214. fnc_admin_fly =
  5215. {
  5216. forwardAndBackward_d = 4;
  5217. leftAndRight_d = 4;
  5218. upAndDown_d = 3;
  5219. d_FromGround = 1;
  5220. HoverState = nil;
  5221. fnc_move_forward =
  5222. {
  5223. if((getPosATL (vehicle player) select 2) > d_FromGround)then
  5224. {
  5225. _forwardCurrentDirection = getdir (vehicle player);
  5226. _forwardCurrentPosition = getPosATL (vehicle player);
  5227. (vehicle player) setdir _forwardCurrentDirection;
  5228. (vehicle player) setPosATL [(_forwardCurrentPosition select 0) + forwardAndBackward_d * sin(_forwardCurrentDirection),(_forwardCurrentPosition select 1) + forwardAndBackward_d * cos(_forwardCurrentDirection),(_forwardCurrentPosition select 2)];
  5229. };
  5230. };
  5231. fnc_move_left =
  5232. {
  5233. if((getPosATL (vehicle player) select 2) > d_FromGround)then
  5234. {
  5235. _leftDirection = getdir (vehicle player);
  5236. (vehicle player) setdir (_leftDirection) - leftAndRight_d;
  5237. };
  5238. };
  5239. fnc_move_backward =
  5240. {
  5241. if((getPosATL (vehicle player) select 2) > d_FromGround)then
  5242. {
  5243. _backwardCurrentDirection = getdir (vehicle player);
  5244. _backwardCurrentPosition = getPosATL (vehicle player);
  5245. (vehicle player) setdir _backwardCurrentDirection;
  5246. (vehicle player) setPosATL [(_backwardCurrentPosition select 0) - forwardAndBackward_d * sin(_backwardCurrentDirection),(_backwardCurrentPosition select 1) - forwardAndBackward_d * cos(_backwardCurrentDirection),(_backwardCurrentPosition select 2)];
  5247. };
  5248. };
  5249. fnc_move_right =
  5250. {
  5251. if((getPosATL (vehicle player) select 2) > d_FromGround)then
  5252. {
  5253. _rightDirection = getdir (vehicle player);
  5254. (vehicle player) setdir (_rightDirection) + leftAndRight_d;
  5255. };
  5256. };
  5257. fnc_move_up =
  5258. {
  5259. _upCurrentDirection = getdir (vehicle player);
  5260. _upCurrentPosition = getPosATL (vehicle player);
  5261. (vehicle player) setdir _upCurrentDirection;
  5262. (vehicle player) setPosATL [(_upCurrentPosition select 0), (_upCurrentPosition select 1), (_upCurrentPosition select 2) + upAndDown_d];
  5263. };
  5264. fnc_move_down =
  5265. {
  5266. if((getPosATL (vehicle player) select 2) > d_FromGround)then
  5267. {
  5268. _downCurrentDirection = getdir (vehicle player);
  5269. _downCurrentPosition = getPosATL (vehicle player);
  5270. (vehicle player) setdir _downCurrentDirection;
  5271. (vehicle player) setPosATL [(_downCurrentPosition select 0), (_downCurrentPosition select 1), (_downCurrentPosition select 2) - upAndDown_d];
  5272. };
  5273. };
  5274. fnc_Hover =
  5275. {
  5276. if(isnil 'HoverState')then
  5277. {
  5278. HoverState = true;
  5279. cutText ['Now Hovering','PLAIN DOWN'];
  5280. [] spawn {
  5281. _pos = getPosATL (vehicle player);
  5282. while{!isNil 'HoverState'}do
  5283. {
  5284. (vehicle player) SetVelocity [0,0,1];
  5285. (vehicle player) setPosATL _pos;
  5286. };
  5287. };
  5288. }
  5289. else
  5290. {
  5291. HoverState = nil;
  5292. cutText ['No longer Hovering','PLAIN DOWN'];
  5293. };
  5294. };
  5295. if(isnil 'FlyOnTheWingsOfLove')then
  5296. {
  5297. cutText ['Fly On','PLAIN DOWN'];
  5298.  
  5299. systemchat 'Admin Fly Keybinds:';
  5300. systemchat ' Q up Z/Y down | WASD to Move around | H to Hover';
  5301.  
  5302. FlyOnTheWingsOfLove = true;
  5303. fly_keyForward = (findDisplay 46) displayAddEventHandler ['KeyDown','if((_this select 1) == 17)then{call fnc_move_forward;}'];
  5304. fly_keyLeft = (findDisplay 46) displayAddEventHandler ['KeyDown','if((_this select 1) == 30)then{call fnc_move_left;}'];
  5305. fly_keyBackward = (findDisplay 46) displayAddEventHandler ['KeyDown','if((_this select 1) == 31)then{call fnc_move_backward;}'];
  5306. fly_keyRight = (findDisplay 46) displayAddEventHandler ['KeyDown','if((_this select 1) == 32)then{call fnc_move_right;}'];
  5307. fly_keyUp = (findDisplay 46) displayAddEventHandler ['KeyDown','if((_this select 1) == 16)then{call fnc_move_up;}'];
  5308. fly_keyDown = (findDisplay 46) displayAddEventHandler ['KeyDown','if((_this select 1) in [44,21])then{call fnc_move_down;}'];
  5309. fly_keyHover = (findDisplay 46) displayAddEventHandler ['KeyDown','if((_this select 1) == 35)then{call fnc_Hover;}'];
  5310. }
  5311. else
  5312. {
  5313. cutText ['Fly OFF','PLAIN DOWN'];
  5314. FlyOnTheWingsOfLove = nil;
  5315. (findDisplay 46) displayRemoveEventHandler ['KeyDown', fly_keyForward];
  5316. (findDisplay 46) displayRemoveEventHandler ['KeyDown', fly_keyLeft];
  5317. (findDisplay 46) displayRemoveEventHandler ['KeyDown', fly_keyBackward];
  5318. (findDisplay 46) displayRemoveEventHandler ['KeyDown', fly_keyRight];
  5319. (findDisplay 46) displayRemoveEventHandler ['KeyDown', fly_keyUp];
  5320. (findDisplay 46) displayRemoveEventHandler ['KeyDown', fly_keyDown];
  5321. (findDisplay 46) displayRemoveEventHandler ['KeyDown', fly_keyHover];
  5322. };
  5323. };
  5324. admin_fly_up =
  5325. {
  5326. if(isNil "admin_tpdirection_0n")exitWith {};
  5327. if(!admin_tpdirection_0n)exitWith {};
  5328. _vehicle = (vehicle player);
  5329. _vel = velocity _vehicle;
  5330. if((vehicle player)==player)then
  5331. {
  5332. _vehicle setVelocity [(_vel select 0),(_vel select 1),8];
  5333. }
  5334. else
  5335. {
  5336. _vehicle setVelocity [(_vel select 0),(_vel select 1),20];
  5337. };
  5338. };
  5339. admin_tpdirection_on =
  5340. {
  5341. if(isNil "admin_tpdirection_0n")then{admin_tpdirection_0n = true;} else {admin_tpdirection_0n = !admin_tpdirection_0n;};
  5342. uiSleep 0.1;
  5343. if(admin_tpdirection_0n)then
  5344. {
  5345. hint "TP infront of you ON";
  5346. cutText ["TP infront of you ON", "PLAIN DOWN"];
  5347.  
  5348. _sl = format["%1 TP infront of you ON",name player];
  5349. PVAH_WriteLogReq = [player,toArray _sl];
  5350. publicVariableServer 'PVAH_WriteLogReq';
  5351. }
  5352. else
  5353. {
  5354. hint "TP infront of you OFF";
  5355. cutText ["TP infront of you OFF", "PLAIN DOWN"];
  5356.  
  5357. _sl = format["%1 TP infront of you OFF",name player];
  5358. PVAH_WriteLogReq = [player,toArray _sl];
  5359. publicVariableServer 'PVAH_WriteLogReq';
  5360. };
  5361. };
  5362. admin_tpdirection =
  5363. {
  5364. if(isNil "admin_tpdirection_0n")exitWith {};
  5365. if(!admin_tpdirection_0n)exitWith {};
  5366.  
  5367. _distance = 10;
  5368. _object = (vehicle player);
  5369. _dir = getdir _object;
  5370. _pos = getPosATL _object;
  5371. if(_object isKindOf "Air")then
  5372. {
  5373. if(count(crew _object)>1)then
  5374. {
  5375. _distance = 10;
  5376. _pos = [(_pos select 0)+_distance*sin(_dir),(_pos select 1)+_distance*cos(_dir),((getpos _object) select 2)+100];
  5377. if(surfaceIsWater _pos)then{_object setPosASL _pos;} else {_object setPosATL _pos;};
  5378. }
  5379. else
  5380. {
  5381. _distance = 50;
  5382. _pos = [(_pos select 0)+_distance*sin(_dir),(_pos select 1)+_distance*cos(_dir),0];
  5383. if(surfaceIsWater _pos)then{_pos = [(_pos select 0)+_distance*sin(_dir),(_pos select 1)+_distance*cos(_dir),2];};
  5384. if((getpos _object) select 2 > 6)then{_pos = [(_pos select 0)+_distance*sin(_dir),(_pos select 1)+_distance*cos(_dir),((getpos _object) select 2)+0.1]};
  5385. if(surfaceIsWater _pos)then{_object setPosASL _pos;} else {_object setPosATL _pos;};
  5386. };
  5387. }
  5388. else
  5389. {
  5390. _distance = 10;
  5391. _pos = [(_pos select 0)+_distance*sin(_dir),(_pos select 1)+_distance*cos(_dir),0];
  5392. if(surfaceIsWater _pos)then{_pos = [(_pos select 0)+_distance*sin(_dir),(_pos select 1)+_distance*cos(_dir),2];};
  5393. if((getpos _object) select 2 > 3)then{_pos = [(_pos select 0)+_distance*sin(_dir),(_pos select 1)+_distance*cos(_dir),((getpos _object) select 2)];};
  5394. if(surfaceIsWater _pos)then{_object setPosASL _pos;} else {_object setPosATL _pos;};
  5395. };
  5396. {player reveal _x;} forEach (player nearObjects ['All',25]);
  5397. };
  5398. adminaltteleport =
  5399. {
  5400. if(isNil "adminaltteleport_toggle")then{adminaltteleport_toggle = true;} else {adminaltteleport_toggle = !adminaltteleport_toggle;};
  5401. if(adminaltteleport_toggle)then
  5402. {
  5403. if !(('ItemGPS' in items player) || ('ItemMap' in items player))then
  5404. {
  5405. _config = ["ItemGPS"];
  5406. _isOK = [player,_config] call BIS_fnc_invAdd;
  5407. };
  5408. ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ["MouseButtonDown", "if(((_this select 1) == 0) && altstate_Admin)then
  5409. {
  5410. _pos = ((_this select 0) posScreenToWorld [_this select 2, _this select 3]);
  5411. PVAH_AdminReq = [1,player,player,_pos];publicVariableServer 'PVAH_AdminReq';
  5412. openMap [false, false];
  5413. {player reveal _x;} forEach (player nearObjects ['All',25]);
  5414. _sl = format['Admin %1(%2) teleported to GPS: %3 WorldSpace: %4',name player,getPlayerUID player,mapGridPosition _pos,_pos];
  5415. PVAH_WriteLogReq = [player,toArray _sl];
  5416. publicVariableServer 'PVAH_WriteLogReq';
  5417. };"];
  5418. hint "ALT TELEPORT ACTIVATED";
  5419. cutText ["ALT TELEPORT ACTIVATED", "PLAIN"];
  5420. }
  5421. else
  5422. {
  5423. ((findDisplay 12) displayCtrl 51) ctrlRemoveAllEventHandlers "MouseButtonDown";
  5424. hint "ALT TELEPORT DISABLED";
  5425. cutText ["ALT TELEPORT DISABLED", "PLAIN"];
  5426. };
  5427. };
  5428. adminbreakleg =
  5429. {
  5430. {
  5431. if(name _x == _this select 0)then
  5432. {
  5433. PVAH_AdminReq = [2,player,_x];
  5434. publicVariableServer "PVAH_AdminReq";
  5435. hint format["Breaking %1's legs", _this select 0];
  5436.  
  5437. _sl = format["%1 Break Legs %2",name player,_this select 0];
  5438. PVAH_WriteLogReq = [player,toArray _sl];
  5439. publicVariableServer 'PVAH_WriteLogReq';
  5440. };
  5441. } forEach playableUnits;
  5442. };
  5443. admin_show = {
  5444. closeDialog 0;
  5445. if(!isNil 'VARIABLE_ADMIN_TARGET_OBJ')then
  5446. {
  5447. if(!isNull VARIABLE_ADMIN_TARGET_OBJ)then
  5448. {
  5449. createGearDialog [VARIABLE_ADMIN_TARGET_OBJ,'RscDisplayGear'];
  5450. cutText [format['Showing Gear of %1',VARIABLE_ADMIN_TARGET_NAME], 'PLAIN DOWN'];
  5451. };
  5452. };
  5453. };
  5454. fnc_getConfig = {
  5455. _cfg = '';
  5456. if(isClass (configFile >> 'CfgWeapons' >> _this))then
  5457. {
  5458. _cfg = 'CfgWeapons';
  5459. }
  5460. else
  5461. {
  5462. if(isClass (configFile >> 'CfgMagazines' >> _this))then
  5463. {
  5464. _cfg = 'CfgMagazines';
  5465. }
  5466. else
  5467. {
  5468. if(isClass (configFile >> 'CfgVehicles' >> _this))then
  5469. {
  5470. _cfg = 'CfgVehicles';
  5471. };
  5472. };
  5473. };
  5474. _cfg
  5475. };
  5476. remove_spec_000 = {
  5477. (vehicle player) switchCamera cameraView;
  5478. for '_i' from 3025 to 3045 do {['',0,0,1,0,0,_i] spawn bis_fnc_dynamicText;};
  5479. if(!isNil 'SpecateLoopActive')then
  5480. {
  5481. [] spawn remove_spec_000;
  5482. SpecateLoopActive = nil;
  5483. cutText ['Finished spectating.', 'PLAIN DOWN'];
  5484. };
  5485. };
  5486. adminspec = {
  5487. cutText ['Spectating - Press F10 to exit. F9 to show Gear!', 'PLAIN DOWN'];
  5488. if(isNil 'SpecateLoopActive')then
  5489. {
  5490. SpecateLoopActive = true;
  5491. while{!isNil 'SpecateLoopActive'}do
  5492. {
  5493. uiSleep 0.2;
  5494.  
  5495. if(isNil 'VARIABLE_ADMIN_TARGET_UID')exitWith {};
  5496. _unit = objNull;
  5497. {
  5498. if(getPlayerUID _x == VARIABLE_ADMIN_TARGET_UID)exitWith
  5499. {
  5500. _unit = _x;
  5501. };
  5502. } forEach playableUnits;
  5503. if(isNull _unit)then{_unit = player;};
  5504. if(str(_unit) == '<NULL-object>')then{_unit = player;};
  5505. if(getPlayerUID _unit == '')then{_unit = player;};
  5506.  
  5507.  
  5508. _veh = vehicle _unit;
  5509. if(str _veh != str cameraOn)then{_veh switchCamera cameraView;for '_i' from 3025 to 3045 do {['',0,0,1,0,0,_i] spawn bis_fnc_dynamicText;};};
  5510.  
  5511.  
  5512. _log = format['%1 (%2) @%3 SPD %4',name _unit,getPlayerUID _unit,mapGridPosition _veh,abs(speed _veh)];
  5513. ['<t align=''left'' size=''0.5'' color=''#238701''>'+_log+'</t>',safezoneX+0.2,safezoneY+0.405,0.3,0,0,3033] spawn bis_fnc_dynamicText;
  5514.  
  5515. _log2 = format['Blood: %1 | Humanity: %2 | Money: %3 | Bank: %4',(_unit getVariable['USEC_BloodQty',12000]),(_unit getVariable['humanity',0]),(_unit getVariable['CashMoney',0]),(_unit getVariable['bankMoney',0])];
  5516. ['<t align=''left'' size=''0.5'' color=''#238701''>'+_log2+'</t>',safezoneX+0.2,safezoneY+0.435,0.3,0,0,3034] spawn bis_fnc_dynamicText;
  5517.  
  5518. _cwep = '';
  5519. _cammo = '';
  5520. _cmags = '';
  5521. _wpnstate = weaponState _unit;
  5522. if(!isNil '_wpnstate')then
  5523. {
  5524. if(str _wpnstate != '[]')then
  5525. {
  5526. _cwep = _wpnstate select 0;
  5527. _cmags = {_wpnstate select 3 == _x} count magazines _unit;
  5528. _cammo = _wpnstate select 4;
  5529. };
  5530. };
  5531. if(_cwep == '')then
  5532. {
  5533. _log3 = 'Bare Fists';
  5534. ['<t align=''left'' size=''0.5'' color=''#238701''>'+_log3+'</t>',safezoneX+0.2,safezoneY+0.465,0.3,0,0,3035] spawn bis_fnc_dynamicText;
  5535. }
  5536. else
  5537. {
  5538. _type = _cwep;
  5539. _cfg = _type call fnc_getConfig;
  5540. _displayName = getText (configFile >> _cfg >> _type >> 'displayName');
  5541. _pic = getText (configFile >> _cfg >> _type >> 'picture');
  5542.  
  5543. _log3 = format[' %1 [%2] (%3/%4)',_displayName,_cwep,_cammo,_cmags];
  5544. ['
  5545. <img size=''0.75'' image='''+_pic+''' align=''left''/>
  5546. <t align=''left'' size=''0.5'' color=''#238701''>'+_log3+'</t>
  5547. ',
  5548. safezoneX+0.2,safezoneY+0.465,0.3,0,0,3035] spawn bis_fnc_dynamicText;
  5549.  
  5550. if(_veh != _unit)then
  5551. {
  5552. _cwepsV = weapons _veh;
  5553. _cwepsV = _cwepsV - ['CarHorn'];
  5554. _cwepsV = _cwepsV - ['MiniCarHorn'];
  5555. _cwepsV = _cwepsV - ['SportCarHorn'];
  5556. _cwepsV = _cwepsV - ['TruckHorn'];
  5557. if(count _cwepsV > 0)then
  5558. {
  5559. _id = 3032;
  5560. _YPOS = safezoneY+0.355;
  5561.  
  5562. {
  5563. _cwep = _x;
  5564. _cammo = _veh ammo _cwep;
  5565. _cmags = {currentMagazine _veh == _x} count magazines _veh;
  5566.  
  5567. _type = _cwep;
  5568. _cfg = _type call fnc_getConfig;
  5569. _displayName = getText (configFile >> _cfg >> _type >> 'displayName');
  5570.  
  5571. _log3a = format[' %1 [%2] (%3/%4)',_displayName,_cwep,_cammo,_cmags];
  5572. ['<t align=''left'' size=''0.5'' color=''#A90F68''>'+_log3a+'</t>',safezoneX+0.2,_YPOS,0.3,0,0,_id] spawn bis_fnc_dynamicText;
  5573.  
  5574. _id = _id - 1;
  5575. _YPOS = _YPOS - 0.03;
  5576. } forEach _cwepsV;
  5577. };
  5578. };
  5579. };
  5580.  
  5581.  
  5582. _ct = cursorTarget;
  5583. if(!isNull _ct)then
  5584. {
  5585. if(getPlayerUID _ct != '')then
  5586. {
  5587. _cwep_ct = currentWeapon _ct;
  5588. _cammo_ct = _ct ammo _cwep_ct;
  5589. _cmags_ct = {currentMagazine _ct == _x} count magazines _ct;
  5590.  
  5591. _log4 = format['%1 (%2) @%3 SPD %4',name _ct,getPlayerUID _ct,mapGridPosition _ct,abs(speed _ct)];
  5592. ['<t align=''left'' size=''0.5'' color=''#B80B36''>'+_log4+'</t>',safezoneX+0.2,safezoneY+0.545,0.3,0,0,3036] spawn bis_fnc_dynamicText;
  5593.  
  5594. _log5 = format['Blood: %1 Humanity: %2 Distance: %3m',(_ct getVariable['USEC_BloodQty',12000]),(_unit getVariable ['cashMoney', 0] call BIS_fnc_numberText),(_ct getVariable['humanity',0]),round(cameraOn distance _ct)];
  5595. ['<t align=''left'' size=''0.5'' color=''#B80B36''>'+_log5+'</t>',safezoneX+0.2,safezoneY+0.575,0.3,0,0,3037] spawn bis_fnc_dynamicText;
  5596.  
  5597. _type = _cwep_ct;
  5598. _cfg = _type call fnc_getConfig;
  5599. _displayName = getText (configFile >> _cfg >> _type >> 'displayName');
  5600. _pic = getText (configFile >> _cfg >> _type >> 'picture');
  5601. _log6 = format[' %1 [%2] (%3/%4)',_displayName,_cwep_ct,_cammo_ct,_cmags_ct];
  5602. ['
  5603. <img size=''0.75'' image='''+_pic+''' align=''left''/>
  5604. <t align=''left'' size=''0.5'' color=''#B80B36''>'+_log6+'</t>
  5605. ',
  5606. safezoneX+0.2,safezoneY+0.605,0.3,0,0,3038] spawn bis_fnc_dynamicText;
  5607. }
  5608. else
  5609. {
  5610. _type = typeOf _ct;
  5611. _cfg = _type call fnc_getConfig;
  5612. _displayName = getText (configFile >> _cfg >> _type >> 'displayName');
  5613. _log4 = format['%1 [%2] @%3',_displayName,_type,mapGridPosition _ct];
  5614. ['<t align=''left'' size=''0.5'' color=''#B80B36''>'+_log4+'</t>',safezoneX+0.2,safezoneY+0.545,0.3,0,0,3036] spawn bis_fnc_dynamicText;
  5615.  
  5616. _log5 = format['Health: %1 - Distance: %2m',(1-(damage _ct))*100,round(cameraOn distance _ct)];
  5617. ['<t align=''left'' size=''0.5'' color=''#B80B36''>'+_log5+'</t>',safezoneX+0.2,safezoneY+0.575,0.3,0,0,3037] spawn bis_fnc_dynamicText;
  5618.  
  5619. ['',0,0,1,0,0,3038] spawn bis_fnc_dynamicText;
  5620. };
  5621.  
  5622. _vehCT = vehicle _ct;
  5623. if((_vehCT isKindOf 'LandVehicle') || (_vehCT isKindOf 'Air') || (_vehCT isKindOf 'Ship') || (_vehCT isKindOf 'Static'))then
  5624. {
  5625. _cwepsV = weapons _vehCT;
  5626. _cwepsV = _cwepsV - ['CarHorn'];
  5627. _cwepsV = _cwepsV - ['MiniCarHorn'];
  5628. _cwepsV = _cwepsV - ['SportCarHorn'];
  5629. _cwepsV = _cwepsV - ['TruckHorn'];
  5630. if(count _cwepsV > 0)then
  5631. {
  5632. _id = 3039;
  5633. _YPOS = safezoneY+0.655;
  5634.  
  5635. {
  5636. _cwep = _x;
  5637. _cammo = _vehCT ammo _cwep;
  5638. _cmags = {currentMagazine _vehCT == _x} count magazines _vehCT;
  5639.  
  5640. _type = _cwep;
  5641. _cfg = _type call fnc_getConfig;
  5642. _displayName = getText (configFile >> _cfg >> _type >> 'displayName');
  5643.  
  5644. _log6a = format[' %1 [%2] (%3/%4)',_displayName,_cwep,_cammo,_cmags];
  5645. ['<t align=''left'' size=''0.5'' color=''#A90F68''>'+_log6a+'</t>',safezoneX+0.2,_YPOS,0.3,0,0,_id] spawn bis_fnc_dynamicText;
  5646.  
  5647. _id = _id + 1;
  5648. _YPOS = _YPOS + 0.03;
  5649. } forEach _cwepsV;
  5650. };
  5651. };
  5652. };
  5653. };
  5654. [] spawn remove_spec_000;
  5655. };
  5656. };
  5657. adminkill =
  5658. {
  5659. {
  5660. if(name _x == _this select 0)then
  5661. {
  5662. PVAH_AdminReq = [4,player,_x];
  5663. publicVariableServer "PVAH_AdminReq";
  5664. hint format["Killing %1", _this select 0];
  5665.  
  5666. _sl = format["%1 Adminkilled %2",name player, _this select 0];
  5667. PVAH_WriteLogReq = [player,toArray _sl];
  5668. publicVariableServer 'PVAH_WriteLogReq';
  5669. };
  5670. } forEach playableUnits;
  5671. };
  5672. adminSlap =
  5673. {
  5674. {
  5675. if(name _x == _this select 0)then
  5676. {
  5677. PVAH_AdminReq = [21,player,_x];
  5678. publicVariableServer "PVAH_AdminReq";
  5679. hint format["Slap %1", _this select 0];
  5680.  
  5681. _sl = format["%1 Slaps %2",name player, _this select 0];
  5682. PVAH_WriteLogReq = [player,toArray _sl];
  5683. publicVariableServer 'PVAH_WriteLogReq';
  5684. };
  5685. } forEach playableUnits;
  5686. };
  5687. adminBurn =
  5688. {
  5689. {
  5690. if(name _x == _this select 0)then
  5691. {
  5692. PVAH_AdminReq = [111,player,_x];
  5693. publicVariableServer "PVAH_AdminReq";
  5694. hint format["Burning %1 ...", _this select 0];
  5695.  
  5696. _sl = format["%1 burning %2 ...",name player,_this select 0];
  5697. PVAH_WriteLogReq = [player,toArray _sl];
  5698. publicVariableServer 'PVAH_WriteLogReq';
  5699. };
  5700. } forEach playableUnits;
  5701. };
  5702. adminFDisconnect =
  5703. {
  5704. {
  5705. if(name _x == _this select 0)then
  5706. {
  5707. PVAH_AdminReq = [10,player,_x];
  5708. publicVariableServer "PVAH_AdminReq";
  5709. hint format["Disconnect %1", _this select 0];
  5710.  
  5711. _sl = format["%1 Disconnected %2",name player, _this select 0];
  5712. PVAH_WriteLogReq = [player,toArray _sl];
  5713. publicVariableServer 'PVAH_WriteLogReq';
  5714. };
  5715. } forEach playableUnits;
  5716. };
  5717. adminremovegear =
  5718. {
  5719. {
  5720. if(name _x == _this select 0)then
  5721. {
  5722. PVAH_AdminReq = [8,player,_x];
  5723. publicVariableServer "PVAH_AdminReq";
  5724. hint format["%1 Gear Removed", _this select 0];
  5725.  
  5726. _sl = format["%1 Removes %2 Gear",name player, _this select 0];
  5727. PVAH_WriteLogReq = [player,toArray _sl];
  5728. publicVariableServer 'PVAH_WriteLogReq';
  5729. };
  5730. } forEach playableUnits;
  5731. };
  5732. adminmsg =
  5733. {
  5734. createDialog 'RscDisplayPassword';
  5735. ctrlSetText [1001,'BroadCast Message Plugin'];
  5736. ctrlSetText [101,''];
  5737. ctrlshow [1002,false];
  5738. buttonSetAction [1,'PVAH_AdminReq = [91, player, toArray(ctrlText 101), ''#FFFFFF'']; publicVariableServer ''PVAH_AdminReq'';'];
  5739. };
  5740. adminmsg2 =
  5741. {
  5742. createDialog 'RscDisplayPassword';
  5743. ctrlSetText [1001,'BroadCast Message Plugin'];
  5744. ctrlSetText [101,''];
  5745. ctrlshow [1002,false];
  5746. buttonSetAction [1,'PVAH_AdminReq = [91, player, toArray(ctrlText 101), ''#FFCC00'']; publicVariableServer ''PVAH_AdminReq'';'];
  5747. };
  5748. admint2me =
  5749. {
  5750. {
  5751. if(name _x == _this select 0)then
  5752. {
  5753. _pos = getPosATL player;
  5754. _dir = getDir player;
  5755. _distance = 5;
  5756. _pos = [(_pos select 0)+_distance*sin(_dir),(_pos select 1)+_distance*cos(_dir),(_pos select 2)];
  5757. (vehicle _x) setDir _dir;
  5758. PVAH_AdminReq = [1,player,_x,_pos];publicVariableServer 'PVAH_AdminReq';
  5759. hint format["%1 Moved to %2",name _x, name player];
  5760. cutText [format["%1 Moved to %2",name _x, name player], "PLAIN"];
  5761.  
  5762. _sl = format["%1 Moved to %2",name _x, name player];
  5763. PVAH_WriteLogReq = [player,toArray _sl];
  5764. publicVariableServer 'PVAH_WriteLogReq';
  5765. };
  5766. } forEach playableUnits;
  5767. };
  5768. admintele =
  5769. {
  5770. adminport_prevLoc =
  5771. {
  5772. (vehicle player) setPosATL prevLoc;
  5773. {player reveal _x;} forEach (player nearObjects ['All',25]);
  5774. prevLoc = nil;
  5775. };
  5776. fnc_adminKeybinds2 =
  5777. {
  5778. _keyDown = _this select 1;
  5779. if(_keyDown == 14)then
  5780. {
  5781. call adminport_prevLoc;
  5782. };
  5783. };
  5784. if(!isNil 'adminKeybinds2')then{(findDisplay 46) displayRemoveEventHandler ['KeyDown', adminKeybinds2];};
  5785. adminKeybinds2 = (findDisplay 46) displayAddEventHandler ['KeyDown','_this call fnc_adminKeybinds2;false;'];
  5786. if(isNil 'prevLoc')then
  5787. {
  5788. prevLoc = getPosATL player;
  5789. };
  5790. {
  5791. if(name _x == _this select 0)then
  5792. {
  5793. _pos = getPosATL (vehicle _x);
  5794. _dir = direction (vehicle _x);
  5795. _distance = -1;
  5796. if(player != vehicle player)then{_distance = -8;};
  5797. _pos = [(_pos select 0)+_distance*sin(_dir),(_pos select 1)+_distance*cos(_dir),(_pos select 2)];
  5798. (vehicle player) setPosATL _pos;
  5799. (vehicle player) setDir _dir;
  5800. {player reveal _x;} forEach (player nearObjects ['All',25]);
  5801.  
  5802. hint format['Moving to %1 - press BACKSPACE to revert teleport',name _x];
  5803. cutText [format['Moving to %1\npress BACKSPACE to revert teleport',name _x], 'PLAIN'];
  5804. _sl = format['%1 Moving to %2',name player,_this select 0];
  5805. PVAH_WriteLogReq = [player,toArray _sl];
  5806. publicVariableServer 'PVAH_WriteLogReq';
  5807. };
  5808. } forEach playableUnits;
  5809. };
  5810. adminsveh =
  5811. {
  5812. _dir = getdir vehicle player;
  5813. _pos = getPos vehicle player;
  5814. _pos = [(_pos select 0)+8*sin(_dir),(_pos select 1)+8*cos(_dir),0];
  5815. PVAH_AdminReq = [0, player, _this select 0, _pos];
  5816. publicVariableServer "PVAH_AdminReq";
  5817.  
  5818. cutText [format["SPAWNED: %1 @%2",_this select 0,_pos], "PLAIN DOWN"];
  5819. };
  5820. adminsvehhive =
  5821. {
  5822. _class = _this select 0;
  5823. _dir = getdir vehicle player;
  5824. _pos = getPos vehicle player;
  5825. _pos = [(_pos select 0)+8*sin(_dir),(_pos select 1)+8*cos(_dir),0];
  5826. _worldspace = [_dir,_pos];
  5827.  
  5828. if(MOD_EPOCH)then
  5829. {
  5830. _keyColor = ["Green","Red","Blue","Yellow","Black"] call BIS_fnc_selectRandom;
  5831. _keyNumber = (floor(random 2500)) + 1;
  5832. _keySelected = format[("ItemKey%1%2"),_keyColor,_keyNumber];
  5833. _isKeyOK = isClass(configFile >> "CfgWeapons" >> _keySelected);
  5834. _config = _keySelected;
  5835. _isOk = [player,_config] call BIS_fnc_invAdd;
  5836.  
  5837. PVAH_AdminReq = [-3, player, _class, _worldspace,_keySelected];
  5838. publicVariableServer "PVAH_AdminReq";
  5839. cutText [format["HIVESPAWNED: %1 @%2\n%3 added to toolbelt.",_class,_worldspace,_keySelected], "PLAIN DOWN"];
  5840. }
  5841. else
  5842. {
  5843. PVAH_AdminReq = [-1, player, _class, _pos];
  5844. publicVariableServer "PVAH_AdminReq";
  5845. cutText [format["HIVESPAWNED: %1 @%2",_class,_worldspace], "PLAIN DOWN"];
  5846. };
  5847. };
  5848. admin_fillobj =
  5849. {
  5850. inSub = true;
  5851. _ctrl = -1 call getControl;
  5852. _ctrl ctrlSetPosition [safezoneXAbs + 0.01, safezoneY + 0.07, ((0.485)*0.65) *2, (safeZoneH - 0.07 - 0.03)*0.65];
  5853. _ctrl ctrlSetScale 1.55;
  5854. _ctrl ctrlCommit 0;
  5855.  
  5856. _ctrl = 1 call getControl;
  5857. _ctrl ctrlSetFont "TahomaB";
  5858. _ctrl ctrlSetPosition [safezoneXAbs + 0.01, (safezoneY + 0.07), (0.485)*0.65, ((safeZoneH - 0.07 - 0.03)*0.65)];
  5859. _ctrl ctrlSetScale 1.55;
  5860. _ctrl ctrlCommit 0;
  5861.  
  5862. _ctrl = 2 call getControl;
  5863. lbclear _ctrl;
  5864. _ctrl ctrlSetFont "TahomaB";
  5865. _ctrl ctrlSetPosition [safezoneXAbs + 0.5, (safezoneY + 0.07), (0.485)*0.65, ((safeZoneH - 0.07 - 0.03)*0.65)];
  5866. _ctrl ctrlSetScale 1.55;
  5867. _ctrl ctrlCommit 0;
  5868.  
  5869. if(isNil 'GLOBAL_OBJECTTYPE')then{GLOBAL_OBJECTTYPE = '';};
  5870. if(isNil 'infiSTAR_showOBJ')then
  5871. {
  5872. infiSTAR_showOBJ =
  5873. {
  5874. _type = lbtext [2, (lbCurSel 2)];
  5875. if((_type isKindOf 'Building') && (str _type != str GLOBAL_OBJECTTYPE))then
  5876. {
  5877. _distance = 18;
  5878. _dir = getdir player;
  5879. _pos = getPos player;
  5880. _pos = [(_pos select 0)+_distance*sin(_dir),(_pos select 1)+_distance*cos(_dir),0];
  5881.  
  5882. _obj = _type createVehicleLocal _pos;
  5883. [_obj] spawn {
  5884. _obj = _this select 0;
  5885. waitUntil {isNull finddisplay 3030};
  5886. deleteVehicle _obj;
  5887. };
  5888.  
  5889. _obj setPosATL _pos;
  5890. _obj setDir (_dir + 180);
  5891.  
  5892. if(!isNil 'GLOBAL_OBJECT')then{deleteVehicle GLOBAL_OBJECT;};
  5893. GLOBAL_OBJECT = _obj;
  5894. };
  5895. GLOBAL_OBJECTTYPE = _type;
  5896. };
  5897. _ctrl ctrlSetEventHandler ["LBSelChanged", "call infiSTAR_showOBJ;"];
  5898. };
  5899. _spwx = "['%1'] call adminsobj;";
  5900. adminadd = [];
  5901. call admin_fillsubsss;
  5902. call admin_fillSpawnMenuFILL;
  5903. adminadd = adminadd + ["--- Buildings","","0","0","0","0",[0,0.8,1,1]];
  5904. adminadd = adminadd + [" START SEARCH (type in chat - searching stops when chat is closed)","['adminBuildings'] spawn fnc_infiSTAR_search","0","0","0","0",[0,0.8,1,1]];
  5905. {
  5906. adminadd = adminadd + [_x,format[_spwx,_x],"0","0","0","0",[]];
  5907. } forEach ALL_OBJ_TO_SEARCH;
  5908. call admin__FILL_MENUS;
  5909. };
  5910. adminsobj =
  5911. {
  5912. _classname = _this select 0;
  5913. if(!isNil 'GLOBAL_OBJECT')then{
  5914. if(!isNull GLOBAL_OBJECT)then{
  5915. detach GLOBAL_OBJECT;
  5916. GLOBAL_OBJECT = nil;
  5917. };
  5918. };
  5919. closeDialog 1;
  5920. GLOBAL_OFFSET = getArray (configFile >> 'CfgVehicles' >> _classname >> 'offset');
  5921. if((count GLOBAL_OFFSET) <= 0)then{GLOBAL_OFFSET = [0,15,0];};
  5922. _dir = getDir player;
  5923. _pos = getPosATL player;
  5924. _pos = [(_pos select 0) + 15 *sin(_dir),(_pos select 1) + 15 *cos(_dir),0];
  5925. GLOBAL_OBJECT = createVehicle [_classname, _pos, [], 0, 'CAN_COLLIDE'];
  5926. GLOBAL_OBJECT attachTo [player,GLOBAL_OFFSET];
  5927. _key = '';
  5928. {
  5929. _x = _x * 10;
  5930. if( _x < 0 )then{ _x = _x * -10 };
  5931. _key = _key + str(round(_x));
  5932. } count _pos;
  5933. _key = _key + str(round(_dir));
  5934. GLOBAL_OBJECT setVariable['ObjectID', '0', true];
  5935. GLOBAL_OBJECT setVariable['ObjectUID', _key, true];
  5936. GLOBAL_POS = _pos;
  5937. systemChat format['%1: constructing %2 @%3',round time,_classname,_pos];
  5938. [] spawn fnc_HelpConstruct;
  5939. };
  5940. fnc_ConstructKeyBinds =
  5941. {
  5942. if(isNil 'GLOBAL_OBJECT')exitWith {};
  5943. if(isNull GLOBAL_OBJECT)exitWith {};
  5944. detach GLOBAL_OBJECT;
  5945. private ['_key','_shift','_ctrl','_alt'];
  5946. _key = _this select 1;
  5947. _shift = _this select 2;
  5948. _ctrl = _this select 3;
  5949. _alt = _this select 4;
  5950. if(_key == 16)then
  5951. {
  5952. ['Left'] spawn fnc_LeftRight;
  5953. };
  5954. if(_key == 18)then
  5955. {
  5956. ['Right'] spawn fnc_LeftRight;
  5957. };
  5958. if(_key == 200)then
  5959. {
  5960. ['UP'] spawn fnc_UpDown;
  5961. };
  5962. if(_key == 201)then
  5963. {
  5964. ['UP'] spawn fnc_UpDown;
  5965. };
  5966. if(_key == 208)then
  5967. {
  5968. ['DOWN'] spawn fnc_UpDown;
  5969. };
  5970. if(_key == 209)then
  5971. {
  5972. ['DOWN'] spawn fnc_UpDown;
  5973. };
  5974. if(_key == 209)then
  5975. {
  5976. ['DOWN'] spawn fnc_UpDown;
  5977. };
  5978. if(_key == 15)then
  5979. {
  5980. _pos = getPosATL GLOBAL_OBJECT;
  5981. _pos = [_pos select 0,_pos select 1,0];
  5982. GLOBAL_OBJECT setPosATL _pos;
  5983. };
  5984. if(_key == 54)then
  5985. {
  5986. [GLOBAL_LAST_OBJECT] call adminsobj;
  5987. };
  5988. if(_key == 57)then
  5989. {
  5990. systemChat format['%1: %2 constructed @%3!',round time,typeOf GLOBAL_OBJECT,GLOBAL_POS];
  5991. GLOBAL_LAST_OBJECT = typeOf GLOBAL_OBJECT;
  5992. GLOBAL_OBJECT = nil;
  5993. };
  5994. {player reveal _x;} forEach (player nearObjects ['All',75]);
  5995. };
  5996. if(!isNil 'ConstructKeyBinds')then{(findDisplay 46) displayRemoveEventHandler ['KeyDown', ConstructKeyBinds];ConstructKeyBinds = nil;};
  5997. ConstructKeyBinds = (findDisplay 46) displayAddEventHandler ['KeyDown','_this call fnc_ConstructKeyBinds;false;'];
  5998. (findDisplay 46) displayRemoveAllEventHandlers 'MouseZChanged';
  5999. (findDisplay 46) displayAddEventHandler ['MouseZChanged','_this call fnc_ForwardBack;false;'];
  6000. fnc_ForwardBack =
  6001. {
  6002. if(isNil 'GLOBAL_OBJECT')exitWith {};
  6003. if(isNull GLOBAL_OBJECT)exitWith {};
  6004. _num = _this select 1;
  6005. _num = (_num/-8);
  6006. _dir = getDir GLOBAL_OBJECT;
  6007. _pos = getPosATL GLOBAL_OBJECT;
  6008. _pos = [(_pos select 0) - _num *sin(_dir),(_pos select 1) - _num *cos(_dir),(_pos select 2)];
  6009. GLOBAL_OBJECT setPosATL _pos;
  6010. GLOBAL_POS = getPosATL GLOBAL_OBJECT;
  6011. };
  6012. fnc_UpDown =
  6013. {
  6014. if(isNil 'GLOBAL_OBJECT')exitWith {hint 'GLOBAL_OBJECT not defined';};
  6015. if(isNull GLOBAL_OBJECT)exitWith {hint 'GLOBAL_OBJECT is Null';};
  6016. GLOBAL_POS = getPosATL GLOBAL_OBJECT;
  6017. if(_this select 0 == 'UP')then
  6018. {
  6019. GLOBAL_POS = [GLOBAL_POS select 0,GLOBAL_POS select 1,(GLOBAL_POS select 2) + 0.05];
  6020. };
  6021. if(_this select 0 == 'DOWN')then
  6022. {
  6023. GLOBAL_POS = [GLOBAL_POS select 0,GLOBAL_POS select 1,(GLOBAL_POS select 2) - 0.05];
  6024. };
  6025. GLOBAL_OBJECT setPosATL GLOBAL_POS;
  6026. };
  6027. fnc_LeftRight =
  6028. {
  6029. if(isNil 'GLOBAL_OBJECT')exitWith {hint 'GLOBAL_OBJECT not defined';};
  6030. if(isNull GLOBAL_OBJECT)exitWith {hint 'GLOBAL_OBJECT is Null';};
  6031. GLOBAL_POS = getPosATL GLOBAL_OBJECT;
  6032. GLOBAL_DIR = getDir GLOBAL_OBJECT;
  6033. if(_this select 0 == 'Right')then
  6034. {
  6035. GLOBAL_DIR = GLOBAL_DIR + 2;
  6036. };
  6037. if(_this select 0 == 'Left')then
  6038. {
  6039. GLOBAL_DIR = GLOBAL_DIR - 2;
  6040. };
  6041. GLOBAL_OBJECT SETDIR GLOBAL_DIR;
  6042. GLOBAL_OBJECT setPosATL GLOBAL_POS;
  6043. };
  6044. fnc_HelpConstruct = {
  6045. ["
  6046. <t align='left' size='0.5' color='#008fff'>Mouse Wheel - Move foward/back</t><br/>
  6047. <t align='left' size='0.5' color='#008fff'>Tab to set Object on the Ground</t><br/>
  6048. <t align='left' size='0.5' color='#008fff'>Page Up - Move object up</t><br/>
  6049. <t align='left' size='0.5' color='#008fff'>Page Down - Move object down</t><br/>
  6050. <t align='left' size='0.5' color='#008fff'>Q - Rotate object left</t><br/>
  6051. <t align='left' size='0.5' color='#008fff'>E - Rotate object right</t><br/>
  6052. <t align='left' size='0.5' color='#008fff'>Spacebar - Place Object</t><br/>
  6053. <t align='left' size='0.5' color='#008fff'>Insert - Save Object</t>
  6054. ",0,safezoneY,60,0,0,3016] spawn bis_fnc_dynamicText;
  6055. };
  6056. adminUncon =
  6057. {
  6058. {
  6059. if(name _x == _this select 0)then
  6060. {
  6061. PVAH_AdminReq = [11,player,_x];
  6062. publicVariableServer "PVAH_AdminReq";
  6063. hint format["Knocked %1 out...", _this select 0];
  6064.  
  6065. _sl = format["%1 Knocks %2 out...",name player,_this select 0];
  6066. PVAH_WriteLogReq = [player,toArray _sl];
  6067. publicVariableServer 'PVAH_WriteLogReq';
  6068. };
  6069. } forEach playableUnits;
  6070. };
  6071. adminFreeze =
  6072. {
  6073. {
  6074. if(name _x == _this select 0)then
  6075. {
  6076. PVAH_AdminReq = [112,player,_x];
  6077. publicVariableServer "PVAH_AdminReq";
  6078. hint format["Freezing %1", _this select 0];
  6079.  
  6080. _sl = format["%1 Froze %2",name player,_this select 0];
  6081. PVAH_WriteLogReq = [player,toArray _sl];
  6082. publicVariableServer 'PVAH_WriteLogReq';
  6083. };
  6084. } forEach playableUnits;
  6085. };
  6086. adminUnFreeze =
  6087. {
  6088. {
  6089. if(name _x == _this select 0)then
  6090. {
  6091. PVAH_AdminReq = [113,player,_x];
  6092. publicVariableServer "PVAH_AdminReq";
  6093. hint format["Un-Freezing %1", _this select 0];
  6094.  
  6095. _sl = format["%1 Un-Froze %2",name player,_this select 0];
  6096. PVAH_WriteLogReq = [player,toArray _sl];
  6097. publicVariableServer 'PVAH_WriteLogReq';
  6098. };
  6099. } forEach playableUnits;
  6100. };
  6101. adminHitVeh =
  6102. {
  6103. disableSerialization;
  6104. _name = _this select 0;
  6105. _hitpoint = _this select 1;
  6106. _damage = _this select 2;
  6107. if(_name == '')then{_name = name player;};
  6108. if(_hitpoint in ['FIND'])then
  6109. {
  6110. inSub = true;
  6111. _ctrl = 2 call getControl;
  6112. lbclear _ctrl;
  6113. _ctrl ctrlSetFont "TahomaB";
  6114. adminadd = [];
  6115. call admin_fillsubsss;
  6116.  
  6117. _veh = objNull;
  6118. _nametarget = call fnc_admin_call_for_name;
  6119. {
  6120. if(!isNull _x)then
  6121. {
  6122. if(getPlayerUID _x != "")then
  6123. {
  6124. if(name _x == _nametarget)then
  6125. {
  6126. _veh = vehicle _x;
  6127. };
  6128. };
  6129. };
  6130. } forEach playableUnits;
  6131. if(isNull _veh)then
  6132. {
  6133. _veh = vehicle player;
  6134. };
  6135. _getHitpoints = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\vehicle_getHitpoints.sqf";
  6136. _hitPoints = _veh call _getHitpoints;
  6137.  
  6138. _spwx = "[call fnc_admin_call_for_name,'%1',1] spawn adminHitVeh;";
  6139. {
  6140. adminadd = adminadd + [" "+_x,format[_spwx,_x],"0","0","0","0",[0.99,0.8,0.8,1]];
  6141. } forEach _hitpoints;
  6142. call admin__FILL_MENUS;
  6143. }
  6144. else
  6145. {
  6146. if(_hitpoint == 'HitFuel')then
  6147. {
  6148. _damage = 0.7;
  6149. };
  6150. {
  6151. if(name _x == _name)then
  6152. {
  6153. _vehicle = vehicle _x;
  6154.  
  6155. PVAH_AdminReq = [110,player,_x,_hitpoint,_damage];
  6156. publicVariableServer 'PVAH_AdminReq';
  6157. hint format['%3 of %1(%2) with %4 damage',_name,typeOf _vehicle,_hitpoint,_damage];
  6158.  
  6159. _sl = format['%1 %4 %2(%3) with %5 damage',name player,_name,typeOf _vehicle,_hitpoint,_damage];
  6160. PVAH_WriteLogReq = [player,toArray _sl];
  6161. publicVariableServer 'PVAH_WriteLogReq';
  6162. };
  6163. } forEach playableUnits;
  6164. };
  6165. };
  6166. admin_del_bxs =
  6167. {
  6168. PVAH_AdminReq = [14,player];
  6169. publicVariableServer "PVAH_AdminReq";
  6170.  
  6171. hint "deleting boxes..";
  6172.  
  6173. _sl = format["%1 deleted boxes",name player];
  6174. PVAH_WriteLogReq = [player,toArray _sl];
  6175. publicVariableServer 'PVAH_WriteLogReq';
  6176. };
  6177. adminDrug =
  6178. {
  6179. {
  6180. if(name _x == _this select 0)then
  6181. {
  6182. PVAH_AdminReq = [15,player,_x];
  6183. publicVariableServer "PVAH_AdminReq";
  6184. hint format["Drugging %1...", _this select 0];
  6185.  
  6186. _sl = format["%1 drugged %2",name player,_this select 0];
  6187. PVAH_WriteLogReq = [player,toArray _sl];
  6188. publicVariableServer 'PVAH_WriteLogReq';
  6189. };
  6190. } forEach playableUnits;
  6191. };
  6192. adminSuicide =
  6193. {
  6194. {
  6195. if(name _x == _this select 0)then
  6196. {
  6197. PVAH_AdminReq = [22,player,_x];
  6198. publicVariableServer "PVAH_AdminReq";
  6199. hint format["Suiciding %1", _this select 0];
  6200.  
  6201. _sl = format["%1 Suiciding %2",name player,_this select 0];
  6202. PVAH_WriteLogReq = [player,toArray _sl];
  6203. publicVariableServer 'PVAH_WriteLogReq';
  6204. };
  6205. } forEach playableUnits;
  6206. };
  6207. adminClearBan =
  6208. {
  6209. PVAH_AdminReq = [16,player];
  6210. publicVariableServer "PVAH_AdminReq";
  6211. hint "Bans cleared!";
  6212.  
  6213. _sl = format["%1 cleared Bans",name player];
  6214. PVAH_WriteLogReq = [player,toArray _sl];
  6215. publicVariableServer 'PVAH_WriteLogReq';
  6216. };
  6217. adminKick =
  6218. {
  6219. {
  6220. if(name _x == _this select 0)then
  6221. {
  6222. PVAH_AdminReq = [17,player,_x];
  6223. publicVariableServer "PVAH_AdminReq";
  6224. hint format["Kicked %1...", _this select 0];
  6225.  
  6226. _sl = format["%1 Kicked %2",name player,_this select 0];
  6227. PVAH_WriteLogReq = [player,toArray _sl];
  6228. publicVariableServer 'PVAH_WriteLogReq';
  6229. };
  6230. } forEach playableUnits;
  6231. };
  6232. adminbanTemp =
  6233. {
  6234. {
  6235. if(name _x == _this select 0)then
  6236. {
  6237. PVAH_AdminReq = [18,player,_x,1];
  6238. publicVariableServer "PVAH_AdminReq";
  6239. hint format["TempBanned %1...", _this select 0];
  6240.  
  6241. _sl = format["%1 TempBanned %2",name player,_this select 0];
  6242. PVAH_WriteLogReq = [player,toArray _sl];
  6243. publicVariableServer 'PVAH_WriteLogReq';
  6244. };
  6245. } forEach playableUnits;
  6246. };
  6247. adminBanPerm =
  6248. {
  6249. {
  6250. if(name _x == _this select 0)then
  6251. {
  6252. PVAH_AdminReq = [18,player,_x,2];
  6253. publicVariableServer "PVAH_AdminReq";
  6254. hint format["Banned %1...", _this select 0];
  6255.  
  6256. _sl = format["%1 Banned %2",name player,_this select 0];
  6257. PVAH_WriteLogReq = [player,toArray _sl];
  6258. publicVariableServer 'PVAH_WriteLogReq';
  6259. };
  6260. } forEach playableUnits;
  6261. };
  6262. adminUnBan =
  6263. {
  6264. _uid = _this select 0;
  6265. _name = _this select 1;
  6266.  
  6267. PVAH_AdminReq = [182,player,_uid,_name];
  6268. publicVariableServer "PVAH_AdminReq";
  6269. hint format["UnBanned %1 (%2)",_name,_uid];
  6270.  
  6271. _sl = format["%1 UnBanned %2 (%3)",name player,_name,_uid];
  6272. PVAH_WriteLogReq = [player,toArray _sl];
  6273. publicVariableServer 'PVAH_WriteLogReq';
  6274. };
  6275. adminPlayerDeaths =
  6276. {
  6277. if(isNil "dayzPlayerDeathsResult")then{dayzPlayerDeathsResult = [];};
  6278. "dayzPlayerDeathsResult" addPublicVariableEventHandler
  6279. {
  6280. if((count dayzPlayerDeathsResult) > 0)then
  6281. {
  6282. call EpochDeathBoardLoad;
  6283. }
  6284. else
  6285. {
  6286. cutText ["No recent Deaths.", "PLAIN DOWN"];
  6287. };
  6288. };
  6289. if(isNil "PVDZE_plr_DeathBResult")then{PVDZE_plr_DeathBResult = [];};
  6290. "PVDZE_plr_DeathBResult" addPublicVariableEventHandler
  6291. {
  6292. if((count PVDZE_plr_DeathBResult) > 0)then
  6293. {
  6294. call EpochDeathBoardLoad;
  6295. }
  6296. else
  6297. {
  6298. cutText ["No recent Deaths.", "PLAIN DOWN"];
  6299. };
  6300. };
  6301. PVAH_AdminReq = [23,player];
  6302. publicVariableServer "PVAH_AdminReq";
  6303. hint "Loading EPOCH-DEATHBOARD..";
  6304. };
  6305. admin_removePlotPoles =
  6306. {
  6307. private ['_objs'];
  6308. _objs = (nearestObjects [player, ['Plastic_Pole_EP1_DZ'], 30]);
  6309. if(count _objs > 0)then
  6310. {
  6311. {
  6312. PVAH_AdminReq = [-2,player,_x];
  6313. publicVariableServer 'PVAH_AdminReq';
  6314. } forEach _objs;
  6315. _log = format['<infiSTAR.de> %1 - PlotPoles within 30m deleted',count _objs];
  6316. systemChat _log;
  6317. hint _log;
  6318. }
  6319. else
  6320. {
  6321. _log = '<infiSTAR.de> No Plotpoles within 30m found';
  6322. systemChat _log;
  6323. hint _log;
  6324. };
  6325.  
  6326. _sl = format['%1 used Remove Plot Poles @%2',name player,mapGridPosition player];
  6327. PVAH_WriteLogReq = [player,toArray _sl];
  6328. publicVariableServer 'PVAH_WriteLogReq';
  6329. };
  6330. admin_removeNets =
  6331. {
  6332. private ['_objs'];
  6333. _objs = (nearestObjects [player, ['DesertLargeCamoNet_DZ','ForestLargeCamoNet_DZ','DesertCamoNet_DZ','ForestCamoNet_DZ','MAP_Camo_Box','MAP_CamoNet_EAST','MAP_CamoNet_EAST_var1','MAP_CamoNetB_EAST','MAP_CamoNet_NATO','MAP_CamoNet_NATO_var1','MAP_CamoNetB_NATO','MAP_Pristresek'], 30]);
  6334. if(count _objs > 0)then
  6335. {
  6336. {
  6337. PVAH_AdminReq = [-2,player,_x];
  6338. publicVariableServer 'PVAH_AdminReq';
  6339. } forEach _objs;
  6340. _log = format['<infiSTAR.de> %1 - Nets within 30m deleted',count _objs];
  6341. systemChat _log;
  6342. hint _log;
  6343. }
  6344. else
  6345. {
  6346. _log = '<infiSTAR.de> No Nets within 30m found';
  6347. systemChat _log;
  6348. hint _log;
  6349. };
  6350.  
  6351. _sl = format['%1 used Remove Nets',name player];
  6352. PVAH_WriteLogReq = [player,toArray _sl];
  6353. publicVariableServer 'PVAH_WriteLogReq';
  6354. };
  6355. admin_save_target =
  6356. {
  6357. if(!MOD_EPOCH)exitWith {hint 'fnc EPOCH only';};
  6358.  
  6359. SAVE_THIS = nil;
  6360. _obj = cursorTarget;
  6361. if(isNull _obj)exitWith {hint "target doesn't exist";cutText ["target doesn't exist", "PLAIN"];};
  6362. adminSaveNOW = {
  6363. if(!isNull SAVE_THIS)then
  6364. {
  6365. systemChat format["<infiSTAR.de>: %1 saved at [%2,%3]",typeOf SAVE_THIS,getDir SAVE_THIS,getPosATL SAVE_THIS];
  6366. PVAH_AdminReq = [26,player,SAVE_THIS];
  6367. publicVariableServer "PVAH_AdminReq";
  6368. };
  6369. };
  6370. if(!isNull _obj)then
  6371. {
  6372. SAVE_THIS = nil;
  6373. SAVE_THIS = _obj;
  6374. systemChat format["<infiSTAR.de>: save %1 at [%2,%3]?",typeOf SAVE_THIS,getDir SAVE_THIS,getPosATL SAVE_THIS];
  6375. adminSaveX =
  6376. [
  6377. ["",true],
  6378. [(format["%1-[%2,%3]",typeOf SAVE_THIS,getDir SAVE_THIS,getPosATL SAVE_THIS]), [-1], "", -5, [["expression", ""]], "1", "0"],
  6379. ["Save", [2], "", -5, [["expression", "[] spawn adminSaveNOW"]], "1", "1"],
  6380. ["Exit", [3], "", -5, [["expression", ""]], "1", "1"]
  6381. ];
  6382. showcommandingMenu "#USER:adminSaveX";
  6383. };
  6384. };
  6385. adminDelete =
  6386. {
  6387. DELETE_THIS = nil;
  6388. _delete = cursorTarget;
  6389. if(isNull _delete)exitWith {hint "target doesn't exist";cutText ["target doesn't exist", "PLAIN"];};
  6390. adminDeleteX =
  6391. [
  6392. ["",true],
  6393. [(format["%1",typeOf DELETE_THIS]), [-1], "", -5, [["expression", ""]], "1", "0"],
  6394. ["Delete", [2], "", -5, [["expression", "[] spawn adminDeleteNOW"]], "1", "1"],
  6395. ["Exit", [3], "", -5, [["expression", ""]], "1", "1"]
  6396. ];
  6397. adminDeleteNOW = {
  6398. if(!isNull DELETE_THIS)then
  6399. {
  6400. systemChat format["<infiSTAR.de>: %1 DELETED",typeOf DELETE_THIS];
  6401. PVAH_AdminReq = [-2,player,DELETE_THIS];
  6402. publicVariableServer "PVAH_AdminReq";
  6403. };
  6404. };
  6405. if(!isNull _delete)then
  6406. {
  6407. DELETE_THIS = nil;
  6408. DELETE_THIS = _delete;
  6409. systemChat format["<infiSTAR.de>: DELETE %1 ?",typeOf DELETE_THIS];
  6410. showcommandingMenu "#USER:adminDeleteX";
  6411. };
  6412. };
  6413. BCBaseListOld =
  6414. [
  6415. [
  6416. "base1",
  6417. "Test Base",
  6418. [0,23,0],
  6419. [
  6420. ["CinderWallDoor_DZ",[0.0551758,-0.736328,3.37357],239.861],
  6421. ["MetalFloor_DZ",[2.53516,0.763672,6.58356],59.9374],
  6422. ["MetalFloor_DZ",[2.54492,0.763672,3.19955],59.8886],
  6423. ["MetalFloor_DZ",[-2.00488,-1.83691,6.58356],239.937],
  6424. ["MetalFloor_DZ",[-2.00488,-1.83691,3.19955],239.889],
  6425. ["CinderWall_DZ",[-4.20508,1.36328,3.38358],150.186],
  6426. ["CinderWallDoorSmall_DZ",[-2.5249,3.76367,3.38358],239.993],
  6427. ["FireBarrel_DZ",[4.40527,1.86328,3.43457],59.2191],
  6428. ["CinderWallDoor_DZ",[4.78516,2.06348,-0.000427246],59.9374],
  6429. ["MetalFloor_DZ",[-0.0947266,5.26367,6.58356],239.937],
  6430. ["MetalFloor_DZ",[-0.0947266,5.26367,3.19955],59.8886],
  6431. ["WoodSmallWallThird_DZ",[4.84521,2.06348,3.38358],239.847],
  6432. ["WoodSmallWallThird_DZ",[4.89502,1.96289,3.38358],59.8468],
  6433. ["MetalFloor_DZ",[-4.63477,2.66309,3.19955],239.889],
  6434. ["MetalFloor_DZ",[-4.63477,2.66309,6.58356],59.9374],
  6435. ["CinderWall_DZ",[-0.214844,-5.63672,3.38358],329.709],
  6436. ["CinderWallDoorSmall_DZ",[2.71484,-5.23633,3.39355],59.7286],
  6437. ["MetalFloor_DZ",[5.16504,-3.83691,6.58356],239.937],
  6438. ["MetalFloor_DZ",[5.1748,-3.83691,3.19955],59.8886],
  6439. ["MetalFloor_DZ",[0.625,-6.43652,6.58356],59.9374],
  6440. ["MetalFloor_DZ",[0.635254,-6.43652,3.19955],239.889],
  6441. ["CinderWall_DZ",[6.18506,2.76367,3.38358],60.0843],
  6442. ["CinderWallDoorSmall_DZ",[2.33496,6.36328,-0.000427246],59.7633],
  6443. ["CinderWall_DZ",[-1.50488,7.46289,3.38956],329.972],
  6444. ["CinderWall_DZ",[-1.54492,7.46289,-0.000427246],150.363],
  6445. ["CinderWall_DZ",[-6.04492,4.76367,-0.000427246],148.928],
  6446. ["CinderWallDoorSmall_DZ",[7.34521,-2.33691,0.009552],59.8816],
  6447. ["CinderWallHalf_DZ",[-6.23486,4.66309,3.38956],149.364],
  6448. ["MetalFloor_DZ",[7.08496,3.36328,6.58356],59.9374],
  6449. ["MetalFloor_DZ",[-6.54492,-4.53711,3.19955],239.889],
  6450. ["MetalFloor_DZ",[-6.54492,-4.53711,6.58356],239.937],
  6451. ["MetalFloor_DZ",[5.36523,6.36328,3.18356],59.7772],
  6452. ["CinderWall_DZ",[8.55518,1.06348,-0.000427246],149.939],
  6453. ["CinderWall_DZ",[-8.59473,-1.13672,3.38358],150.109],
  6454. ["MetalFloor_DZ",[8.90527,0.263672,3.19357],59.8189],
  6455. ["CinderWall_DZ",[6.375,-6.23633,3.37958],149.81],
  6456. ["CinderWall_DZ",[6.375,-6.23633,-0.000427246],329.81],
  6457. ["Sandbag1_DZ",[6.68506,6.16309,-0.00143433],329.956],
  6458. ["MetalFloor_DZ",[4.44482,7.96289,3.19955],59.8886],
  6459. ["MetalFloor_DZ",[4.45508,7.96289,6.58356],59.9374],
  6460. ["MetalFloor_DZ",[-9.1748,0.0634766,6.58356],239.937],
  6461. ["MetalFloor_DZ",[-9.1748,0.0634766,3.19955],239.889],
  6462. ["CinderWallHalf_DZ",[1.60498,-9.03711,3.37958],149.81],
  6463. ["CinderWall_DZ",[1.60498,-9.03711,-0.000427246],329.81],
  6464. ["CinderWall_DZ",[-4.58496,-8.13672,3.38358],329.818],
  6465. ["CinderWallDoorSmall_DZ",[7.10498,6.36328,3.39755],330.226],
  6466. ["MetalFloor_DZ",[8.5752,4.26367,3.19357],59.7494],
  6467. ["MetalFloor_DZ",[8.70508,4.26367,6.58755],59.9444],
  6468. ["MetalFloor_DZ",[9.71484,-1.13672,6.58356],59.9374],
  6469. ["MetalFloor_DZ",[-3.90479,-9.03711,3.19955],239.889],
  6470. ["MetalFloor_DZ",[-3.91504,-9.03711,6.58356],239.937],
  6471. ["CinderWallDoorSmall_DZ",[9.78516,1.76367,3.39755],149.591],
  6472. ["WoodStairsSans_DZ",[9.64502,-3.23633,0.299561],149.952],
  6473. ["WoodSmallWallThird_DZ",[10.1748,-1.83691,3.37756],149.842],
  6474. ["WoodSmallWallThird_DZ",[10.2148,-1.73633,3.37756],329.842],
  6475. ["CinderWall_DZ",[3.24512,10.1631,-0.000427246],150.363],
  6476. ["CinderWall_DZ",[3.24512,10.1631,3.37958],330.363],
  6477. ["CinderWall_DZ",[-9.03516,-5.73633,-0.000427246],60.2108],
  6478. ["CinderWall_DZ",[-9.60498,-4.73633,3.38956],60.2249],
  6479. ["CinderWall_DZ",[-10.5649,2.16309,-0.000427246],150.057],
  6480. ["CinderWallHalf_DZ",[-10.5649,2.16309,3.37958],330.057],
  6481. ["CinderWall_DZ",[-8.23486,-7.13672,3.38956],60.0563],
  6482. ["CinderWall_DZ",[6.85498,9.16309,3.37958],60.0283],
  6483. ["CinderWall_DZ",[6.85498,9.16309,-0.000427246],240.028],
  6484. ["CinderWall_DZ",[-11.5552,-1.33691,-0.000427246],60.3165],
  6485. ["CinderWallHalf_DZ",[-11.5552,-1.33691,3.37958],240.317],
  6486. ["CinderWall_DZ",[11.1353,-3.43652,-0.000427246],329.81],
  6487. ["CinderWall_DZ",[11.1353,-3.43652,3.37958],149.81],
  6488. ["CinderWallHalf_DZ",[-2.60498,-11.4365,3.37958],150.089],
  6489. ["CinderWall_DZ",[-2.60498,-11.4365,-0.000427246],330.089],
  6490. ["CinderWallHalf_DZ",[10.7451,5.46289,3.37357],59.9723],
  6491. ["CinderWall_DZ",[12.0649,0.163086,3.37958],60.1405],
  6492. ["CinderWall_DZ",[12.0649,0.163086,-0.000427246],240.14],
  6493. ["CinderWall_DZ",[-6.29492,-10.5371,-0.000427246],60.2108],
  6494. ["CinderWallHalf_DZ",[-6.29492,-10.5371,3.37958],240.211],
  6495. ["WoodStairsSans_DZ",[12.2749,-1.63672,-2.20044],149.947]
  6496. ]
  6497. ],
  6498. [
  6499. "base2",
  6500. "Another Base",
  6501. [0,23,0],
  6502. [
  6503. ["CinderWallDoor_DZ",[0.0551758,-0.736328,3.37357],239.861],
  6504. ["MetalFloor_DZ",[2.53516,0.763672,6.58356],59.9374]
  6505. ]
  6506. ]
  6507. ];
  6508. if(isNil 'BCBaseList')then{BCBaseList = BCBaseListOld;};
  6509. admin_BaseMenu =
  6510. {
  6511. if(isNil "BCCurrentBase")then{BCCurrentBase = [];};
  6512. if((!isNil "TraderDialogLoadItemList") && (isNil "oTraderDialogLoadItemList"))then{oTraderDialogLoadItemList = TraderDialogLoadItemList;};
  6513. if((!isNil "TraderDialogShowPrices") && (isNil "oTraderDialogShowPrices"))then{oTraderDialogShowPrices = TraderDialogShowPrices;};
  6514. if((!isNil "TraderDialogSell") && (isNil "oTraderDialogSell"))then{oTraderDialogSell = TraderDialogSell;};
  6515. if((!isNil "TraderDialogBuy") && (isNil "oTraderDialogBuy"))then{oTraderDialogBuy = TraderDialogBuy;};
  6516. fn_BCInsert = {
  6517. TraderDialogLoadItemList = {};
  6518. TraderDialogShowPrices = {};
  6519. TraderDialogSell = {};
  6520. TraderDialogBuy = {
  6521. systemChat str [lbCurSel 12000, lbCurSel 12001];
  6522. [lbCurSel 12000, lbCurSel 12001] spawn {
  6523. private ["_pindex", "_bindex", "_base", "_player", "_base_objects"];
  6524. systemChat str _this;
  6525. _pindex = _this select 0;
  6526. _bindex = _this select 1;
  6527. if(_pindex < 0 or _bindex < 0)exitWith {};
  6528. _base = BCBaseList select _bindex;
  6529. _player = BCNearbyList select _pindex;
  6530. _attach_position = player modelToWorld (_base select 2);
  6531. _attach_position set [2, getPosASL player select 2];
  6532. _base_objects = [_base select 3, _attach_position, _player] call fn_BCCreateBase;
  6533. [_base_objects] call fn_BCBuildbase;
  6534. };
  6535. };
  6536. createdialog "TraderDialog";
  6537. [] spawn {
  6538. uiSleep 0.1;
  6539. waitUntil {!dialog};
  6540. uiSleep 0.1;
  6541. if(!isNil "oTraderDialogLoadItemList")then{TraderDialogLoadItemList = oTraderDialogLoadItemList;};
  6542. if(!isNil "oTraderDialogShowPrices")then{TraderDialogShowPrices = oTraderDialogShowPrices;};
  6543. if(!isNil "oTraderDialogSell")then{TraderDialogSell = oTraderDialogSell;};
  6544. if(!isNil "oTraderDialogBuy")then{TraderDialogBuy = oTraderDialogBuy;};
  6545. };
  6546. lbClear 12000;
  6547. lbClear 12001;
  6548. ctrlShow [12005, false];
  6549. {
  6550. lbAdd [12001, format["%1 (%2)", _x select 1, _x select 0]];
  6551. true
  6552. } count BCBaseList;
  6553.  
  6554. BCNearbyList = [];
  6555. {
  6556. if(!isNull _x)then
  6557. {
  6558. if(_x distance player < 50)then
  6559. {
  6560. BCNearbyList set [count BCNearbyList, _x];
  6561. lbAdd [12000, format["%1", name _x]];
  6562. };
  6563. };
  6564. true
  6565. } count playableUnits;
  6566. };
  6567. fn_BCExport = {
  6568. private ['_objects', '_position', '_distance', '_nearest_objects'];
  6569. if(isNil 'BC_Center' or isNil 'BC_radius')exitWith
  6570. {
  6571. systemChat 'Center not set';
  6572. };
  6573. _objects = [];
  6574. _position = BC_center;
  6575. _distance = BC_radius;
  6576. _nearest_objects = nearestObjects [[_position select 0, _position select 1], dayz_allowedObjects, _distance];
  6577. diag_log text ('/' + '/ --------- Start Base Export --------- /' + '/');
  6578. diag_log text 'if(isServer)then{';
  6579. {
  6580. private ['_obj_type', '_direction', '_obj_position', '_row','_vector'];
  6581. _obj_type = typeOf _x;
  6582. _direction = getDir _x;
  6583. _obj_position = getPosASL _x;
  6584. _objVector = [(vectorDir _x),(vectorUp _x)];
  6585. _row = [_obj_type, _obj_position, [], 0, 'CAN_COLLIDE'];
  6586. if((_obj_type != 'VaultStorageLocked') && (_obj_type != 'CinderWallDoorSmallLocked_DZ') && (_obj_type != '') && (_obj_type != 'LockboxStorageLocked') && (_obj_type != 'StorageShed_DZ') && (_obj_type != 'CinderWallDoorLocked_DZ') && (_obj_type != 'Land_DZE_GarageWoodDoorLocked') && (_obj_type != 'Land_DZE_LargeWoodDoorLocked') && (_obj_type != 'GunRack_DZ') && (_obj_type != 'Wooden_shed_DZ') && (_obj_type != 'WoodCrate_DZ') && (_obj_type != 'Sign_sphere100cm_EP1') && (_obj_type != 'Sign_arrow_down_large_EP1'))then{
  6587. diag_log text '_bldObj = objNull;';
  6588. diag_log text 'if(true)then{';
  6589. diag_log text format['_bldObj = createVehicle %1;', _row];
  6590. diag_log text format['_bldObj setDir %1;',_direction];
  6591. diag_log text format['_bldObj setPosASL %1;',_obj_position];
  6592. diag_log text format['_bldObj setVectorDirAndUp %1;',_objVector];
  6593. diag_log text '};';
  6594. diag_log text '';
  6595. };
  6596. _row set [count _row, _x];
  6597. _objects set [count _objects, _row];
  6598. true
  6599. } count _nearest_objects;
  6600. systemChat format['Exported %1 items', count _nearest_objects];
  6601. diag_log text '};';
  6602. diag_log text ('/' + '/ --------- End Base Export --------- /' + '/');
  6603. BCCopiedBase = _objects;
  6604. ['<t size=''0.6''>Base exported to logs in SQF Format</t>',0,0.8,0.5,0,0,8] spawn BIS_fnc_dynamicText;
  6605. showCommandingMenu '#USER:BCMainMenu';
  6606. _objects
  6607. };
  6608. fn_BCSetCenter = {
  6609. private ["_centerSign"];
  6610. BC_radius = nil;
  6611. BC_Center = getPosASL player;
  6612. _centerSign = createVehicle ["Sign_arrow_down_large_EP1", [0,0,0], [], 0, "CAN_COLLIDE"];
  6613. _centerSign setPosASL BC_Center;
  6614. _centerSign spawn {uiSleep 30; deleteVehicle _this;};
  6615. showcommandingMenu "#USER:BCMainMenu";
  6616. };
  6617. fn_BCSetRadius = {
  6618. if(isNil "BC_Center")exitWith
  6619. {
  6620. systemChat "Center not set";
  6621. };
  6622. BC_radius = [player, BC_center] call BIS_fnc_distance2D;
  6623. if(BC_radius == 0)exitWith
  6624. {
  6625. systemChat "Radius is 0";
  6626. };
  6627. showcommandingMenu "#USER:BCMainMenu";
  6628. [] spawn {
  6629. private ["_pos", "_radius", "_angle", "_distance", "_count", "_step", "_count", "_step", "_objects"];
  6630. _angle = 0;
  6631. _count = round((2 * pi * BC_radius) / 2);
  6632. _objects = [];
  6633. for "_x" from 0 to _count do
  6634. {
  6635. private["_a", "_b", "_obj"];
  6636. _a = (BC_Center select 0) + (sin(_angle)*BC_radius);
  6637. _b = (BC_Center select 1) + (cos(_angle)*BC_radius);
  6638. _obj = createVehicle ["Sign_sphere100cm_EP1", [0,0,0], [], 0, "CAN_COLLIDE"];
  6639. _obj setPosASL [_a, _b, BC_center select 2];
  6640. _objects set [count _objects, _obj];
  6641. _angle = _angle + (360/_count);
  6642. };
  6643.  
  6644. for "_x" from 0 to _count do
  6645. {
  6646. private["_a", "_b", "_obj"];
  6647. _a = (BC_Center select 0) + (sin(_angle)*BC_radius);
  6648. _b = (BC_Center select 2) + (cos(_angle)*BC_radius);
  6649. _obj = createVehicle ["Sign_sphere100cm_EP1", [0,0,0], [], 0, "CAN_COLLIDE"];
  6650. _obj setPosASL [_a, BC_center select 1, _b];
  6651. _objects set [count _objects, _obj];
  6652. _angle = _angle + (360/_count);
  6653. };
  6654.  
  6655. for "_x" from 0 to _count do
  6656. {
  6657. private["_a", "_b", "_obj"];
  6658. _a = (BC_Center select 1) + (sin(_angle)*BC_radius);
  6659. _b = (BC_Center select 2) + (cos(_angle)*BC_radius);
  6660. _obj = createVehicle ["Sign_sphere100cm_EP1", [0,0,0], [], 0, "CAN_COLLIDE"];
  6661. _obj setPosASL [BC_center select 0, _a, _b];
  6662. _objects set [count _objects, _obj];
  6663. _angle = _angle + (360/_count);
  6664. };
  6665. uiSleep 30;
  6666. { deleteVehicle _x; true } count _objects;
  6667. };
  6668. };
  6669. fn_BCCopy = {
  6670. private ["_objects", "_position", "_distance", "_nearest_objects"];
  6671. if(isNil "BC_Center" or isNil "BC_radius")exitWith
  6672. {
  6673. systemChat "Center not set";
  6674. };
  6675. if(BC_radius == 0)exitWith
  6676. {
  6677. systemChat "Radius is 0";
  6678. };
  6679. _objects = [];
  6680. _position = BC_center;
  6681. _distance = BC_radius;
  6682. _nearest_objects = nearestObjects [[_position select 0, _position select 1], dayz_allowedObjects, _distance];
  6683. diag_log "========= Copying Objects [start] =========";
  6684. {
  6685. private ["_obj_type", "_direction", "_obj_position", "_relative_position", "_row"];
  6686. _obj_type = typeOf _x;
  6687. _direction = getDir _x;
  6688. _obj_position = getPosASL _x;
  6689. _relative_position = [
  6690. (_obj_position select 0) - (_position select 0),
  6691. (_obj_position select 1) - (_position select 1),
  6692. (_obj_position select 2) - (_position select 2)
  6693. ];
  6694. _row = [_obj_type, _relative_position, _direction];
  6695. diag_log str(_row);
  6696. _row set [count _row, _x];
  6697. _objects set [count _objects, _row];
  6698. true
  6699. } count _nearest_objects;
  6700. systemChat format["Copied %1 items", count _nearest_objects];
  6701. diag_log "========= Copying Objects [end] =========";
  6702. BCCopiedBase = _objects;
  6703. ["<t size='0.6'>Base copied to logs</t>",0,0.8,0.5,0,0,8] spawn BIS_fnc_dynamicText;
  6704. showcommandingMenu "#USER:BCMainMenu";
  6705. _objects
  6706. };
  6707. fn_BCPaste = {
  6708. private ["_dimensions", "_attach_position", "_base_objects"];
  6709. if(isNil "BCCopiedBase")exitWith
  6710. {
  6711. systemChat "Base not copied not set";
  6712. };
  6713. _dimensions = BCCopiedBase call fn_BCGetDimensions;
  6714. _attach_position = player modelToWorld [0, ((_dimensions select 0) max (_dimensions select 1)), 0];
  6715. diag_log str [0, ((_dimensions select 0) max (_dimensions select 1)), 0];
  6716. _attach_position set [2, getPosASL player select 2];
  6717. _base_objects = [BCCopiedBase, _attach_position] call fn_BCCreateBase;
  6718. [_base_objects] call fn_BCBuildbase;
  6719. };
  6720. fn_BCDelete = {
  6721. BCConfirmBaseDelete = [
  6722. ["",true],
  6723. ["Base Manager", [-1], "", -5, [], "1", "0"],
  6724. [" by Maca134", [-1], "", -5, [], "1", "0"],
  6725. [" infiSTAR.de edit", [-1], "", -5, [], "1", "0"],
  6726. ["Delete Objects in Radius?", [-1], "", -5, [], "1", "0"],
  6727. ["No", [2], "", -5, [["expression", ""]], "1", "1"],
  6728. ["Yes", [3], "", -5, [["expression", "[] spawn fn_BCConfirmDelete"]], "1", "1"]
  6729. ];
  6730. showcommandingMenu "#USER:BCConfirmBaseDelete";
  6731. };
  6732. fn_BCConfirmDelete = {
  6733. private ["_position", "_distance", "_nearest_objects"];
  6734. if(isNil "BC_Center" or isNil "BC_radius")exitWith
  6735. {
  6736. systemChat "Center not set";
  6737. };
  6738. if(BC_radius == 0)exitWith
  6739. {
  6740. systemChat "Radius is 0";
  6741. };
  6742. _position = BC_center;
  6743. _distance = BC_radius;
  6744.  
  6745.  
  6746. _objs_to_delete = dayz_allowedObjects;
  6747. _objs_to_delete = _objs_to_delete - ["VaultStorageLocked"];
  6748. _objs_to_delete = _objs_to_delete - ["LockboxStorageLocked"];
  6749. _nearest_objects = nearestObjects [[_position select 0, _position select 1], _objs_to_delete, _distance];
  6750.  
  6751. uiSleep 1;
  6752. PVAH_AdminReq = [-2,player,_nearest_objects];
  6753. publicVariableServer "PVAH_AdminReq";
  6754.  
  6755. [format["<t size='0.6'>Deleted %1 objects</t>", count _nearest_objects],0,0.8,0.5,0,0,8] spawn BIS_fnc_dynamicText;
  6756. };
  6757. fn_BCSaveToDb = {
  6758. {
  6759. PVAH_AdminReq = [26,player,_x];
  6760. publicVariableServer "PVAH_AdminReq";
  6761. true
  6762. } count BCCurrentBase;
  6763. [format["<t size='0.6'>Added %1 objects to database</t>", count BCCurrentBase],0,0.8,0.5,0,0,8] spawn BIS_fnc_dynamicText;
  6764. BCCurrentBase = [];
  6765. };
  6766. fn_BCCancelBase = {
  6767. {
  6768. detach _x; deleteVehicle _x;
  6769. } count BCCurrentBase;
  6770. BCCurrentBase = [];
  6771. ["<t size='0.6'>Cancelled</t>",0,0.8,0.5,0,0,8] spawn BIS_fnc_dynamicText;
  6772. };
  6773. fn_BCCenter = {
  6774. private ["_objects", "_ax", "_ay", "_az", "_total", "_thanks"];
  6775. _thanks = _this;
  6776. if(isNil '_thanks')exitWith {};
  6777. _objects = [];
  6778. _ax = 0;
  6779. _ay = 0;
  6780. _az = 0;
  6781. {
  6782. private ["_pos"];
  6783. _pos = getPosASL _x;
  6784. _ax = _ax + (_pos select 0);
  6785. _ay = _ay + (_pos select 1);
  6786. _az = _az + (_pos select 2);
  6787. } count _thanks;
  6788. _total = count _thanks;
  6789. _center = [_ax / _total, _ay / _total, _az / _total];
  6790. _center
  6791. };
  6792. fn_BCCreateBase = {
  6793. private ["_objects", "_items", "_position", "_player"];
  6794. _objects = [];
  6795. _items = _this select 0;
  6796. _position = _this select 1;
  6797. if(count _this == 3)then{
  6798. _player = _this select 2;
  6799. };
  6800. {
  6801. private ["_object", "_orig_obj"];
  6802. _object = createVehicle [_x select 0, [0,0,0], [], 0, "CAN_COLLIDE"];
  6803. _object setPosASL [
  6804. ((_x select 1) select 0) + (_position select 0),
  6805. ((_x select 1) select 1) + (_position select 1),
  6806. ((_x select 1) select 2) + (_position select 2)
  6807. ];
  6808. _object attachTo [player];
  6809. _object setDir ((_x select 2) - getDir player);
  6810. if(count _x == 4)then{
  6811. _orig_obj = _x select 3;
  6812. _object setVariable["CharacterID", _orig_obj getVariable["CharacterID", ""], true];
  6813. };
  6814. if(!isNil "_player")then{
  6815. _object setVariable["CharacterID", (_player getVariable["CharacterID","0"]), true];
  6816. };
  6817. _objects set [count _objects, _object];
  6818. true
  6819. } count _items;
  6820. _objects
  6821. };
  6822. fn_BCBuildbase = {
  6823. private ["_base_objects", "_finished", "_place"];
  6824. _base_objects = _this select 0;
  6825. {
  6826. _x attachTo [player];
  6827. true
  6828. } count _base_objects;
  6829. _finished = false;
  6830. DZE_Q = false;
  6831. DZE_Z = false;
  6832. DZE_4 = false;
  6833. DZE_6 = false;
  6834. DZE_5 = false;
  6835. DZE_cancelBuilding = false;
  6836. _place = false;
  6837. while{!_finished}do {
  6838. private ["_player_direction"];
  6839. ["<t size='0.6'>SPACE: Place | Q/R: Rotate | PgUp/PgDn: Height</t>",0,0.8,0.5,0,0,8] spawn BIS_fnc_dynamicText;
  6840. _player_direction = getDir player;
  6841. if(DZE_Q or DZE_Z)then{
  6842. {
  6843. private ["_obj_direction", "_position"];
  6844. detach _x;
  6845. _obj_direction = getDir _x;
  6846. _position = getPosASL _x;
  6847. _position set [2, (_position select 2) + (if(DZE_Q)then{0.5} else {-0.5})];
  6848. _x setPosASL _position;
  6849. _x attachTo [player];
  6850. _x setDir (_obj_direction - _player_direction);
  6851. true
  6852. } count _base_objects;
  6853. DZE_Q = false;
  6854. DZE_Z = false;
  6855. };
  6856. if(DZE_4 or DZE_6)then{
  6857. private ["_center_position"];
  6858. _center_position = _base_objects call fn_BCCenter;
  6859. {
  6860. private ["_position", "_obj_direction", "_dif_direction", "_new_direction", "_distance", "_rotated_position"];
  6861. detach _x;
  6862. _position = getPosASL _x;
  6863. _obj_direction = ([_center_position, _position] call BIS_fnc_dirTo);
  6864. _dif_direction = if(DZE_4)then{10} else {-10};
  6865. _new_direction = _obj_direction + _dif_direction;
  6866. _distance = [_center_position, _position] call BIS_fnc_distance2D;
  6867. _obj_direction = getDir _x;
  6868. _rotated_position = [_center_position, _distance, _new_direction] call BIS_fnc_relPos;
  6869. _rotated_position set [2, _position select 2];
  6870. _x setPosASL _rotated_position;
  6871. _x attachTo [player];
  6872. _x setDir (((_obj_direction - _player_direction) + _dif_direction) % 360);
  6873. true
  6874. } count _base_objects;
  6875. DZE_4 = false;
  6876. DZE_6 = false;
  6877. };
  6878. if(DZE_5)exitWith {
  6879. _finished = true;
  6880. _place = true;
  6881. };
  6882. if(DZE_cancelBuilding)exitWith {
  6883. _finished = true;
  6884. _place = false;
  6885. };
  6886. };
  6887. {detach _x; true} count _base_objects;
  6888. BCCurrentBase = _base_objects;
  6889. if(!_place)then
  6890. {
  6891. call fn_BCCancelBase;
  6892. };
  6893. };
  6894. fn_BCGetDimensions = {
  6895. private ["_xmin", "_xmax", "_ymin", "_ymax"];
  6896. _xmin = 0;
  6897. _xmax = 0;
  6898. _ymin = 0;
  6899. _ymax = 0;
  6900. {
  6901. private ["_position"];
  6902. _position = _x select 1;
  6903. if((_position select 0) < _xmin)then{
  6904. _xmin = _position select 0;
  6905. };
  6906. if((_position select 0) > _xmax)then{
  6907. _xmax = _position select 0;
  6908. };
  6909.  
  6910. if((_position select 1) < _ymin)then{
  6911. _ymin = _position select 1;
  6912. };
  6913. if((_position select 1) > _ymax)then{
  6914. _ymax = _position select 1;
  6915. };
  6916. true
  6917. } count _this;
  6918. [abs _xmin + abs _xmax, abs _ymin + abs _ymax]
  6919. };
  6920. BCBaseSaveMenu = [
  6921. ["",true],
  6922. ["Base Manager", [-1], "", -5, [], "1", "0"],
  6923. [" by Maca134", [-1], "", -5, [], "1", "0"],
  6924. [" infiSTAR.de edit", [-1], "", -5, [], "1", "0"],
  6925. ["Save in DB?", [2], "", -5, [["expression", "[] spawn fn_BCSaveToDb"]], "1", "1"],
  6926. ["Exit", [3], "", -5, [["expression", "[] spawn fn_BCCancelBase"]], "1", "1"]
  6927. ];
  6928. BCMainMenu =
  6929. [
  6930. ["",true],
  6931. ["Base Manager", [-1], "", -5, [], "1", "0"],
  6932. [" by Maca134", [-1], "", -5, [], "1", "0"],
  6933. [" infiSTAR.de edit", [-1], "", -5, [], "1", "0"],
  6934. ["Insert", [2], "", -5, [["expression", "[] spawn fn_BCInsert"]], "1", "1"],
  6935. ["Export", [3], "", -5, [["expression", "[] spawn fn_BCExport"]], "1", "1"],
  6936. ["========", [-1], "", -5, [["expression", ""]], "1", "0"],
  6937. ["Set Center", [4], "", -5, [["expression", "[] spawn fn_BCSetCenter"]], "1", "1"],
  6938. ["Set Radius", [5], "", -5, [["expression", "[] spawn fn_BCSetRadius"]], "1", "1"],
  6939. ["========", [-1], "", -5, [["expression", ""]], "1", "0"],
  6940. ["Copy", [6], "", -5, [["expression", "[] spawn fn_BCCopy"]], "1", "1"],
  6941. ["Paste", [7], "", -5, [["expression", "[] spawn fn_BCPaste"]], "1", "1"],
  6942. ["Save", [7], "#USER:BCBaseSaveMenu", -5, [["expression", ""]], "1", "1"],
  6943. ["Delete", [8], "", -5, [["expression", "[] spawn fn_BCDelete"]], "1", "1"]
  6944. ];
  6945. showcommandingMenu "#USER:BCMainMenu";
  6946. };
  6947. if(isNil 'admin_announce')then{admin_announce = true;};
  6948. fnc_showFoundSearch =
  6949. {
  6950. _foundarray = _this select 0;
  6951. _what = _this select 1;
  6952. inSub = true;
  6953. _ctrl = 2 call getControl;
  6954. _ctrl ctrlSetFont "TahomaB";
  6955. lbclear _ctrl;
  6956. if(_what == "weaponmags")then
  6957. {
  6958. isWep__i_n_f_i_S_T_A_R = true;
  6959. isMag__i_n_f_i_S_T_A_R = true;
  6960. _spwx = "['%1'] spawn adminweapon;";
  6961. _ammo = "[] spawn ammo_current_wpn_admin;";
  6962. _spAx = "['%1'] spawn adminmagazino;";
  6963. adminadd = [];
  6964. call admin_fillsubsss;
  6965. call admin_fillSpawnMenuFILL;
  6966. adminadd = adminadd + ["--- Ammo Current Wep",format[_ammo],"0","0","0","0",[0,0.8,1,1]];
  6967. adminadd = adminadd + [" START SEARCH (type in chat - searching stops when chat is closed)","['weaponmags'] spawn fnc_infiSTAR_search","0","0","0","0",[0,0.8,1,1]];
  6968. {
  6969. adminadd = adminadd + [_x,format[_spwx,_x],"0","0","0","0",[]];
  6970. _mags = getArray (configFile >> 'CfgWeapons' >> _x >> 'magazines');
  6971. {
  6972. adminadd = adminadd + [_x,format[_spAx,_x],"0","0","0","0",[0.8,0.8,0,1]];
  6973. } forEach _mags;
  6974. } forEach _foundarray;
  6975. };
  6976. if(_what == "weapon")then
  6977. {
  6978. isWep__i_n_f_i_S_T_A_R = true;
  6979. _spwx = "['%1'] spawn adminweapon;";
  6980. _ammo = "[] spawn ammo_current_wpn_admin;";
  6981. adminadd = [];
  6982. call admin_fillsubsss;
  6983. call admin_fillSpawnMenuFILL;
  6984. adminadd = adminadd + ["--- Ammo Current Wep",format[_ammo],"0","0","0","0",[0,0.8,1,1]];
  6985. adminadd = adminadd + [" START SEARCH (type in chat - searching stops when chat is closed)","['weapon'] spawn fnc_infiSTAR_search","0","0","0","0",[0,0.8,1,1]];
  6986. {
  6987. adminadd = adminadd + [_x,format[_spwx,_x],"0","0","0","0",[]];
  6988. } forEach _foundarray;
  6989. };
  6990. if(_what == "magazine")then
  6991. {
  6992. isMag__i_n_f_i_S_T_A_R = true;
  6993. _spwx = "['%1'] spawn adminmagazino;";
  6994. _ammo = "[] spawn ammo_current_wpn_admin;";
  6995. adminadd = [];
  6996. call admin_fillsubsss;
  6997. call admin_fillSpawnMenuFILL;
  6998. adminadd = adminadd + ["--- Ammo Current Wep",format[_ammo],"0","0","0","0",[0,0.8,1,1]];
  6999. adminadd = adminadd + [" START SEARCH (type in chat - searching stops when chat is closed)","['magazine'] spawn fnc_infiSTAR_search","0","0","0","0",[0,0.8,1,1]];
  7000. {
  7001. adminadd = adminadd + [_x,format[_spwx,_x],"0","0","0","0",[]];
  7002. } forEach _foundarray;
  7003. };
  7004. if(_what == "adminSNV")then
  7005. {
  7006. isVehicle__i_n_f_i_S_T_A_R = true;
  7007. _spwx = "['%1'] call adminsveh;";
  7008. adminadd = [];
  7009. call admin_fillsubsss;
  7010. call admin_fillSpawnMenuFILL;
  7011. adminadd = adminadd + ["--- NORMAL SPAWN","","0","0","0","0",[0,0.8,1,1]];
  7012. adminadd = adminadd + [" START SEARCH (type in chat - searching stops when chat is closed)","['adminSNV'] spawn fnc_infiSTAR_search","0","0","0","0",[0,0.8,1,1]];
  7013. {
  7014. adminadd = adminadd + [_x,format[_spwx,_x],"0","0","0","0",[]];
  7015. } forEach _foundarray;
  7016. };
  7017. if(_what == "adminSHV")then
  7018. {
  7019. isVehicle__i_n_f_i_S_T_A_R = true;
  7020. _spwx = "['%1'] call adminsvehhive;";
  7021. adminadd = [];
  7022. call admin_fillsubsss;
  7023. call admin_fillSpawnMenuFILL;
  7024. adminadd = adminadd + ["--- HIVE SPAWN","","0","0","0","0",[0,0.8,1,1]];
  7025. adminadd = adminadd + [" START SEARCH (type in chat - searching stops when chat is closed)","['adminSHV'] spawn fnc_infiSTAR_search","0","0","0","0",[0,0.8,1,1]];
  7026. {
  7027. adminadd = adminadd + [_x,format[_spwx,_x],"0","0","0","0",[]];
  7028. } forEach _foundarray;
  7029. };
  7030. if(_what == "adminBuildings")then
  7031. {
  7032. _spwx = "['%1'] call adminsobj;";
  7033. adminadd = [];
  7034. call admin_fillsubsss;
  7035. call admin_fillSpawnMenuFILL;
  7036. adminadd = adminadd + ["--- Buildings","","0","0","0","0",[0,0.8,1,1]];
  7037. adminadd = adminadd + [" START SEARCH (type in chat - searching stops when chat is closed)","['adminBuildings'] spawn fnc_infiSTAR_search","0","0","0","0",[0,0.8,1,1]];
  7038. {
  7039. adminadd = adminadd + [_x,format[_spwx,_x],"0","0","0","0",[]];
  7040. } forEach _foundarray;
  7041. };
  7042. call admin__FILL_MENUS;
  7043. };
  7044. if(isNil 'fnc_inString')then
  7045. {
  7046. fnc_inString = {
  7047. private ['_needle','_haystack','_needleLen','_hay','_found'];
  7048. _needle = _this select 0;
  7049. if(isNil'_needle')exitWith{};
  7050. if(typeName _needle != 'STRING')then{_needle = str _needle;};
  7051. if(_needle == '')exitWith{};
  7052.  
  7053. _haystack = _this select 1;
  7054. if(isNil'_haystack')exitWith{};
  7055. if(typeName _haystack != 'STRING')then{_haystack = str _haystack;};
  7056. if(_haystack == '')exitWith{};
  7057. _haystack = toArray _haystack;
  7058.  
  7059.  
  7060. _needleLen = count toArray _needle;
  7061. _hay = +_haystack;
  7062. _hay resize _needleLen;
  7063. _found = false;
  7064. for '_i' from _needleLen to count _haystack do {
  7065. if(toString _hay == _needle)exitWith {_found = true};
  7066. _hay set [_needleLen, _haystack select _i];
  7067. _hay set [0, 'x'];
  7068. _hay = _hay - ['x']
  7069. };
  7070. _found
  7071. };
  7072. };
  7073. fnc_infiSTAR_search =
  7074. {
  7075. disableSerialization;
  7076. _what = _this select 0;
  7077. _category = '[UNDEFINED VARIABLE]';
  7078. if(_what == 'weapon')then{ALL_TO_SEARCH = ALL_WEPS_TO_SEARCH;_category = 'weapons';};
  7079. if(_what == 'magazine')then{ALL_TO_SEARCH = ALL_MAGS_TO_SEARCH;_category = 'magazines';};
  7080. if(_what == 'adminSNV')then{ALL_TO_SEARCH = ALL_VEHS_TO_SEARCH;_category = 'vehicles';};
  7081. if(_what == 'adminSHV')then{ALL_TO_SEARCH = ALL_VEHS_TO_SEARCH;_category = 'vehicles';};
  7082. if(_what == 'adminBuildings')then{ALL_TO_SEARCH = ALL_OBJ_TO_SEARCH;_category = 'Buildings';};
  7083. if(_what == 'weaponmags')then{ALL_TO_SEARCH = ALL_WEPS_TO_SEARCH+ALL_MAGS_TO_SEARCH;_category = 'weapons & mags';};
  7084. if(!isNil 'fnc_searching_running')exitWith {systemChat format['still searching [%1] - open/close the chat to stop.',_category];};
  7085. fnc_searching_running = true;
  7086.  
  7087. if(!isNull (findDisplay 24))then{
  7088. _text = ctrlText ((findDisplay 24) displayCtrl 101);
  7089. (findDisplay 24) closeDisplay 1;
  7090. if(_text != '')then{
  7091. systemChat format['Searching for [%1] in [%2] started..',_text,_category];
  7092. _foundarray = [];
  7093. _countAll = (count ALL_TO_SEARCH) - 1;
  7094. {
  7095. hintSilent str (_countALL - _forEachIndex);
  7096. if([_text, toLower _x] call fnc_inString)then{
  7097. _foundarray set [count _foundarray, _x];
  7098. };
  7099. } forEach ALL_TO_SEARCH;
  7100. if(count _foundarray >= 1)then{
  7101. systemChat format['searching for [%1] - STOPPED',_category];
  7102. [_foundarray,_what] call fnc_showFoundSearch;
  7103. } else {
  7104. systemChat format['[%1] not found in [%2]..',_text,_category];
  7105. };
  7106. };
  7107. } else {
  7108. systemChat format['[%1] You must type something into the chat to start the search..',_category];
  7109. };
  7110. fnc_searching_running = nil;
  7111. };
  7112. admin_do_this_first =
  7113. {
  7114. infiSTAR_A2_debug = {
  7115. if(isNil 'firstRun_infiSTAR_A2_debug')then
  7116. {
  7117. firstRun_infiSTAR_A2_debug = true;
  7118. systemChat 'infiSTAR.de: Debug best fits with interface size small!';
  7119. };
  7120. private['_this','_igotthis'];
  7121. _settext = '';
  7122. if(!isNil '_this')then
  7123. {
  7124. _igotthis = _this select 0;
  7125. if(typename _igotthis != 'STRING')then{_igotthis = str _igotthis;};
  7126. 'infi5TAR' callExtension _igotthis;
  7127. _settext = _igotthis;
  7128. };
  7129. disableSerialization;
  7130. closeDialog 0;
  7131. if(!dialog)then{createDialog 'RscFunctionsViewer';};
  7132. _ctrl = (findDisplay 2929) displayctrl 292901;
  7133. _ctrl ctrlCommit 0;
  7134. _display = findDisplay 2929;
  7135. _textTitle = _display displayctrl 292905;
  7136. _textPath = _display displayctrl 292906;
  7137. _textDesc = _display displayctrl 292907;
  7138. _textCode = _display displayctrl 292908;
  7139. _btnCopy = _display displayctrl 292909;
  7140. _btnCopy2 = _display displayctrl 292910;
  7141. _btnCopy3 = _display displayctrl 292911;
  7142. _listFunctions = _display displayCtrl 292901;
  7143. _listSources = _display displayCtrl 292902;
  7144. _listTags = _display displayCtrl 292903;
  7145. _listCats = _display displayCtrl 292904;
  7146. _textTitle ctrlShow false;
  7147. _textPath ctrlShow false;
  7148. _textDesc ctrlShow false;
  7149. _btnCopy ctrlShow true;
  7150. _btnCopy2 ctrlShow true;
  7151. _btnCopy3 ctrlShow true;
  7152. _listFunctions ctrlShow false;
  7153. _listSources ctrlShow false;
  7154. _listTags ctrlShow false;
  7155. _listCats ctrlShow false;
  7156. _textCode ctrlSetText _settext;
  7157. _textCode ctrlSetPosition [0, safezoneY + 0.45, 0.75, safezoneH - 1.1];
  7158. _textCode ctrlSetFont 'TahomaB';
  7159. _textCode ctrlSetScale (safezoneH - safezoneW / 2) * 2.2;
  7160. _textCode ctrlCommit 0;
  7161.  
  7162. _btnCopy2 ctrlSetText 'Global';
  7163. _btnCopy2 ctrlSetTextColor [0.1, 0.6, 1, 1];
  7164. _btnCopy2 ctrlSetFont 'Zeppelin33';
  7165. fnc_get_stringGLOBAL =
  7166. {
  7167. _text = ctrlText 292908;
  7168. _text
  7169. };
  7170. _btnCopy2 buttonSetAction '[call fnc_get_stringGLOBAL] spawn admin_d0';
  7171. _btnCopy2 ctrlSetPosition [((ctrlPosition _btnCopy2) select 0), ((ctrlPosition _btnCopy2) select 1)+0.04, (ctrlPosition _btnCopy2) select 2, (ctrlPosition _btnCopy2) select 3];
  7172. _btnCopy2 ctrlCommit 0;
  7173.  
  7174. _btnCopy ctrlSetText 'Server';
  7175. _btnCopy ctrlSetTextColor [0.1, 0.6, 1, 1];
  7176. _btnCopy ctrlSetFont 'Zeppelin33';
  7177. fnc_get_stringSERVER =
  7178. {
  7179. _text = ctrlText 292908;
  7180. _string = format['if(isServer)then{%1};',_text];
  7181. _string
  7182. };
  7183. _btnCopy buttonSetAction '[call fnc_get_stringSERVER] spawn admin_d0';
  7184. _btnCopy ctrlSetPosition [((ctrlPosition _btnCopy) select 0), ((ctrlPosition _btnCopy) select 1)+0.04, (ctrlPosition _btnCopy) select 2, (ctrlPosition _btnCopy) select 3];
  7185. _btnCopy ctrlCommit 0;
  7186.  
  7187. _btnCopy3 ctrlSetText 'Local';
  7188. _btnCopy3 ctrlSetTextColor [0.1, 0.6, 1, 1];
  7189. _btnCopy3 ctrlSetFont 'Zeppelin33';
  7190. _btnCopy3 buttonSetAction '_text = ctrlText 292908;call compile _text;';
  7191. _btnCopy3 ctrlSetPosition [((ctrlPosition _btnCopy3) select 0), ((ctrlPosition _btnCopy3) select 1)+0.04, (ctrlPosition _btnCopy3) select 2, (ctrlPosition _btnCopy3) select 3];
  7192. _btnCopy3 ctrlCommit 0;
  7193. };
  7194. uiSleep 15;
  7195. if(isNil "ALL_WEPS_TO_SEARCH")then
  7196. {
  7197. ALL_WEPS_TO_SEARCH = [];
  7198. _CfgWeapons = configFile >> "CfgWeapons";
  7199. for "_i" from 0 to (count _CfgWeapons)-1 do
  7200. {
  7201. _weapon = _CfgWeapons select _i;
  7202. if(isClass _weapon)then
  7203. {
  7204. _wpn_type = configName _weapon;
  7205. _plx = toArray _wpn_type;
  7206. _plx resize 7;
  7207. _plx;
  7208. _plx = toString _plx;
  7209. if(((_plx != "ItemKey") || (_wpn_type == "ItemKeyKit")) && (_wpn_type != "MineE") && (_wpn_type != "ItemCore"))then
  7210. {
  7211. if((getText(_weapon >> 'displayName') != '') && {getText(_weapon >> 'picture') != ''} && {getNumber(_weapon >> 'scope') in [0,2]})then
  7212. {
  7213. if !(_wpn_type in ALL_WEPS_TO_SEARCH)then
  7214. {
  7215. ALL_WEPS_TO_SEARCH = ALL_WEPS_TO_SEARCH + [_wpn_type];
  7216. };
  7217. };
  7218. };
  7219. };
  7220. };
  7221. };
  7222. if(isNil "ALL_MAGS_TO_SEARCH")then
  7223. {
  7224. ALL_MAGS_TO_SEARCH = [];
  7225. _Cfgmagazines = configFile >> "CfgMagazines";
  7226. for "_i" from 0 to (count _Cfgmagazines)-1 do
  7227. {
  7228. _magazine = _Cfgmagazines select _i;
  7229. if(isClass _magazine)then
  7230. {
  7231. _mag_type = configName(_magazine);
  7232. if((getText(_magazine >> 'displayName') != '') && {getText(_magazine >> 'picture') != ''} && {getNumber(_magazine >> 'scope') in [0,2]} && {!(_mag_type in ['AngelCookies','Skinbase'])})then
  7233. {
  7234. if !(_mag_type in ALL_MAGS_TO_SEARCH)then
  7235. {
  7236. ALL_MAGS_TO_SEARCH = ALL_MAGS_TO_SEARCH + [_mag_type];
  7237. };
  7238. };
  7239. };
  7240. };
  7241. };
  7242. if(isNil "ALL_VEHS_TO_SEARCH")then
  7243. {
  7244. ALL_VEHS_TO_SEARCH = [];
  7245. _cfgvehicles = configFile >> "cfgVehicles";
  7246. for "_j" from 0 to (count _cfgvehicles)-1 do
  7247. {
  7248. _vehicle = _cfgvehicles select _j;
  7249. if(isClass _vehicle)then
  7250. {
  7251. _veh_type = configName _vehicle;
  7252. if((getText(_vehicle >> 'displayName') != '') && {getText(_vehicle >> 'picture') != ''} && {getNumber(_vehicle >> 'scope') in [0,2]} && {((_veh_type isKindOf "Air") || (_veh_type isKindOf "LandVehicle") || (_veh_type isKindOf "Ship"))})then
  7253. {
  7254. if !((_veh_type isKindOf "ParachuteBase") || (_veh_type isKindOf "BIS_Steerable_Parachute"))then
  7255. {
  7256. ALL_VEHS_TO_SEARCH = ALL_VEHS_TO_SEARCH + [_veh_type];
  7257. };
  7258. };
  7259. };
  7260. };
  7261. };
  7262. if(isNil "ALL_OBJ_TO_SEARCH")then
  7263. {
  7264. ALL_OBJ_TO_SEARCH = [];
  7265. _cfgvehicles = configFile >> "cfgVehicles";
  7266. for "_j" from 0 to (count _cfgvehicles)-1 do
  7267. {
  7268. _vehicle = _cfgvehicles select _j;
  7269. if(isClass _vehicle)then
  7270. {
  7271. _veh_type = configName _vehicle;
  7272. if((getText(_vehicle >> 'displayName') != '') && {getText(_vehicle >> 'picture') != ''} && {getNumber(_vehicle >> 'scope') in [0,2]} && {((_veh_type isKindOf "Building") || (_veh_type isKindOf "House"))})then
  7273. {
  7274. ALL_OBJ_TO_SEARCH = ALL_OBJ_TO_SEARCH + [_veh_type];
  7275. };
  7276. };
  7277. };
  7278. ALL_OBJ_TO_SEARCH = ALL_OBJ_TO_SEARCH + ["MAP_LHD_house_1"];
  7279. ALL_OBJ_TO_SEARCH = ALL_OBJ_TO_SEARCH + ["Land_A_Villa_EP1"];
  7280. };
  7281. };
  7282. if(isNil 'admin_dofirst_state')then
  7283. {
  7284. admin_dofirst_state = true;
  7285. [] spawn admin_do_this_first;
  7286. };
  7287. };
Add Comment
Please, Sign In to add comment