From dee52083d359434fc3ac51a871c1b836d092d2ac Mon Sep 17 00:00:00 2001 From: hybrid Date: Thu, 11 Jun 2026 19:55:41 +0300 Subject: init --- Server/PVFunctions/RequestJoin.sqf | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Server/PVFunctions/RequestJoin.sqf (limited to 'Server/PVFunctions/RequestJoin.sqf') diff --git a/Server/PVFunctions/RequestJoin.sqf b/Server/PVFunctions/RequestJoin.sqf new file mode 100644 index 0000000..010dff6 --- /dev/null +++ b/Server/PVFunctions/RequestJoin.sqf @@ -0,0 +1,28 @@ +Private["_canJoin","_get","_name","_side","_sideOrigin","_uid","_varname"]; + +_uid = _this select 0; +_side = _this select 1; +_name = _this select 2; +_varname = _this select 3; + +_canJoin = true; + +_get = Format["WFBE_JIP_USER%1",_uid] Call GetNamespace; + +if !(isNil '_get') then { + _sideOrigin = _get select 3; + + if (_sideOrigin != _side) then { + if !(paramShowUID) then {_uid = "xxxxxxx"}; + + WFBE_LocalizeMessage = [nil,'CLTFNCLOCALIZEMESSAGE',['Teamswap',_name,_uid,_sideOrigin,_side]]; + publicVariable 'WFBE_LocalizeMessage'; + + _canJoin = false; + + diag_log Format["[WFBE (INFORMATION)][frameno:%4 | ticktime:%5] RequestJoin: Player %1 <%2> (%3) has been sent back to the lobby for teamswapping.",_name,_varname,_get select 0,diag_frameno,diag_tickTime]; + }; +}; + +WFBE_CanJoin = [_varname,'CLTFNCCANJOIN',[_varname,_canJoin]]; +publicVariable 'WFBE_CanJoin'; \ No newline at end of file -- cgit v1.3.1