Initial baseline - KP Liberation v0.96.7a Ruha variant
This commit is contained in:
24
scripts/client/commander/enforce_whitelist.sqf
Normal file
24
scripts/client/commander/enforce_whitelist.sqf
Normal file
@@ -0,0 +1,24 @@
|
||||
scriptName "[KPLIB] Enforce Whitelist";
|
||||
|
||||
[] call compileFinal preprocessFileLineNumbers "whitelist.sqf";
|
||||
|
||||
if (!GRLIB_use_whitelist) exitWith {};
|
||||
|
||||
waitUntil {alive player};
|
||||
sleep 1;
|
||||
|
||||
if (player isEqualTo ([] call KPLIB_fnc_getCommander) && !(serverCommandAvailable "#kick")) then {
|
||||
|
||||
private _match = false;
|
||||
|
||||
[] call {
|
||||
if ((getPlayerUID player) in GRLIB_whitelisted_steamids) exitWith {_match = true;};
|
||||
if ((name player) in GRLIB_whitelisted_names) exitWith {_match = true;};
|
||||
if (!((squadParams player) isEqualTo []) && {(((squadParams player) select 0) select 0) in GRLIB_whitelisted_tags}) exitWith {_match = true;};
|
||||
};
|
||||
|
||||
if (!_match) then {
|
||||
sleep 1;
|
||||
endMission "END1";
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user