mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-18 22:22:57 +03:00
Use shorter file names for groups
This commit is contained in:
16
SQF/dayz_code/groups/kick.sqf
Normal file
16
SQF/dayz_code/groups/kick.sqf
Normal file
@@ -0,0 +1,16 @@
|
||||
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 {};
|
||||
|
||||
[_target] joinSilent grpNull;
|
||||
dayz_myGroup = dayz_myGroup - [_targetUID];
|
||||
|
||||
PVDZ_Server_UpdateGroup = [2,player,_targetUID];
|
||||
publicVariableServer "PVDZ_Server_UpdateGroup";
|
||||
|
||||
call dayz_selectGroupMember; //update lbCurSel change
|
||||
Reference in New Issue
Block a user