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.
This commit is contained in:
He-Man 2016-10-24 22:45:14 +02:00 committed by GitHub
parent 3292f0533e
commit 0ccc0c02fb

View File

@ -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;