From 6c08d6835fa360d55d2100ec4bc51b565a87436e Mon Sep 17 00:00:00 2001 From: He-Man Date: Fri, 10 Feb 2017 20:21:32 +0100 Subject: [PATCH] Only Group Leader can place a Jammer --- Sources/epoch_code/compile/building/EPOCH_isBuildAllowed.sqf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/epoch_code/compile/building/EPOCH_isBuildAllowed.sqf b/Sources/epoch_code/compile/building/EPOCH_isBuildAllowed.sqf index 7485d338..1ea066de 100644 --- a/Sources/epoch_code/compile/building/EPOCH_isBuildAllowed.sqf +++ b/Sources/epoch_code/compile/building/EPOCH_isBuildAllowed.sqf @@ -130,6 +130,10 @@ if !(_jammer isEqualTo []) then { }; } else { + if (!(EPOCH_my_groupUID isequalto "") && !((getplayeruid player) isequalto EPOCH_my_groupUID)) exitwith { + _buildingAllowed = false; + ["The Group Leader must place the Jammer!", 5] call Epoch_message; + }; if (_objType in ["PlotPole_EPOCH", "PlotPole_SIM_EPOCH"]) then { // TODO: rework not ideal to use allmissionobjects _alljammer = allmissionobjects 'PlotPole_EPOCH';