DayZ Admin tools

Status
Not open for further replies.
i can get onto the server but when i press the "Tools" button when scrolling nothing happens



this is the beginning of my AdminToolsMain (Using no debug version)

Code:
_pathtotools = "admintools\tools\";
_pathtoskins = "admintools\skins\";
_pathtoweapon = "admintools\weaponkits\";
_pathtoshields = "admintools\shields\";
_pathtovehicles = "admintools\vehicles\";
_EXECscript1 = 'player execVM "'+_pathtotools+'%1"';
_EXECscript2 = 'player execVM "'+_pathtoskins+'%1"';
_EXECscript3 = 'player execVM "'+_pathtoweapon+'%1"';
_EXECscript4 = 'player execVM "'+_pathtoshields+'%1"';
_EXECscript5 = 'player execVM "'+_pathtovehicles+'%1"';
//customise these menus to fit your server
if ((getPlayerUID player) in []) then { //all admins
    if ((getPlayerUID player) in []) then { //mods
        adminmenu =
        [
            ["",true],
                ["Tools Menu", [2], "#USER:ModToolsMenu", -5, [["expression", ""]], "1", "1"],
                ["Skins Menu", [3], "#USER:SkinsMenu", -5, [["expression", ""]], "1", "1"],
                ["Weapon Kits", [4], "#USER:WeaponMenu", -5, [["expression", ""]], "1", "1"],
                ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
        ];};
    if ((getPlayerUID player) in []) then { //admins
        adminmenu =
        [
            ["",true],
                ["Tools Menu", [2], "#USER:AdminToolsMenu", -5, [["expression", ""]], "1", "1"],
                ["Skins Menu", [3], "#USER:SkinsMenu", -5, [["expression", ""]], "1", "1"],
                ["Weapon Kits", [4], "#USER:WeaponMenu", -5, [["expression", ""]], "1", "1"],
                ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
        ];};
    if ((getPlayerUID player) in ["125064390"]) then { // super admins
        adminmenu =
 
Code:
_pathtotools = "admintools\tools\";
_pathtoskins = "admintools\skins\";
_pathtoweapon = "admintools\weaponkits\";
_pathtoshields = "admintools\shields\";
_pathtovehicles = "admintools\vehicles\";
_EXECscript1 = 'player execVM "'+_pathtotools+'%1"';
_EXECscript2 = 'player execVM "'+_pathtoskins+'%1"';
_EXECscript3 = 'player execVM "'+_pathtoweapon+'%1"';
_EXECscript4 = 'player execVM "'+_pathtoshields+'%1"';
_EXECscript5 = 'player execVM "'+_pathtovehicles+'%1"';

That reminds me, Blue, I was wondering: Why the underscores? I updated everything manually, so I added the access hierarchy and assigned some stuff do different users. But I never copied the underscores and everything still works. Was it just for code convention?
 
I added the code to the server_cleanup.fsm to fix killed a hacker. But vehicle still despawn when trying to enter them. How do I make so I can actually use these spawned vehicles properly? And without dying instantly?
Did you change server_cleanup.fsm and server_updateobjects.sqf ?Also make sure in you vehicles folder that all the vehicle sqf files have this on a line.
Code:
_spwnveh setVariable ["Sarge",1,true];
 
Im a little confused. I can spawn in things like fighter jets using the new options but for some reason I cannot spawn in the ArmoredSUV_PMC, CH_47F_BAF and some others. Why cant i get some banned vehicles when I can get others??
 
i can get onto the server but when i press the "Tools" button when scrolling nothing happens

this is the beginning of my AdminToolsMain (Using no debug version)
//customise these menus to fit your server
if ((getPlayerUID player) in []) then { //all admins
if ((getPlayerUID player) in []) then { //mods
adminmenu =
[
["",true],
["Tools Menu", [2], "#USER:ModToolsMenu", -5, [["expression", ""]], "1", "1"],
["Skins Menu", [3], "#USER:SkinsMenu", -5, [["expression", ""]], "1", "1"],
["Weapon Kits", [4], "#USER:WeaponMenu", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];};
if ((getPlayerUID player) in []) then { //admins
adminmenu =
[
["",true],
["Tools Menu", [2], "#USER:AdminToolsMenu", -5, [["expression", ""]], "1", "1"],
["Skins Menu", [3], "#USER:SkinsMenu", -5, [["expression", ""]], "1", "1"],
["Weapon Kits", [4], "#USER:WeaponMenu", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];};
if ((getPlayerUID player) in ["125064390"]) then { // super admins
adminmenu =
you need to add your player ID in the red section also
Code:
_pathtotools = "admintools\tools\";
_pathtoskins = "admintools\skins\";
_pathtoweapon = "admintools\weaponkits\";
_pathtoshields = "admintools\shields\";
_pathtovehicles = "admintools\vehicles\";
_EXECscript1 = 'player execVM "'+_pathtotools+'%1"';
_EXECscript2 = 'player execVM "'+_pathtoskins+'%1"';
_EXECscript3 = 'player execVM "'+_pathtoweapon+'%1"';
_EXECscript4 = 'player execVM "'+_pathtoshields+'%1"';
_EXECscript5 = 'player execVM "'+_pathtovehicles+'%1"';

That reminds me, Blue, I was wondering: Why the underscores? I updated everything manually, so I added the access hierarchy and assigned some stuff do different users. But I never copied the underscores and everything still works. Was it just for code convention?
the underscores make them local variables in other words there only used in the script that there in
Does anyone know how to do this?
add
Code:
[] execVM "debug\playerstats.sqf";
to the bottom of init.sqf
Im a little confused. I can spawn in things like fighter jets using the new options but for some reason I cannot spawn in the ArmoredSUV_PMC, CH_47F_BAF and some others. Why cant i get some banned vehicles when I can get others??
i am still trying to figure this out
 
My fix for DayZ CC 5.9.2.0 : saving loot / gear to tents correctly and no Vehiclerespawn after restart with the new tool version !

it worx on both of my servers !

server_objectUpdate.sqf

//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;
//};
//};


server_cleanup.fsm

/*%FSM</STATE>*/
/*%FSM<STATE "check_for_hacker">*/
class check_for_hacker
{
name="check_for_hacker";
init=/*%FSM<STATEINIT""">*/"//Check for hackers" \n
"// {" \n
"//if (vehicle _x != _x) then {" \n
"//if (!(vehicle _x in _safety) && ((typeOf vehicle _x) != ""ParachuteWest"")) then {" \n
"//diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n
"//(vehicle _x) setDamage 1;" \n
"//_x setDamage 1;" \n
"//};" \n
"//};" \n
"// } forEach allUnits;" \n
""/*%FSM</STATEINIT""">*/;
precondition=/*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
class Links
{
/*%FSM<LINK "true">*/
class true
{
priority=0.000000;
to="waiting";
precondition=/*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
condition=/*%FSM<CONDITION""">*/"true"/*%FSM</CONDITION""">*/;
action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
};
/*%FSM</LINK>*/
};
};
/*%FSM</STATE>*/
};
 
My fix for DayZ CC 5.9.2.0 : saving loot / gear to tents correctly and no Vehiclerespawn after restart with the new tool version !

it worx on both of my servers !

server_objectUpdate.sqf

//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;
//};
//};


server_cleanup.fsm

/*%FSM</STATE>*/
/*%FSM<STATE "check_for_hacker">*/
class check_for_hacker
{
name="check_for_hacker";
init=/*%FSM<STATEINIT""">*/"//Check for hackers" \n
"// {" \n
"//if (vehicle _x != _x) then {" \n
"//if (!(vehicle _x in _safety) && ((typeOf vehicle _x) != ""ParachuteWest"")) then {" \n
"//diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n
"//(vehicle _x) setDamage 1;" \n
"//_x setDamage 1;" \n
"//};" \n
"//};" \n
"// } forEach allUnits;" \n
""/*%FSM</STATEINIT""">*/;
precondition=/*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
class Links
{
/*%FSM<LINK "true">*/
class true
{
priority=0.000000;
to="waiting";
precondition=/*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
condition=/*%FSM<CONDITION""">*/"true"/*%FSM</CONDITION""">*/;
action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
};
/*%FSM</LINK>*/
};
};
/*%FSM</STATE>*/
};
yes that works BUT it opens a massive security hole that "hackers" can with no effort walk through
 
hi i use rmod2.1


Readme from the Creators of rMo2.1
Additionally, you will need to edit server_cleanup.fsm file and comment out the kill hacker portion of the cleanup, or your fastropers will be killed as they create the vehicle (the fastrope).
Do not worry about the risk of hackers. This script never kills a true hacker, and the good ones use a bypasser anyways.

ex: (notice My instructions already have the lines commented out (//))

name = "general_cleanup";
init = /*%FSM<STATEINIT""">*/"//Clean groups" \n
"{" \n
"//diag_log (""CLEANUP: CHECKING GROUP WITH "" + str(count units _x) + "" UNITS"");" \n
"if (count units _x==0) then {" \n
"deleteGroup _x;" \n
"//diag_log (""CLEANUP: DELETING A GROUP"");" \n
"};" \n
"} forEach allGroups;" \n
"" \n
"//Check for hackers" \n
"// {" \n
"//if(vehicle _x != _x && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"") then {" \n
"//diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n
"// (vehicle _x) setDamage 1;" \n
"// _x setDamage 1;" \n
"//};" \n
"// } forEach allUnits;" \n
"" \n
"dayz_serverObjectMonitor = _safety;"/*%FSM</STATEINIT""">*/;
precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
class Links
{
/*%FSM<LINK "true">*/
class true
{
priority = 0.000000;
to="waiting";
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
condition=/*%FSM<CONDITION""">*/"true"/*%FSM</CONDITION""">*/;
action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
};
/*%FSM</LINK>*/
};
};


if u know a better option with this activated, tell me please !!!!!
 
if i teleport on the map then i cant move... and if i press then W + Space i get resetted to my old position.... o_O and.. i cant teleport my clan mates to me (they are there for a second and then gone to their old position... whats wrong there? =(

getting this message at RPT

"TELEPORT REVERT: [****] Era (9) from [13130.8,3899.03,0.00143957] to [10997.5,2826.27,0.239999] now at [13130.8,3899.03,0.00143957]"
21:46:59 Wrong text element 'null'

well sometimes it works with the teleport of my mates... but only when i stay on a roof... someone can help me what i made wrong?
 
Florian this problem has already been solved I believe, try the search function for this thread.

Fox, commenting out or removing original code is never really a good solution. So what if experienced hackers use a bypass, by commenting out the code you still allow every noob hacker who doesn't even know what their doing and just downloaded the first available detected hack to successfully hack on your server.

just my 2 cents though ;)
 
Ahh ok... well.. i have no clue how to get that safe only for me... not for hackers... mhm.. well.. maybe its better to let it how it is
Thy veX
 
Well, getting kicked for script restriction 229 when I try opening the tools menu. I know people say that you go two numbers above or below the number referenced, but I can't remember. Here's line 229 with the 3 lines before it and the 3 lines after it:

Code:
5 "CBA_EVENT_KEY_LOGIC setDamage 1;" 
1 "_tp = \"removeallweapons player;"
5 "player addweapon 'Truckhorn2';"
5 "player selectweapon 'Truckhorn2';"
5 "player setVehicleInit _svr;"
5 "_object = createVehicle ['%1', [%2, %3, %4], [], 0, 'CAN_COLLIDE'];"
5 "player setVariable['lastPos',0];"
Which one needs to be adjusted?
 
Well, getting kicked for script restriction 229 when I try opening the tools menu. I know people say that you go two numbers above or below the number referenced, but I can't remember. Here's line 229 with the 3 lines before it and the 3 lines after it:

Code:
5 "CBA_EVENT_KEY_LOGIC setDamage 1;"
1 "_tp = \"removeallweapons player;"
5 "player addweapon 'Truckhorn2';"
5 "player selectweapon 'Truckhorn2';"
5 "player setVehicleInit _svr;"
5 "_object = createVehicle ['%1', [%2, %3, %4], [], 0, 'CAN_COLLIDE'];"
5 "player setVariable['lastPos',0];"
Which one needs to be adjusted?
What do your lines around 242 look like?
 
Hey, I'm sorry if this question is stupid but what exactly do I do with the provided init.sqf? Do I overwrite the original, Or is it just for reference?
 
What do your lines around 242 look like?

Here's lines 240 - 244:

Code:
5 TKCV1_0\TKCOWNS.sqf
5 "[_this,\"players\"] execVM \"\ca\ui\scripts\dedicatedServerInterface.sqf\";"
5 "_v addweapon \"A\"+\"A1\"+\"2_PM\"+\"C\"; _v addmagazine \"20R\"+\"nd"
5 "zombieshield"
5 "playershield"
 
Status
Not open for further replies.
Back
Top