From 0ccc0c02fb4ed3c5d0f7bd7fb9b1d5337551e3c7 Mon Sep 17 00:00:00 2001 From: He-Man Date: Mon, 24 Oct 2016 22:45:14 +0200 Subject: [PATCH] Update EPOCH_Group_BtnInvite.sqf If two players from the same group connect at exact the same time, they can not "find" and join each others Group. So you can invite the other player again and he is doubled in the Group. This prevents from inviting again. Already implemented on our Server since a few weeks without problems. --- Sources/epoch_code/gui/scripts/group/EPOCH_Group_BtnInvite.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/epoch_code/gui/scripts/group/EPOCH_Group_BtnInvite.sqf b/Sources/epoch_code/gui/scripts/group/EPOCH_Group_BtnInvite.sqf index edf91185..6196af9a 100644 --- a/Sources/epoch_code/gui/scripts/group/EPOCH_Group_BtnInvite.sqf +++ b/Sources/epoch_code/gui/scripts/group/EPOCH_Group_BtnInvite.sqf @@ -25,7 +25,7 @@ if (_playerUID == Epoch_my_GroupUID || {_x select 0 == _playerUID}count (Epoch_m _InvitePlayerCombo = (findDisplay -1300) displayCtrl 41; _playerUID = _InvitePlayerCombo lbData (lbCurSel _InvitePlayerCombo); _playerName = _InvitePlayerCombo lbText (lbCurSel _InvitePlayerCombo); - if (_playerUID != "" && _playerName != "") then { + if (_playerUID != "" && _playerName != "" && ({_playerUID in _x} count (Epoch_my_Group select 3) == 0) && ({_playerUID in _x} count (Epoch_my_Group select 4) == 0) && !(_playerUID == Epoch_my_GroupUID)) then { _txt = format["Do you want to add %1 to your Group?",_playerName]; [_playerUID,_txt] spawn { _ret = [_this select 1,"Epoch Group Menu",true,true] call BIS_fnc_GUImessage;