DayZ Admin tools

Status
Not open for further replies.
Hey, thanks for your response.

Could you explain a little bit further how it would work? Do i write it like this? Should i just paste all the code from the AdminToolsMain.sqf in where i wrote <all the admintools code here> for superadmins, and then just a bit less for lower ranked admins?
Code:
if ((getPlayerUID player) in ["########"]) then { // super admins
        adminmenu =
        [
        <all the admintools code here>
 
        ];};
My guess would be something like this:
AdminToolsMain.sqf
Code:
pathtotools = "admintools\tools\";
pathtoskins = "admintools\skins\";
pathtoweapon = "admintools\weaponkits\";
pathtoshields = "admintools\shields\";
pathdebug = "debug\";
EXECscript1 = 'player execVM "'+pathtotools+'%1"';
EXECscript2 = 'player execVM "'+pathtoskins+'%1"';
EXECscript3 = 'player execVM "'+pathtoweapon+'%1"';
EXECscript4 = 'player execVM "'+pathtoshields+'%1"';
execdebug = 'player execVM "'+pathdebug+'%1"';
if ((getPlayerUID player) in ["#######"]) then { //all admin id's here
    if ((getPlayerUID player) in ["#######"]) then { //mods - removes weapon kits, tp/esp, and god modes.
        adminmenu =
        [
["",true],
["Toggle Debug", [2], "", -5, [["expression", format[execdebug,"playerstats.sqf"]]], "1", "1"],
["Tools Menu", [3], "#USER:ToolsMenu3", -5, [["expression", ""]], "1", "1"],
["Skins Menu", [4], "#USER:SkinsMenu", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
        ];};
    if ((getPlayerUID player) in ["########"]) then { //admins - removes zombie shield & tp/esp
        adminmenu =
        [
["",true],
["Toggle Debug", [2], "", -5, [["expression", format[execdebug,"playerstats.sqf"]]], "1", "1"],
["Tools Menu", [3], "#USER:ToolsMenu2", -5, [["expression", ""]], "1", "1"],
["Skins Menu", [4], "#USER:SkinsMenu", -5, [["expression", ""]], "1", "1"],
["Weapon Kits", [5], "#USER:WeaponMenu", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
        ];};
    if ((getPlayerUID player) in ["########"]) then { // super admins - has everything.
        adminmenu =
        [
["",true],
["Toggle Debug", [2], "", -5, [["expression", format[execdebug,"playerstats.sqf"]]], "1", "1"],
["Tools Menu", [3], "#USER:ToolsMenu", -5, [["expression", ""]], "1", "1"],
["Skins Menu", [4], "#USER:SkinsMenu", -5, [["expression", ""]], "1", "1"],
["Weapon Kits", [5], "#USER:WeaponMenu", -5, [["expression", ""]], "1", "1"],
["Shields Menu", [6], "#USER:ShieldMenu", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
        ];};
};
//super admins tool menu
ToolsMenu =
[
["",true],
["ESP / Tele", [2],  "", -5, [["expression", format[EXECscript1,"dayzesp.sqf"]]], "1", "1"],
["God Mode", [3],  "", -5, [["expression", format[EXECscript1,"Godmode.sqf"]]], "1", "1"],
["Car God", [4],  "", -5, [["expression", format[EXECscript1,"cargod.sqf"]]], "1", "1"],
["Heal Player(s)", [5],  "", -5, [["expression", format[EXECscript1,"healp.sqf"]]], "1", "1"],
["Look-N-Repair", [6],  "", -5, [["expression", format[EXECscript1,"looknrepair.sqf"]]], "1", "1"],
["Repair Buildings", [7],  "", -5, [["expression", format[EXECscript1,"fixbuildings.sqf"]]], "1", "1"],
["Spectate Player", [8],  "", -5, [["expression", format[EXECscript1,"spectate.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
//admin tool menu
// removes tp/esp
ToolsMenu2 =
[
["",true],
["God Mode", [3],  "", -5, [["expression", format[EXECscript1,"Godmode.sqf"]]], "1", "1"],
["Car God", [4],  "", -5, [["expression", format[EXECscript1,"cargod.sqf"]]], "1", "1"],
["Heal Player(s)", [5],  "", -5, [["expression", format[EXECscript1,"healp.sqf"]]], "1", "1"],
["Look-N-Repair", [6],  "", -5, [["expression", format[EXECscript1,"looknrepair.sqf"]]], "1", "1"],
["Repair Buildings", [7],  "", -5, [["expression", format[EXECscript1,"fixbuildings.sqf"]]], "1", "1"],
["Spectate Player", [8],  "", -5, [["expression", format[EXECscript1,"spectate.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
//mod tool menu
//removes god modes, tp/esp
ToolsMenu3 =
[
["",true],
["Heal Player(s)", [5],  "", -5, [["expression", format[EXECscript1,"healp.sqf"]]], "1", "1"],
["Look-N-Repair", [6],  "", -5, [["expression", format[EXECscript1,"looknrepair.sqf"]]], "1", "1"],
["Repair Buildings", [7],  "", -5, [["expression", format[EXECscript1,"fixbuildings.sqf"]]], "1", "1"],
["Spectate Player", [8],  "", -5, [["expression", format[EXECscript1,"spectate.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
 
SkinsMenu =
[
["",true],
["TK Soldier Medic", [2],  "", -5, [["expression", format[EXECscript2,"tkmedic.sqf"]]], "1", "1"],
["GUE Soldier Base", [3],  "", -5, [["expression", format[EXECscript2,"guebase.sqf"]]], "1", "1"],
["RU Commander", [4],  "", -5, [["expression", format[EXECscript2,"rucommander.sqf"]]], "1", "1"],
["CZ Soldier Medik", [5],  "", -5, [["expression", format[EXECscript2,"czmedik.sqf"]]], "1", "1"],
["USMC Soldier Medic", [6],  "", -5, [["expression", format[EXECscript2,"usmcmedic.sqf"]]], "1", "1"],
["invisible", [7],  "", -5, [["expression", format[EXECscript2,"invisible.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Next page", [12], "#USER:SkinsMenu2", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
 
SkinsMenu2 =
[
["",true],
["FR Corpsman", [2],  "", -5, [["expression", format[EXECscript2,"frcorpsman.sqf"]]], "1", "1"],
["GUE Soldier Base", [3],  "", -5, [["expression", format[EXECscript2,"guesoldierbase.sqf"]]], "1", "1"],
["MVD Soldier Base", [4],  "", -5, [["expression", format[EXECscript2,"mvdsoldierbase.sqf"]]], "1", "1"],
["RUS Soldier Base", [5],  "", -5, [["expression", format[EXECscript2,"russoldierbase.sqf"]]], "1", "1"],
["Survivor", [6],  "", -5, [["expression", format[EXECscript2,"survivor.sqf"]]], "1", "1"],
["Bandit Female", [7],  "", -5, [["expression", format[EXECscript2,"banditw.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
 
WeaponMenu =
[
["",true],
["No Weapons", [2],  "", -5, [["expression", format[EXECscript3,"items.sqf"]]], "1", "1"],
["M4 Holo", [3],  "", -5, [["expression", format[EXECscript3,"itemz.sqf"]]], "1", "1"],
["M4 CCO SD", [4],  "", -5, [["expression", format[EXECscript3,"itemz2.sqf"]]], "1", "1"],
["AS50", [5],  "", -5, [["expression", format[EXECscript3,"itemz3.sqf"]]], "1", "1"],
["FN FAL", [6],  "", -5, [["expression", format[EXECscript3,"itemz4.sqf"]]], "1", "1"],
["M16 ACOG", [7],  "", -5, [["expression", format[EXECscript3,"itemz5.sqf"]]], "1", "1"],
["SCAR_H_LNG_Sniper_SD", [8],  "", -5, [["expression", format[EXECscript3,"itemz6.sqf"]]], "1", "1"],
["Mk 48", [9],  "", -5, [["expression", format[EXECscript3,"item7.sqf"]]], "1", "1"],
["M8 SAW", [10],  "", -5, [["expression", format[EXECscript3,"item8.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Next page", [12], "#USER:WeaponMenu2", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
WeaponMenu2 =
[
["",true],
["GAU8", [2],  "", -5, [["expression", format[EXECscript3,"item9.sqf"]]], "1", "1"],
["SCAR_L_CQC_EGLM_Holo", [3],  "", -5, [["expression", format[EXECscript3,"item10.sqf"]]], "1", "1"],
["DMR", [4],  "", -5, [["expression", format[EXECscript3,"item11.sqf"]]], "1", "1"],
["M4A1 HWS GL SD Camo", [5],  "", -5, [["expression", format[EXECscript3,"item12.sqf"]]], "1", "1"],
["M14 Aim", [6],  "", -5, [["expression", format[EXECscript3,"item13.sqf"]]], "1", "1"],
["Alice", [7],  "", -5, [["expression", format[EXECscript3,"bp2.sqf"]]], "1", "1"],
["Coyote", [8],  "", -5, [["expression", format[EXECscript3,"bp1.sqf"]]], "1", "1"],
["Delete gear", [9],  "", -5, [["expression", format[EXECscript3,"cleanme.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
 
ShieldMenu =
[
["",true],
["Zombie Shield", [2],  "", -5, [["expression", format[EXECscript4,"zombieshield.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
 
showCommandingMenu "#USER:adminmenu";

** As a side note I have not tried this yet so I am not sure if it would work. This is just my interpretation of what I was told as a possible way of doing it. **
 
Or you could go loony like me and make something ridiculously over complicated -.-

mvPHFvd.jpg
 
I have a spawn vehicles addition working, but it is kinda buggy (vehicles disappear because the server doesnt put them in the database) on dayz.st and I pretty much disabled all of battleye to make it stop kicking me. I will post a how I did it when I get home, but you this will not be a full fledged how to, you will need to understand how to put it in yourself.
 
i will be releasing the vehicle spawn, TP to Admin, and flip vehicle update later today
Update: released vehicle spawning, TP to Admin, and flip vehicle update, please read the install instructions carefully when installing / updating. i might be able to relese another update either today or tomorrow that will include staff levels menu (mod, admin, super admin), and a different way to add / remove admin PID's
 
anything new regarding namalsk?
nothing yet i am setting up a testing server that will have all maps so i can better test my tools when / if i get them to work 100% for the other maps i will make a post(after im done celebrating lol)
 
Instead of commenting out the hacker vehicle check why not add a public variable to check for? Think Sarge does this in his AI code as does grafzahl with his helicopter crash site mod.
 
Instead of commenting out the hacker vehicle check why not add a public variable to check for? Think Sarge does this in his AI code as does grafzahl with his helicopter crash site mod.
that will most likely be in another update, sense everyone was starting to get impatient i decided to push the update early
 
BluePhoenix, i installed your tools, put in my UID, and everything, but when i press the "tools menu" ingame, nothing happens. At all. Does anyone else have this issue, or is it just me?
 
Here it is: http://www.mediafire.com/?vy2edckjgkly761

(sorry, i dont know how to add the file directly to this chat)

EDIT:
BluePhoenix, if it is possible for you, could you make it for 3 different levels of admins? One which just has access to the skins menu (gonna use it for donators), one that doesnt have access to ESP, but everything else, and then the last one which has access to all of it?
Cheers.
 
Here it is: http://www.mediafire.com/?vy2edckjgkly761

(sorry, i dont know how to add the file directly to this chat)

EDIT:
BluePhoenix, if it is possible for you, could you make it for 3 different levels of admins? One which just has access to the skins menu (gonna use it for donators), one that doesnt have access to ESP, but everything else, and then the last one which has access to all of it?
Cheers.
this should fix it
in AdminToolMain.sqf change
Code:
adminmenu =
[
    ["",true],
        ["Tools Menu", [2], "#USER:ToolsMenu", -5, [["expression", ""]], "1", "1"],
        ["Skins Menu", [3], "#USER:SkinsMenu", -5, [["expression", ""]], "1", "1"],
        ["Weapon Kits", [4], "#USER:WeaponMenu", -5, [["expression", ""]], "1", "1"],
        ["Shields Menu", [5], "#USER:ShieldMenu", -5, [["expression", ""]], "1", "1"],
        ["Vehicle Menu", [6], "#USER:VehicleMenu", -5, [["expression", ""]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
    ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]       
];
};
to
Code:
adminmenu =
[
    ["",true],
        ["Tools Menu", [2], "#USER:ToolsMenu", -5, [["expression", ""]], "1", "1"],
        ["Skins Menu", [3], "#USER:SkinsMenu", -5, [["expression", ""]], "1", "1"],
        ["Weapon Kits", [4], "#USER:WeaponMenu", -5, [["expression", ""]], "1", "1"],
        ["Shields Menu", [5], "#USER:ShieldMenu", -5, [["expression", ""]], "1", "1"],
        ["Vehicle Menu", [6], "#USER:VehicleMenu", -5, [["expression", ""]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
    ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]       
];};

change code in Activate.sqf to
Code:
waituntil {!isnull (finddisplay 46)};
if ((getPlayerUID player) in ["6238406","110029382","96489670"]) then {
    sleep 30;
    player addaction [("<t color=""#0074E8"">" + ("Tools Menu") +"</t>"),"admintools\Eexcute.sqf","",5,false,true,"",""];
};
 
Status
Not open for further replies.
Back
Top