From dda90ba83011dd524ee2dde45bbba3861aa49f85 Mon Sep 17 00:00:00 2001 From: ugene143 Date: Fri, 12 Jun 2015 19:20:58 +0200 Subject: [PATCH 1/2] fix admin assign --- Addons/e12_tools/XEH_preInitClient.sqf | 1 + Addons/e12_tools/functions/fnc_actionAdminAssignAdmin.sqf | 6 +----- .../e12_tools/functions/fnc_actionAdminCreateCrateACE.sqf | 2 -- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Addons/e12_tools/XEH_preInitClient.sqf b/Addons/e12_tools/XEH_preInitClient.sqf index 1be74ca..d327cd6 100644 --- a/Addons/e12_tools/XEH_preInitClient.sqf +++ b/Addons/e12_tools/XEH_preInitClient.sqf @@ -45,6 +45,7 @@ PREP(actionAdminCreateCrateItems); PREP(actionAdminCreateCrateMedic); PREP(actionAdminCreateCrateRadio); PREP(actionAdminMedicalAssignMedic); +PREP(actionAdminAssignAdmin); PREP(actionAdminMedicalFullHeal); PREP(actionAdminPerfMon); diff --git a/Addons/e12_tools/functions/fnc_actionAdminAssignAdmin.sqf b/Addons/e12_tools/functions/fnc_actionAdminAssignAdmin.sqf index aa5f4f9..be46894 100644 --- a/Addons/e12_tools/functions/fnc_actionAdminAssignAdmin.sqf +++ b/Addons/e12_tools/functions/fnc_actionAdminAssignAdmin.sqf @@ -1,8 +1,4 @@ #include "script_component.hpp" PARAMS_1(_target); -[-2, -{ - _this setVariable[QGVAR(isadmin),true]; -}, -_target] call CBA_fnc_globalExecute; \ No newline at end of file +_target setVariable[QGVAR(isadmin),true, true]; \ No newline at end of file diff --git a/Addons/e12_tools/functions/fnc_actionAdminCreateCrateACE.sqf b/Addons/e12_tools/functions/fnc_actionAdminCreateCrateACE.sqf index 5194df6..fa3f911 100644 --- a/Addons/e12_tools/functions/fnc_actionAdminCreateCrateACE.sqf +++ b/Addons/e12_tools/functions/fnc_actionAdminCreateCrateACE.sqf @@ -1,8 +1,6 @@ #include "script_component.hpp" PARAMS_1(_unit); -[ str _pos, "e12_tools", [true, false, true] ] call CBA_fnc_debug; - [0, { private["_crate"]; From d0f174e3f2d2858346e5eb1e1e487e9b96856d5e Mon Sep 17 00:00:00 2001 From: ugene143 Date: Fri, 12 Jun 2015 19:22:17 +0200 Subject: [PATCH 2/2] fix admin assign2 --- Addons/e12_tools/actions/E12_Tools_Actions.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Addons/e12_tools/actions/E12_Tools_Actions.hpp b/Addons/e12_tools/actions/E12_Tools_Actions.hpp index ab39380..895a6cc 100644 --- a/Addons/e12_tools/actions/E12_Tools_Actions.hpp +++ b/Addons/e12_tools/actions/E12_Tools_Actions.hpp @@ -29,7 +29,7 @@ class Tools { runOnHover = 0; exceptions[] = {"isNotInside", "notOnMap"}; statement = QUOTE([_target] call FUNC(actionAdminAssignAdmin)); - condition = QUOTE(false); //TODO: FIX IT! //QUOTE((isPlayer _target)); + condition = QUOTE((isPlayer _target)); icon = PATHTOF(UI\icons\tools_admin.paa); }; }; \ No newline at end of file