From b06990293397d4b6d0374097f09d1cc5679216e3 Mon Sep 17 00:00:00 2001 From: hybrid Date: Thu, 11 Jun 2026 19:55:04 +0300 Subject: init --- Common/Functions/Common_GetClientIDFromTeam.sqf | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Common/Functions/Common_GetClientIDFromTeam.sqf (limited to 'Common/Functions/Common_GetClientIDFromTeam.sqf') diff --git a/Common/Functions/Common_GetClientIDFromTeam.sqf b/Common/Functions/Common_GetClientIDFromTeam.sqf new file mode 100644 index 0000000..dd732a7 --- /dev/null +++ b/Common/Functions/Common_GetClientIDFromTeam.sqf @@ -0,0 +1,11 @@ +Private ['_index','_team']; + +_team = _this; + +if (isNil '_team') exitWith {0}; +if (isNull _team) exitWith {0}; + +_index = (Format["WFBE_%1TEAMS",str (side _team)] Call GetNamespace) find _team; +if (_index < 0) exitWith {0}; + +_index+1 \ No newline at end of file -- cgit v1.3.1