A3Wasteland / ArmA3_Wasteland.Altis

A3Wasteland is a survival sandbox mission for Arma 3 where two teams and independent players fight for survival. Built in collaboration between GoT, TPG, KoS, 404Games, and others.
http://a3wasteland.com
GNU Affero General Public License v3.0
102 stars 184 forks source link

Admin Panel Problems #529

Closed Claas-Fan-92 closed 9 months ago

Claas-Fan-92 commented 1 year ago

Hello, I have adapted the loadAdministratorMenu.sqf and the loadModeratorMenu.sqf, only this one was changed _panelOptions = ["Player Management", "Vehicle Management", "Map Markers Log", "Group Leader Markers" ]; So whatever the person is allowed to use, I'm also sending the 3 files or actually only 2 in this post.

The problem is that when you click "Object Finder" the debug menu opens, and when you click "Toggle God Mode" the object finder opens. It is this sqf loadAdministratorMenu.sqf <------ Does anyone know why this doesn't work? loadServerAdministratorMenu.sqf <----- that works wonderfully, whatever I click on also opens.

Because I have another question, namely the T-100X Futura Railgun came into play, I couldn't shoot it on the server, after a long search I found something and it was said that you should enter it here in the CfgRemoteExec_fnc.hpp should, or also in the description.ext

I added it to the description.ext of the following masses

class CfgRemoteExec // applies only to clients { classFunctions {

ifndef A3W_DEBUG

mode = 1; // 0 = block all, 1 = whitelist, 2 = allow all

else

mode = 2; // debug mode, don't touch

endif

include "client\CfgRemoteExec_fnc.hpp"

class SA_Simulate_Towing { allowedTargets=0; }; class SA_Attach_Tow_Ropes { allowedTargets=0; }; class SA_Take_Tow_Ropes { allowedTargets=0; }; class SA_Put_Away_Tow_Ropes { allowedTargets=0; }; class SA_Pickup_Tow_Ropes { allowedTargets=0; }; class SA_Drop_Tow_Ropes { allowedTargets=0; }; class SA_Set_Owner { allowedTargets=2; }; class SA_Hint { allowedTargets=1; }; class SA_Hide_Object_Global { allowedTargets=2; }; class bis_fnc_fire { allowedTargets = 0; jip = 0; }; //<-------- Can I leave it like that? class bis_fnc_setcustomsoundcontroller { allowedTargets = 0; jip = 0; }; };

So after I entered that, I can also shoot on the server with the T-100X Futura Railgun without any problems

My question would now be that it has to be in the CfgRemoteExec_fnc.hpp or is it just enough in the description.ext


// ** // This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com // ** // @file Version: 1.0 // @file Name: loadServerAdministratorMenu.sqf // @file Author: [404] Deadbeat // @file Created: 20/11/2012 05:19 // @file Args:

define adminMenu_option 50001

disableSerialization;

private ["_start","_panelOptions","_displayAdmin","_adminSelect"]; _uid = getPlayerUID player; if ([_uid, 3] call isAdmin) then { _start = createDialog "AdminMenu";

_displayAdmin = uiNamespace getVariable "AdminMenu";
_adminSelect = _displayAdmin displayCtrl adminMenu_option;

_panelOptions = ["Player Management",
                "Vehicle Management",
                "Map Markers Log",
                "Group Leader Markers",
                "Teleport",
                "Money",
                "Debug Menu",
                "Object Search",
                "Toggle God-mode"
];

{
    _adminSelect lbAdd _x;
} forEach _panelOptions;

};


// ** // This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com // ** // @file Version: 1.0 // @file Name: loadModeratorMenu.sqf // @file Author: [404] Deadbeat // @file Created: 20/11/2012 05:19 // @file Args:

define adminMenu_option 50001

disableSerialization;

private ["_start","_panelOptions","_displayAdmin","_adminSelect"]; _uid = getPlayerUID player; if ([_uid, 1] call isAdmin) then { _start = createDialog "AdminMenu";

_displayAdmin = uiNamespace getVariable "AdminMenu";
_adminSelect = _displayAdmin displayCtrl adminMenu_option;

_panelOptions = ["Player Management",
                "Vehicle Management",
                "Map Markers Log",
                "Group Leader Markers"
];

{
    _adminSelect lbAdd _x;
} forEach _panelOptions;

};


// ** // This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com // ** // @file Version: 1.0 // @file Name: loadAdministratorMenu.sqf // @file Author: [404] Deadbeat // @file Created: 20/11/2012 05:19 // @file Args:

define adminMenu_option 50001

disableSerialization;

private ["_start","_panelOptions","_adminSelect","_displayAdmin"]; _uid = getPlayerUID player; if ([_uid, 2] call isAdmin) then { _start = createDialog "AdminMenu";

_displayAdmin = uiNamespace getVariable "AdminMenu";
_adminSelect = _displayAdmin displayCtrl adminMenu_option;

_panelOptions = ["Player Management",
                "Vehicle Management",
                "Map Markers Log",
                "Group Leader Markers",
                "Teleport",
                "Money",
                "Object Search",
                "Toggle God-mode"                   
];

{
    _adminSelect lbAdd _x;
} forEach _panelOptions;

};


I thank you in advance

Claas-Fan-92 commented 9 months ago

Hello, I was able to fix the problem myself.