mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
No temp group invite if in main group
This commit is contained in:
parent
3b82e8b0b0
commit
963ab30581
@ -27,13 +27,21 @@ Epoch_my_tempGroup params [
|
||||
["_memberArray",[]]
|
||||
];
|
||||
|
||||
Epoch_my_Group params [
|
||||
["_groupName2",""],
|
||||
["_leaderName2",""],
|
||||
["_groupSize2",0],
|
||||
["_modArray2",[]],
|
||||
["_memberArray2",[]]
|
||||
];
|
||||
|
||||
if (_playerUID == Epoch_my_tempGroupUID || {_x select 0 == _playerUID}count (_modArray) > 0) then {
|
||||
_currentMember = count(_modArray) + count(_memberArray) + 1;
|
||||
if (_currentMember < _groupSize) then {
|
||||
_InvitePlayerCombo = (findDisplay -1300) displayCtrl 41;
|
||||
_playerUID = _InvitePlayerCombo lbData (lbCurSel _InvitePlayerCombo);
|
||||
_playerName = _InvitePlayerCombo lbText (lbCurSel _InvitePlayerCombo);
|
||||
if (_playerUID != "" && _playerName != "" && ({_playerUID in _x} count (_modArray) == 0) && ({_playerUID in _x} count (_memberArray) == 0) && !(_playerUID == Epoch_my_tempGroupUID)) then {
|
||||
if (_playerUID != "" && _playerName != "" && ({_playerUID in _x} count (_modArray) == 0) && ({_playerUID in _x} count (_memberArray) == 0) && ({_playerUID in _x} count (_modArray2) == 0) && ({_playerUID in _x} count (_memberArray2) == 0) && !(_playerUID == Epoch_my_tempGroupUID)) then {
|
||||
_txt = format["Do you want to add %1 to your Temp Group?",_playerName];
|
||||
[_playerUID,_txt,_groupName] spawn {
|
||||
params ["_playerUID","_txt","_groupName"];
|
||||
|
Loading…
Reference in New Issue
Block a user