mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 13:26:39 +03:00
Add group system
Initial commit, not tested in multiplayer yet. Some revisions still left to do.
This commit is contained in:
13
SQF/dayz_code/groups/selectPlayer.sqf
Normal file
13
SQF/dayz_code/groups/selectPlayer.sqf
Normal file
@@ -0,0 +1,13 @@
|
||||
private ["_inviteButton","_playerList","_target","_uid"];
|
||||
|
||||
disableSerialization;
|
||||
_playerList = _this;
|
||||
_inviteButton = findDisplay 80000 displayCtrl 3;
|
||||
_uid = _playerList lbData (lbCurSel _playerList);
|
||||
_target = _uid call dayz_getPlayer;
|
||||
|
||||
if (player == leader group player && {!isNull _target} && {count (units group _target) == 1}) then {
|
||||
_inviteButton ctrlShow true;
|
||||
} else {
|
||||
_inviteButton ctrlShow false;
|
||||
};
|
||||
Reference in New Issue
Block a user