BluePhoenix Admin Tools

bajaboy1972

Well-Known Member
Is there anyone here willing to help me mod BP's admin tools so that they can be activated by any user ....not just by uid?

Current code for activate.sqf is....

Code:
waituntil {!alive player ; !isnull (finddisplay 46)};
if ((getPlayerUID player) in ["123456789"then {
    sleep 30;
    player addaction [("<t color=""#0074E8"">" + ("Tools Menu") +"</t>"),"admintools\Eexcute.sqf","",5,false,true,"",""];

And then in AdminTtoolsMain ........

Code:
if ((getPlayerUID player) in ["123456789"]) then { //all admins
    if ((getPlayerUID player) in ["123456789"]) then { //mods

So I want to get rid of this and make it so menu comes up for anyone. Obviously im gonna mod the admin tools and just use then to run a cpl scripts on my server. Not allow people to admin my server.
 
Easy, remove the IFs, and just keep the player addaction

Code:
waituntil {!alive player ; !isnull (finddisplay 46)};
    player addaction [("<t color=""#0074E8"">" + ("Tools Menu") +"</t>"),"admintools\Eexcute.sqf","",5,false,true,"",""];
 
i tried it on my server before you even made this post about doing that and it did work. but you also got to edit other files. did it at least prompt you with the scroll action for tools menu?
 
Locked up my server....if you wouldn't mind sending me the files you did it with I don't mind sending a small donation :) I have all the loadouts done...just need to get it to work without UID
 
no need to send a donation, i dont mind helping if i can. just paste all the code for it in here and ill make the quick changes. this is very simple, you only need to remove the IF statements properly.
 
Activate.sqf
Code:
waituntil {!alive player ; !isnull (finddisplay 46)};
if ((getPlayerUID player) in ["123456789"]) then {
    sleep 10;
    player addaction [("<t color=""#00ff00"">" + ("Admin Tools Menu") +"</t>"),"admintools\Execute.sqf","",5,false,true,"",""];

Top portion of admin tools main....


Code:
_pathtotools = "admintools\tools\";
_pathtoskins = "admintools\skins\";
_pathtoweapon = "admintools\weaponkits\";
_pathtoshields = "admintools\shields\";
_pathtovehicles = "admintools\vehicles\";
_pathdebug = "debug\";
_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"';
_EXECscript6 = 'player execVM "'+_pathtoAdmin2+'%1"';
_execdebug = 'player execVM "'+_pathdebug+'%1"';
//customise these menus to fit your server
if ((getPlayerUID player) in ["123456789"]) then { //all admins
//    if ((getPlayerUID player) in ["123456789"]) 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 ["123456789"]) 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 ["123456789"]) then { // super admins
        adminmenu =
        [
            ["",true],
                ["ADMIN DEBUG", [], "", -5, [["expression", format[_execdebug,"playerstats.sqf"]]], "1", "1"],
                ["TOOLS", [], "#USER:ToolsMenu", -5, [["expression", ""]], "1", "1"],
                ["MORPH MENU", [], "#USER:MorphMenu", -5, [["expression", ""]], "1", "1"],
                ["STANDARD MENU", [], "#USER:WeaponMenu", -5, [["expression", ""]], "1", "1"],
                ["OVERWATCH MENU", [], "#USER:OVERWATCHMENU", -5, [["expression", ""]], "1", "1"],   
                ["VANILLA VEHICLES", [], "#USER:VehicleMenu", -5, [["expression", ""]], "1", "1"],
                ["ZOMBIE SHIELD", [],  "", -5, [["expression", format[_EXECscript4,"zombieshield.sqf"]]], "1", "1"],
                ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [-1], "", -3, [["expression", ""]], "1", "1"]       
        ];};
} else {
adminmenu =
[
    ["",true],
        ["Toggle Debug", [], "", -5, [["expression", format[_execdebug,"playerstats.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
    ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];};
//customise to fit
ModToolsMenu =
[
    ["",true],
        ["ESP / Tele", [],  "", -5, [["expression", format[_EXECscript1,"dayzesp.sqf"]]], "1", "1"],
        ["God Mode", [],  "", -5, [["expression", format[_EXECscript1,"Godmode.sqf"]]], "1", "1"],
        ["Car God", [],  "", -5, [["expression", format[_EXECscript1,"cargod.sqf"]]], "1", "1"],
        ["Heal Player(s)", [],  "", -5, [["expression", format[_EXECscript1,"healp.sqf"]]], "1", "1"],
        ["Look-N-Repair", [],  "", -5, [["expression", format[_EXECscript1,"looknrepair.sqf"]]], "1", "1"],
        ["Repair Buildings", [],  "", -5, [["expression", format[_EXECscript1,"fixbuildings.sqf"]]], "1", "1"],
        ["Spectate Player", [],  "", -5, [["expression", format[_EXECscript1,"spectate.sqf"]]], "1", "1"],
        ["Teleport To Me", [], "", -5, [["expression", format[_EXECscript1, "TPtoME.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Next page", [-1], "#USER:ToolsMenu2", -5, [["expression", ""]], "1", "1"],
            ["Exit", [-1], "", -3, [["expression", ""]], "1", "1"]
];
//customise to fit
AdminToolsMenu =
[
    ["",true],
        ["ESP / Tele", [],  "", -5, [["expression", format[_EXECscript1,"dayzesp.sqf"]]], "1", "1"],
        ["God Mode", [],  "", -5, [["expression", format[_EXECscript1,"Godmode.sqf"]]], "1", "1"],
        ["Car God", [],  "", -5, [["expression", format[_EXECscript1,"cargod.sqf"]]], "1", "1"],
        ["Heal Player(s)", [],  "", -5, [["expression", format[_EXECscript1,"healp.sqf"]]], "1", "1"],
        ["Look-N-Repair", [],  "", -5, [["expression", format[_EXECscript1,"looknrepair.sqf"]]], "1", "1"],
        ["Repair Buildings", [],  "", -5, [["expression", format[_EXECscript1,"fixbuildings.sqf"]]], "1", "1"],
        ["Spectate Player", [],  "", -5, [["expression", format[_EXECscript1,"spectate.sqf"]]], "1", "1"],
        ["Teleport To Me", [], "", -5, [["expression", format[_EXECscript1, "TPtoME.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Next page", [-1], "#USER:ToolsMenu2", -5, [["expression", ""]], "1", "1"],
            ["Exit", [-1], "", -3, [["expression", ""]], "1", "1"]
];
 
i need all the code from Activate.sqf, nvm i went into mine to get it.

Code:
waituntil {!alive player ; !isnull (finddisplay 46)};
//if ((getPlayerUID player) in ["144708998"]) then {
    //sleep 10;
    player addaction [("<t color=""#0074E8"">" + ("Tools Menu") +"</t>"),"admintools\Eexcute.sqf","",5,false,true,"",""];
//};

Here is the corrected bottom code, sorry i made a mistake in my reply.

Code:
_pathtotools = "admintools\tools\";
_pathtoskins = "admintools\skins\";
_pathtoweapon = "admintools\weaponkits\";
_pathtoshields = "admintools\shields\";
_pathtovehicles = "admintools\vehicles\";
_pathdebug = "debug\";
_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"';
_EXECscript6 = 'player execVM "'+_pathtoAdmin2+'%1"';
_execdebug = 'player execVM "'+_pathdebug+'%1"';
//customise these menus to fit your server
if (1 = 1) then { //all admins
//    if ((getPlayerUID player) in ["123456789"]) 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 ["123456789"]) 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 ["123456789"]) then { // super admins
        adminmenu =
        [
            ["",true],
                ["ADMIN DEBUG", [], "", -5, [["expression", format[_execdebug,"playerstats.sqf"]]], "1", "1"],
                ["TOOLS", [], "#USER:ToolsMenu", -5, [["expression", ""]], "1", "1"],
                ["MORPH MENU", [], "#USER:MorphMenu", -5, [["expression", ""]], "1", "1"],
                ["STANDARD MENU", [], "#USER:WeaponMenu", -5, [["expression", ""]], "1", "1"],
                ["OVERWATCH MENU", [], "#USER:OVERWATCHMENU", -5, [["expression", ""]], "1", "1"],
                ["VANILLA VEHICLES", [], "#USER:VehicleMenu", -5, [["expression", ""]], "1", "1"],
                ["ZOMBIE SHIELD", [],  "", -5, [["expression", format[_EXECscript4,"zombieshield.sqf"]]], "1", "1"],
                ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [-1], "", -3, [["expression", ""]], "1", "1"] 
        ];//};
} else {
adminmenu =
[
    ["",true],
        ["Toggle Debug", [], "", -5, [["expression", format[_execdebug,"playerstats.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
    ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];};
//customise to fit
ModToolsMenu =
[
    ["",true],
        ["ESP / Tele", [],  "", -5, [["expression", format[_EXECscript1,"dayzesp.sqf"]]], "1", "1"],
        ["God Mode", [],  "", -5, [["expression", format[_EXECscript1,"Godmode.sqf"]]], "1", "1"],
        ["Car God", [],  "", -5, [["expression", format[_EXECscript1,"cargod.sqf"]]], "1", "1"],
        ["Heal Player(s)", [],  "", -5, [["expression", format[_EXECscript1,"healp.sqf"]]], "1", "1"],
        ["Look-N-Repair", [],  "", -5, [["expression", format[_EXECscript1,"looknrepair.sqf"]]], "1", "1"],
        ["Repair Buildings", [],  "", -5, [["expression", format[_EXECscript1,"fixbuildings.sqf"]]], "1", "1"],
        ["Spectate Player", [],  "", -5, [["expression", format[_EXECscript1,"spectate.sqf"]]], "1", "1"],
        ["Teleport To Me", [], "", -5, [["expression", format[_EXECscript1, "TPtoME.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Next page", [-1], "#USER:ToolsMenu2", -5, [["expression", ""]], "1", "1"],
            ["Exit", [-1], "", -3, [["expression", ""]], "1", "1"]
];
//customise to fit
AdminToolsMenu =
[
    ["",true],
        ["ESP / Tele", [],  "", -5, [["expression", format[_EXECscript1,"dayzesp.sqf"]]], "1", "1"],
        ["God Mode", [],  "", -5, [["expression", format[_EXECscript1,"Godmode.sqf"]]], "1", "1"],
        ["Car God", [],  "", -5, [["expression", format[_EXECscript1,"cargod.sqf"]]], "1", "1"],
        ["Heal Player(s)", [],  "", -5, [["expression", format[_EXECscript1,"healp.sqf"]]], "1", "1"],
        ["Look-N-Repair", [],  "", -5, [["expression", format[_EXECscript1,"looknrepair.sqf"]]], "1", "1"],
        ["Repair Buildings", [],  "", -5, [["expression", format[_EXECscript1,"fixbuildings.sqf"]]], "1", "1"],
        ["Spectate Player", [],  "", -5, [["expression", format[_EXECscript1,"spectate.sqf"]]], "1", "1"],
        ["Teleport To Me", [], "", -5, [["expression", format[_EXECscript1, "TPtoME.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Next page", [-1], "#USER:ToolsMenu2", -5, [["expression", ""]], "1", "1"],
            ["Exit", [-1], "", -3, [["expression", ""]], "1", "1"]
];

just like my reply if it solves your issues, thats payment enough :)
 
dont need, did you make the changes i put up? there could be trouble with this line,
if (1 = 1) then { //all admins

if there is, then replace it with this.

Code:
_alwaystrue = 1;
if (_alwaystrue == 1) then { //all admins
 
Im not even getting scroll option. I cant even get in server. Stuck on Load screen :(

"],["ItemBandage","ItemPainkiller"]],["DZ_ALICE_Pack_EP1",[[],[]],[[],[]]],[0,0,0],"",0.96]""
5:57:41 "LOGIN RESULT: Exiting, player object null: B 1-1-B:1 REMOTE"
 
i think you should try and setup the admin tool properly to make sure it runs first for yourself. then make the edits so it runs for everyone.
 
im telling you i fully edited the activate, it should show you the option to pull up the menu, if it doesnt, i have no idea why it dont. i made all the changes i did to mine to get it to work.
 
Back
Top