mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-20 07:02:56 +03:00
Add group system
Initial commit, not tested in multiplayer yet. Some revisions still left to do.
This commit is contained in:
15
SQF/dayz_code/groups/kickFromGroup.sqf
Normal file
15
SQF/dayz_code/groups/kickFromGroup.sqf
Normal file
@@ -0,0 +1,15 @@
|
||||
private ["_myGroup","_target","_targetUID"];
|
||||
|
||||
disableSerialization;
|
||||
_myGroup = findDisplay 80000 displayCtrl 2;
|
||||
_targetUID = _myGroup lbData (lbCurSel _myGroup);
|
||||
_target = _targetUID call dayz_getPlayer;
|
||||
|
||||
if (isNull _target or _target == player or player != leader group player) exitWith {
|
||||
_this ctrlShow false;
|
||||
};
|
||||
|
||||
[_target] join grpNull;
|
||||
|
||||
PVDZ_Server_UpdateGroup = [2,player,_targetUID];
|
||||
publicVariableServer "PVDZ_Server_UpdateGroup";
|
||||
Reference in New Issue
Block a user