diff options
| author | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:55:24 +0300 |
|---|---|---|
| committer | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:55:24 +0300 |
| commit | 628d33984d9228f1781d13a65fbb80f35facc899 (patch) | |
| tree | cd909141f87e14f22c3511549a9bc067d9ff8b50 /Server/PVFunctions/RequestJoin.sqf | |
| download | a2wf_sara-628d33984d9228f1781d13a65fbb80f35facc899.tar.gz a2wf_sara-628d33984d9228f1781d13a65fbb80f35facc899.tar.bz2 a2wf_sara-628d33984d9228f1781d13a65fbb80f35facc899.zip | |
init
Diffstat (limited to '')
| -rw-r--r-- | Server/PVFunctions/RequestJoin.sqf | 28 |
1 files changed, 28 insertions, 0 deletions
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 |
