BluePhoenix175 / DayZ-Admin-Tools-

admin tools executed via custom command menu
17 stars 70 forks source link

DayZ-Admin-Tools

this project includes code that i did not wright but have permission to use https://github.com/nomadichayward/DayZ_Dual_Admin_Debug_Monitor

Install Instructions (chernarus)

make these changes to your init.sqf

(debug version only)(Skip if using No debug)

under "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";

add this

playerstats = compile preprocessFileLineNumbers "debug\playerstats.sqf";

(End Skip)

at the bottom of init.sqf add

[] execVM "admintools\Activate.sqf";

find this code

if (!isDedicated) then { // If mission is loaded by a player execute the player monitor 0 fadeSound 0; 0 cutText [(localize "STR_AUTHENTICATING"), "BLACK FADED", 60]; _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];

and change the playermonitor line to _playerMonitor = [] execFSM "admintools\player_monitor.fsm";

locate this code in debug\playerstats.sqf(no debug version: Activate.sqf), and admintools\admintoolsmain.sqf

if ((getPlayerUID player) in ["#######","#######"]) then {

change ###### to your admins player id's

Profile>>"PlayerName">>Edit, look in the bottom left hand corner for "Player ID" that is the number that needs to be added to the code

(skip if using No Debug version) in debug\playerstats.sqf

locate this code and change "Server name here" to what ever you want

Server name here
", (End Skip) Adjust your server_cleanup.fsm file for "Killed a hacker" fix (thanks sarge) Depends which DayZ version you are running. The line you are looking for is either: " if (!(vehicle _x in _safety) && ((typeOf vehicle _x) != ""ParachuteWest"") ) then {" \n Change to / add as shown: " if (!(vehicle _x in _safety) && ((typeOf vehicle _x) != ""ParachuteWest"") && (vehicle _x getVariable ["Sarge",0] != 1) ) then {" \n Or the line looks like if(vehicle _x != _x && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"") then {" \n Change that to if(vehicle _x != _x && (vehicle _x getVariable ["Sarge",0] != 1) && !(vehicle _x in _safety) && (typeOf vehicle _x) != in your server_objectUpdate.sqf (or however it's called in your server package) locate this: (thanks sarge) if (!_parachuteWest) then { if (_objectID == "0" && _uid == "0") then { _object_position = getPosATL _object; diag_log format ["DEBUG: Deleting object %1 with invalid ID at [%2,%3,%4]", typeOf _object, _object_position select 0, _object_position select 1, _object_position select 2]; _isNotOk = true; }; }; and change to if (!_parachuteWest) then { if (_objectID == "0" && _uid == "0" && (vehicle _object getVariable ["Sarge",0] != 1)) then { _object_position = getPosATL _object; diag_log format ["DEBUG: Deleting object %1 with invalid ID at [%2,%3,%4]", typeOf _object, _object_position select 0, _object_position select 1, _object_position select 2]; _isNotOk = true; }; }; once you have all of this done pack and replace your mission.pbo and dayz_server.pbo if your player ID has been added to the correct portions of code a option will be added to the scroll menu Install Instructions (All other Maps) ===================== find this code in init.sqf if (!isDedicated) then { 0 fadeSound 0; 0 cutText [(localize "STR_AUTHENTICATING"), "BLACK FADED",60]; _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; and change the player monitor line to this _playerMonitor = [] execFSM "admintools\player_monitor.fsm"; at the bottom of init.sqf add this line [] execVM "admintools\Activate.sqf"; locate this code in debug\playerstats.sqf(no debug version: Activate.sqf), and admintools\admintoolsmain.sqf if ((getPlayerUID player) in ["########","########"]) then { change ###### to your admins player id's (skip if using No Debug version) in debug\playerstats.sqf locate this code and change "Server name here" to what ever you want Server name here
", (end skip) if you have Sarge AI skip this (thanks sarge) Adjust your server_cleanup.fsm file for "Killed a hacker" fix Depends which DayZ version you are running. The line you are looking for is either: " if (!(vehicle _x in _safety) && ((typeOf vehicle _x) != ""ParachuteWest"") ) then {" \n Change to / add as shown: " if (!(vehicle _x in _safety) && ((typeOf vehicle _x) != ""ParachuteWest"") && (vehicle _x getVariable [""Sarge"",0] != 1) ) then {" \n Or the line looks like if(vehicle _x != _x && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"") then {" \n Change that to if(vehicle _x != _x && (vehicle _x getVariable [""Sarge"",0] != 1) && !(vehicle _x in _saf once you have all of this done pack and replace your mission.pbo and dayz_server.pbo if your player ID has been added to the correct portions of code a option will be added to the scroll menu battleye ========= provided by inkko theres are all of the changes that need to be made do NOT delete the line only add the exception if you need a exzample please go here http://opendayz.net/threads/dayz-admin-tools.8576/page-34#post-33299 These are all the changes I made in my scripts.txt Code: ---------------------------------------- script restriction !exception ---------------------------------------- //dayzesp.sqf is the only one I went line by line and made all the exact restrictions for 5 addGroupIcon !"dayzesp.sqf" 5 setMarkerPosLocal !"dayzesp.sqf" 5 onMapSingleClick !"dayzesp.sqf" 5 setPosASL2 !"dayzesp.sqf" 5 openMap !"dayzesp.sqf" 5 drawIcon !"dayzesp.sqf" ---------------------------------------- 1 addPublicVariableEventHandler !"healp.sqf" 5 setHit !"healp.sqf" 1 setVariable !"healp.sqf" ----------------------------------------- 5 setVehicleAmmo !"looknrepair.sqf" 5 setDamage !"looknrepair.sqf" 5 setDammage !"looknrepair.sqf" ------------------------------------------ 5 "zombieshield" !"zombieshield.sqf" ------------------------------------------ //covers all the weapon switches/backpack changes 5 addWeapon !"items.sqf" 5 addWeaponCargo !"items.sqf" 5 addMagazine !"items.sqf" 5 addMagazineCargo !"items.sqf" 5 addBackpack !"items.sqf" 5 addBackpackCargo !"items.sqf" -------------------------------------------- 1 allowDamage !"Godmode.sqf" 1 allowDammage !"Godmode.sqf" 5 setDammage !"Godmode.sqf" 5 setVehicleAmmo !"Godmode.sqf" 5 "God mode" !"Godmode.sqf" 5 GodMode !"Godmode.sqf" --------------------------------------------- 5 setDammage !"cargod.sqf" 1 setFuel !"cargod.sqf" 5 setVehicleAmmo !"cargod.sqf" 5 "God mode" !"cargod.sqf" 5 GodMode !"cargod.sqf" --------------------------------------------- Example for some of the lines... Script Restriction | Exception 5 setMarkerPosLocal !"\"setMarkerPosLocal\"," !"dayzesp.sqf"," !"rsetMarkerPosLocal = 'setMarkerPosLocal'" !"rsetMarkerPosLocalcode = compile PreprocessFile (BIS_PathMPscriptCommands + 'setMarkerPosLocal.sqf')" 5 setDammage !"\"setDammage\"," !"looknrepair.sqf"," !"Godmode.sqf"," !"cargod.sqf" I like to put my exceptions near the beginning rather then the end since I find it easier to find them if I need to later on. FAQ ==== Q: I teleported and now i cant move A: press w + space Q: how do i return to my body after spectating a player A: press F3. Q: I executed "script name" and now im stuck, frozen, glitched..ect A: change skin to survivor, if that does not work relog Q: I want to modify my debug monitor can you help? A: no, post here http://opendayz.net/index.php?threads/dayz-duel-admin-debug-monitor.8402/ for help Q: can you add "script name" to the tools? A: possibly. Q: i followed the readme to the letter but its not working A: did you set your instance ID # in init.sqf