Advertisement
Guest User

For you, dear HOPLIT

a guest
May 31st, 2013
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.20 KB | None | 0 0
  1. ADMIN TOOLS MAIN
  2. pathtosky = "admintools\sky\";
  3. pathtotools = "admintools\tools\";
  4. pathtoskins = "admintools\skins\";
  5. pathtoweapon = "admintools\weaponkits\";
  6. pathtoshields = "admintools\shields\";
  7. pathdebug = "debug\";
  8. EXECscript1 = 'player execVM "'+pathtotools+'%1"';
  9. EXECscript2 = 'player execVM "'+pathtoskins+'%1"';
  10. EXECscript3 = 'player execVM "'+pathtoweapon+'%1"';
  11. EXECscript4 = 'player execVM "'+pathtoshields+'%1"';
  12. EXECscript5 = 'player execVM "'+pathtoskins+'%1"';
  13. execdebug = 'player execVM "'+pathdebug+'%1"';
  14. if ((getPlayerUID player) in ["75763462"]) then {
  15. adminmenu =
  16. [
  17. ["",true],
  18. ["Toggle Debug", [2], "", -5, [["expression", format[execdebug,"playerstats.sqf"]]], "1", "1"],
  19. ["Tools Menu", [3], "#USER:ToolsMenu", -5, [["expression", ""]], "1", "1"],
  20. ["Skins Menu", [4], "#USER:SkinsMenu", -5, [["expression", ""]], "1", "1"],
  21. ["Weapon Kits", [5], "#USER:WeaponMenu", -5, [["expression", ""]], "1", "1"],
  22. ["Shields Menu", [6], "#USER:ShieldMenu", -5, [["expression", ""]], "1", "1"],
  23. ["", [-1], "", -5, [["expression", ""]], "1", "0"],
  24. ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
  25.  
  26. ];} else {
  27. adminmenu =
  28. [
  29. ["",true],
  30. ["Toggle Debug", [2], "", -5, [["expression", format[execdebug,"playerstats.sqf"]]], "1", "1"],
  31. ["", [-1], "", -5, [["expression", ""]], "1", "0"],
  32. ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
  33. ];
  34. };
  35.  
  36. ToolsMenu =
  37. [
  38. ["",true],
  39. ["ESP / Tele", [2], "", -5, [["expression", format[EXECscript1,"dayzesp.sqf"]]], "1", "1"],
  40. ["God Mode", [3], "", -5, [["expression", format[EXECscript1,"Godmode.sqf"]]], "1", "1"],
  41. ["Car God", [4], "", -5, [["expression", format[EXECscript1,"cargod.sqf"]]], "1", "1"],
  42. ["Heal Player(s)", [5], "", -5, [["expression", format[EXECscript1,"healp.sqf"]]], "1", "1"],
  43. ["Look-N-Repair", [6], "", -5, [["expression", format[EXECscript1,"looknrepair.sqf"]]], "1", "1"],
  44. ["Repair Buildings", [7], "", -5, [["expression", format[EXECscript1,"fixbuildings.sqf"]]], "1", "1"],
  45. ["Spectate Player", [8], "", -5, [["expression", format[EXECscript1,"spectate.sqf"]]], "1", "1"],
  46. ["", [-1], "", -5, [["expression", ""]], "1", "0"],
  47. ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
  48. ];
  49.  
  50. SkinsMenu =
  51. [
  52. ["",true],
  53. ["Hero", [2], "", -5, [["expression", format[EXECscript2,"Hero.sqf"]]], "1", "1"],
  54. ["Camo", [3], "", -5, [["expression", format[EXECscript2,"Camo.sqf"]]], "1", "1"],
  55. ["Ghillie", [4], "", -5, [["expression", format[EXECscript2,"Ghille.sqf"]]], "1", "1"],
  56. ["Suvivor", [5], "", -5, [["expression", format[EXECscript2,"Male.sqf"]]], "1", "1"],
  57. ["Soldier", [6], "", -5, [["expression", format[EXECscript2,"Soldier.sqf"]]], "1", "1"],
  58. ["invisible", [7], "", -5, [["expression", format[EXECscript2,"invisible.sqf"]]], "1", "1"],
  59. ["", [-1], "", -5, [["expression", ""]], "1", "0"],
  60. ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
  61. ];
  62.  
  63. WeaponMenu =
  64. [
  65. ["",true],
  66. ["No Weapons", [2], "", -5, [["expression", format[EXECscript3,"items.sqf"]]], "1", "1"],
  67. ["M4 Holo", [3], "", -5, [["expression", format[EXECscript3,"itemz.sqf"]]], "1", "1"],
  68. ["M4 CCO SD", [4], "", -5, [["expression", format[EXECscript3,"itemz2.sqf"]]], "1", "1"],
  69. ["AS50", [5], "", -5, [["expression", format[EXECscript3,"itemz3.sqf"]]], "1", "1"],
  70. ["FN FAL", [6], "", -5, [["expression", format[EXECscript3,"itemz4.sqf"]]], "1", "1"],
  71. ["M16 ACOG", [7], "", -5, [["expression", format[EXECscript3,"itemz5.sqf"]]], "1", "1"],
  72. ["Pecheneg 50 cal", [8], "", -5, [["expression", format[EXECscript3,"itemz6.sqf"]]], "1", "1"],
  73. ["Mk 48", [9], "", -5, [["expression", format[EXECscript3,"item7.sqf"]]], "1", "1"],
  74. ["Gold AK", [10], "", -5, [["expression", format[EXECscript3,"item8.sqf"]]], "1", "1"],
  75. ["", [-1], "", -5, [["expression", ""]], "1", "0"],
  76. ["Next page", [12], "#USER:WeaponMenu2", -5, [["expression", ""]], "1", "1"],
  77. ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
  78. ];
  79. WeaponMenu2 =
  80. [
  81. ["",true],
  82. ["Aks Kobra", [2], "", -5, [["expression", format[EXECscript3,"item9.sqf"]]], "1", "1"],
  83. [".338 LAPUA", [3], "", -5, [["expression", format[EXECscript3,"item10.sqf"]]], "1", "1"],
  84. ["DMR", [4], "", -5, [["expression", format[EXECscript3,"item11.sqf"]]], "1", "1"],
  85. ["M4A1 HWS GL SD Camo", [5], "", -5, [["expression", format[EXECscript3,"item12.sqf"]]], "1", "1"],
  86. ["M14 Aim", [6], "", -5, [["expression", format[EXECscript3,"item13.sqf"]]], "1", "1"],
  87. ["Alice", [7], "", -5, [["expression", format[EXECscript3,"bp2.sqf"]]], "1", "1"],
  88. ["Coyote", [8], "", -5, [["expression", format[EXECscript3,"bp1.sqf"]]], "1", "1"],
  89. ["Delete gear", [9], "", -5, [["expression", format[EXECscript3,"cleanme.sqf"]]], "1", "1"],
  90. ["", [-1], "", -5, [["expression", ""]], "1", "0"],
  91. ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
  92. ];
  93.  
  94. ShieldMenu =
  95. [
  96. ["",true],
  97. ["Zombie Shield", [2], "", -5, [["expression", format[EXECscript4,"zombieshield.sqf"]]], "1", "1"],
  98. ["", [-1], "", -5, [["expression", ""]], "1", "0"],
  99. ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
  100. ];
  101.  
  102. SkyMenu =
  103. [
  104. ["",true],
  105.  
  106. ["Clear contrast", [2], "", -5, [["expression", format[EXECscript6 ,"1.sqf"]]], "1", "1"],
  107. ["Wasteland", [2], "", -5, [["expression", format[EXECscript6 ,"2.sqf"]]], "1", "1"],
  108. ["Dark draining", [2], "", -5, [["expression", format[EXECscript6 ,"3.sqf"]]], "1", "1"],
  109. ["Sandy", [2], "", -5, [["expression", format[EXECscript6 ,"4.sqf"]]], "1", "1"],
  110. ["Sumer Chernarus", [2], "", -5, [["expression", format[EXECscript6 ,"5.sqf"]]], "1", "1"],
  111. ["Dog Vision", [2], "", -5, [["expression", format[EXECscript6 ,"6.sqf"]]], "1", "1"],
  112. ["Tropical", [2], "", -5, [["expression", format[EXECscript6 ,"7.sqf"]]], "1", "1"],
  113. ["", [-1], "", -5, [["expression", ""]], "1", "0"],
  114. ["Next page", [12], "#USER:SkyMenu2", -5, [["expression", ""]], "1", "1"],
  115. ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
  116. ];
  117. SkyMenu2 =
  118. [
  119. ["",true],
  120.  
  121. ["Photo", [2], "", -5, [["expression", format[EXECscript6 ,"8.sqf"]]], "1", "1"],
  122. ["WarZone", [2], "", -5, [["expression", format[EXECscript6 ,"9.sqf"]]], "1", "1"],
  123. ["Operation Flashpoint", [2], "", -5, [["expression", format[EXECscript6 ,"10.sqf"]]], "1", "1"],
  124. ["Africa", [2], "", -5, [["expression", format[EXECscript6 ,"11.sqf"]]], "1", "1"],
  125. ["Blue", [2], "", -5, [["expression", format[EXECscript6 ,"12.sqf"]]], "1", "1"],
  126. ["Arma mission colours", [2], "", -5, [["expression", format[EXECscript6 ,"13.sqf"]]], "1", "1"],
  127. ["Heavy Colour Correction", [2], "", -5, [["expression", format[EXECscript6 ,"14.sqf"]]], "1", "1"],
  128. ["Zombie View", [2], "", -5, [["expression", format[EXECscript6 ,"15.sqf"]]], "1", "1"],
  129. ["", [-1], "", -5, [["expression", ""]], "1", "0"],
  130. ["Next page", [12], "#USER:SkyMenu2", -5, [["expression", ""]], "1", "1"],
  131. ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
  132. ];
  133. showCommandingMenu "#USER:adminmenu";
  134.  
  135. DEBUG\PLAYERSTATS
  136.  
  137. //Let Zeds know
  138. [player,4,true,(getPosATL player)] spawn player_alertZombies;
  139.  
  140. if (isnil ("hotkey_hitme")) then {
  141. hotkey_hitme = 0;
  142. };
  143. if (hotkey_hitme == 1) then {
  144. hotkey_hitme = 0;
  145. titleText ["Debug Monitor Deactivated","PLAIN DOWN"];titleFadeOut 2;
  146. } else {
  147. hotkey_hitme = 1;
  148. titleText ["Debug Monitor Activated","PLAIN DOWN"];titleFadeOut 2;
  149. };
  150.  
  151. /*
  152. Change the UID's below to match those of you and your admin(s)
  153. Your admins will get the advanced version of your debug monitor,
  154. while your regular users will get the cut down version.
  155. */
  156.  
  157. if ((getPlayerUID player) in ["75763462"]) then {
  158. while {sleep 1;hotkey_hitme == 1} do {
  159. hintSilent parseText format ["
  160. <t size='0.95' font='Bitstream' align='left' >[%18]</t><t size='0.95' font='Bitstream' align='right'>[FPS: %10]</t><br/>
  161. <t size='0.95' font='Bitstream' align='center' color='#FFBF00'>Survived %7 Days</t><br/>
  162. <t size='0.95' font='Bitstream' align='left' >Players: %8</t><t size='0.95 'font='Bitstream' align='right'>Within 500m: %11</t><br/>
  163. <t size='0.95' font='Bitstream' align='left' >Vehicles:</t><t size='0.95' font='Bitstream'align='right'>%13(%14)</t><br/>
  164. <t size='0.95' font='Bitstream' align='left'>Air: %16</t><t size='0.95' font='Bitstream'align='right'>Sea: %23</t><br/>
  165. <t size='0.95' font='Bitstream' align='left' >All Bikes: %15</t><t size='0.95' font='Bitstream'align='right'>Cars: %17</t><br/>
  166. <t size='0.95' font='Bitstream' align='left' >Zombies (alive/total): </t><t size='0.95' font='Bitstream' align='right'>%20(%19)</t><br/>
  167. <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Zombies Killed: </t><t size='0.95' font='Bitstream' align='right'>%2</t><br/>
  168. <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Headshots: </t><t size='0.95' font='Bitstream' align='right'>%3</t><br/>
  169. <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='0.95' font='Bitstream' align='right'>%4</t><br/>
  170. <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='0.95' font='Bitstream' align='right'>%5</t><br/>
  171. <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Humanity: </t><t size='0.95' font='Bitstream' align='right'>%6</t><br/>
  172. <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Blood: </t><t size='0.95' font='Bitstream' align='right'>%9</t><br/>
  173. <t size='0.95' font='Bitstream' align='left' >GPS: %22</t><t size='0.95' font='Bitstream' align='right'>DIR: %24</t><br/>
  174. <t size='0.95'font='Bitstream'align='center' >%21</t><br/>",
  175. (name player),
  176. (player getVariable['zombieKills', 0]),
  177. (player getVariable['headShots', 0]),
  178. (player getVariable['humanKills', 0]),
  179. (player getVariable['banditKills', 0]),
  180. (player getVariable['humanity', 0]),
  181. (dayz_skilllevel),
  182. (count playableUnits),
  183. r_player_blood,
  184. (round diag_fps),
  185. (({isPlayer _x} count (getPos vehicle player nearEntities [["AllVehicles"], 500]))-1),
  186. viewdistance,
  187. (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),
  188. count vehicles,
  189. (count([6800, 9200, 0] nearEntities [["Motorcycle"],25000])),
  190. (count([6800, 9200, 0] nearEntities [["Air"],25000])),
  191. (count([6800, 9200, 0] nearEntities [["Car"],25000])),
  192. (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName')),
  193. (count entities "zZombie_Base"),
  194. ({alive _x} count entities "zZombie_Base"),
  195. (getPosASL player),
  196. (mapGridPosition getPos player),
  197. (count([6800, 9200, 0] nearEntities [["Ship"],25000])),
  198. (round(getDir player))
  199. ];
  200. };
  201. } else {
  202.  
  203. while {sleep 1;hotkey_hitme == 1} do {
  204.  
  205. hintSilent parseText format ["
  206. <t size='1.20' font='Bitstream' align='center' color='#00CC00'>%1</t><br/>
  207. <t size='0.95' font='Bitstream' align='center' >[%11]</t><br/>
  208. <t size='1.15' font='Bitstream' align='center' color='#FFCC00'>Survived %7 Days</t><br/><br/>
  209. <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Zombies Killed: </t><t size='1.15' font='Bitstream' align='right'>%2</t><br/>
  210. <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Headshots: </t><t size='1.15' font='Bitstream' align='right'>%3</t><br/>
  211. <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='0.95' font='Bitstream' align='right'>%4</t><br/>
  212. <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='0.95' font='Bitstream' align='right'>%5</t><br/>
  213. <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Humanity: </t><t size='1.15' font='Bitstream' align='right'>%6</t><br/><br/>
  214. <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Blood: </t><t size='1.15' font='Bitstream' align='right'>%10</t><br/>
  215. <t size='1.15' font='Bitstream' color='#5882FA'>Big Baller Dayz</t><br/>",
  216. (name player),
  217. (player getVariable['zombieKills', 0]),
  218. (player getVariable['headShots', 0]),
  219. (player getVariable['humanKills', 0]),
  220. (player getVariable['banditKills', 0]),
  221. (player getVariable['humanity', 0]),
  222. (dayz_skilllevel),
  223. (count entities "zZombie_Base"),
  224. ({alive _x} count entities "zZombie_Base"),
  225. r_player_blood,
  226. (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName'))
  227. ];};};
  228.  
  229. INIT.SQF
  230.  
  231. /*
  232. INITILIZATION
  233. */
  234. startLoadingScreen ["","RscDisplayLoadCustom"];
  235. cutText ["","BLACK OUT"];
  236. enableSaving [false, false];
  237.  
  238. //REALLY IMPORTANT VALUES
  239. dayZ_instance = 3011; //The instance
  240. dayzHiveRequest = [];
  241. initialized = false;
  242. dayz_previousID = 0;
  243.  
  244. //disable greeting menu
  245. player setVariable ["BIS_noCoreConversations", true];
  246. //disable radio messages to be heard and shown in the left lower corner of the screen
  247. //enableRadio false;
  248.  
  249. //Load in compiled functions
  250. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  251. progressLoadingScreen 0.1;
  252. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  253. progressLoadingScreen 0.2;
  254. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  255. progressLoadingScreen 0.4;
  256. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
  257. progressLoadingScreen 1.0;
  258.  
  259. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  260. playerstats = compile preprocessFileLineNumbers "debug\playerstats.sqf";
  261.  
  262. if ((!isServer) && (isNull player) ) then
  263. {
  264. waitUntil {!isNull player};
  265. waitUntil {time > 3};
  266. };
  267.  
  268. if ((!isServer) && (player != player)) then
  269. {
  270. waitUntil {player == player};
  271. waitUntil {time > 3};
  272. };
  273.  
  274. if (isServer) then {
  275. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  276. };
  277.  
  278. if (!isDedicated) then {[] execVM "Scripts\kh_actions.sqf";
  279. //Conduct map operations
  280. 0 fadeSound 0;
  281. waitUntil {!isNil "dayz_loadScreenMsg"};
  282. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  283.  
  284. //Run the player monitor
  285. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  286. _playerMonitor = [] execFSM "admintools\player_monitor.fsm"
  287. };
  288. [] execVM "admintools\Activate.sqf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement