Skip to content

Commit

Permalink
Merge pull request #9 from ugene143/admin_fix
Browse files Browse the repository at this point in the history
Admin fix
  • Loading branch information
Trigger81 committed Jun 12, 2015
2 parents f7f5547 + d0f174e commit 12e76e4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions Addons/e12_tools/XEH_preInitClient.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ PREP(actionAdminCreateCrateItems);
PREP(actionAdminCreateCrateMedic);
PREP(actionAdminCreateCrateRadio);
PREP(actionAdminMedicalAssignMedic);
PREP(actionAdminAssignAdmin);
PREP(actionAdminMedicalFullHeal);
PREP(actionAdminPerfMon);

Expand Down
2 changes: 1 addition & 1 deletion Addons/e12_tools/actions/E12_Tools_Actions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
};
6 changes: 1 addition & 5 deletions Addons/e12_tools/functions/fnc_actionAdminAssignAdmin.sqf
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#include "script_component.hpp"
PARAMS_1(_target);

[-2,
{
_this setVariable[QGVAR(isadmin),true];
},
_target] call CBA_fnc_globalExecute;
_target setVariable[QGVAR(isadmin),true, true];
2 changes: 0 additions & 2 deletions Addons/e12_tools/functions/fnc_actionAdminCreateCrateACE.sqf
Original file line number Diff line number Diff line change
@@ -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"];
Expand Down

0 comments on commit 12e76e4

Please sign in to comment.