Skip to content

Commit

Permalink
Zeus Whitelist
Browse files Browse the repository at this point in the history
+update to Zeus whitelist for GF, MC, and MP slots
+fix to lock the slots based on Steam64 ID in the whitelist.sqf
  • Loading branch information
Othello311 committed Nov 2, 2023
1 parent ce39b67 commit 2dd97b1
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 63 deletions.
10 changes: 5 additions & 5 deletions Missionframework/scripts/client/commander/enforce_whitelist.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (player isEqualTo ([] call KPLIB_fnc_getCommander) && !(serverCommandAvailabl
private _match = false;

[] call {
if ((getPlayerUID player) in zeus_whitelist) exitWith {_match = true;};
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;};
};
Expand All @@ -28,7 +28,7 @@ if (player isEqualTo ([] call KPLIB_fnc_getMissioncontroller) && !(serverCommand
private _match = false;

[] call {
if ((getPlayerUID player) in zeus_whitelist) exitWith {_match = true;};
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;};
};
Expand All @@ -44,7 +44,7 @@ if (player isEqualTo ([] call KPLIB_fnc_getMissioncontroller1) && !(serverComman
private _match = false;

[] call {
if ((getPlayerUID player) in zeus_whitelist) exitWith {_match = true;};
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;};
};
Expand All @@ -60,7 +60,7 @@ if (player isEqualTo ([] call KPLIB_fnc_getMilitarypolice) && !(serverCommandAva
private _match = false;

[] call {
if ((getPlayerUID player) in zeus_whitelist) exitWith {_match = true;};
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;};
};
Expand All @@ -76,7 +76,7 @@ if (player isEqualTo ([] call KPLIB_fnc_getMilitarypolice1) && !(serverCommandAv
private _match = false;

[] call {
if ((getPlayerUID player) in zeus_whitelist) exitWith {_match = true;};
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;};
};
Expand Down
107 changes: 49 additions & 58 deletions Missionframework/whitelist.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -11,67 +11,58 @@ GRLIB_whitelisted_tags = [
// For example: "76561198016642627"
// To know that information: https://steamid.io/
GRLIB_whitelisted_steamids = [
"76561197963459537", // Sweetwater.I - The Terrible
"76561197997124640", // Liber.N - The Banned
"76561199181230059", // Liber.N - The Not So Banned
"76561198039932196", // Jarvis - Literally A Robot
"76561197993187376", // Sypolt.R - Hello World
"76561197993790697", // Raeder.U - S3 2IC
"76561198007243124", // Kleinman.H - REO
"76561198081516483", // Ryan.B - RCSM
"76561197976646388", // Baeder.S - ROO
"76561198020735648", // Ratcliff.M - Aide to the ROO
"76561198007260563", // Tharen.R - CO 1-7
"76561198006952602", // Rosefield.M - XO 1-7
"76561198013421442", // Nexhex.A - CSM
"76561198252393266", // Hobbs.T - CO A/1-7
"76561198076641897", // Summerfield.P- 1SG A/1-7
"76561198023841569", // Lacombe.M - CO C/1-7
"76561198044636421", // Phoenix.G - XO C/1-7
"76561198030252880", // Burton.P - 1SG B/1-7
"76561198011215257", // Kastor.K - PS 1/B/1-7
"76561198009849378", // Stewart.B - PL 2/B/1-7
"76561197995041250", // Black.A - PS 1/C/1-7
"76561198070981528", // Schmidt.A - SGM 1-7
"76561198829112234", // Lamb.J - SL 2/1/B/1-7
"76561197979976899", // Abate.L - SL 1/2/B/1-7
"76561197963550741", // Boyd.M - ASL 1/2/B/1-7
"76561197998065387", // Knights.Z - PSG 2/B/1-7
"76561198073062030", // Ocean.M - PSG 1/C/1-7
"76561198043140265", // Centeno.JP - PSG 2/C/1-7
"76561198149329790", // Mazinski.H - S3 Ops Lead
"76561198000293318", // Wulf.C - SL 2/1/A/1-7 / S3 Ops
"76561198102939824", // Geki.T - S3 Ops
"76561198419939876", // Spice.M - S3 Ops
"76561197998120736", // Hamm.C - MP
"76561198102058133", // Sullivan.A - SL 4/2/B/1-7
"76561198000446745", // Langlois - SL 4/1/A/1-7
"76561198084395456", // Gann.T - PL 2/C/1-7
"76561198018059926", // Guerra.J - SL 2/1/C/1-7
"76561198041764876", // Dio.B - ASL 4/2/B/1-7
"76561198009233566", // Jupiter.J - SL 1/2/C/1-7
"76561198078579510", // Saint.Z - SL 4/2/C/1-7
"76561198157988380", // Terp
"76561198117615154", // Verlot
"76561198004650806", // Stetchkov
"76561198133157952", // Weiss
"76561198168925648", // Varnado
"76561198008218746"
"76561198040743677", //Westcott.R
"76561198015391577", //Tucker.C
"76561198067151616", //Brian.F
"76561198862262781", //Beiter.A
"76561197997124640", //Liber.N
"76561198007243124", //Kleinman.H
"76561198013421442", //Nexhex.A
"76561197993187376", //SyniRon
"76561198028446303", //Jay.M
"76561198007260563", //Tharen.R
"76561197976646388", //Baeder.S
"76561198070981528", //Schmidt.A
"76561198076641897", //Summerfield.P
"76561198149329790", //Mazinski.H
"76561198102939824", //Geki.T
"76561198023841569", //LaCombe.M
"76561198076559776", //Sutodoreh.W
"76561198086107926", //Couvillion.T
"76561198009849378", //Stewart.B
"76561197979976899", //Abate.L
"76561197998065387", //Knights.Z
"76561198019973923", //Velasques.J
"76561198096129388", //Huber.B
"76561198067757697", //Moore-Allen.D
"76561198004650806", //Stetchkov.A
"76561198008137368", //Dread.M
"76561198879079263", //Spin.M
"76561198070476801", //Gerrish.T
"76561198431131358", //Sam.T
"76561198353424921", //Santoyo.T
"76561198136771473", //Turn.J
"76561198011822046", //Highman.J
"76561198010277095", //Mackey.A
"76561198072241080", //Whitehead.B
"76561198009233566", //Jupiter.J
"76561198144781604", //Zaren.T
"76561198021174042", //Robbi.J
"76561198212758445", //Vincent.L
"76561198829112234", //Lamb.J
"76561199020874454", //Kiser.C
"76561199005693720", //Eugene.R
"76561197992922101", //Thumper.N
"76561198103642859", //Lee.H
"76561199026860041", //Villmarson.L
"76561198042665952", //Fox.Z
"76561198041764876", //Dio.B
"76561198078826702" //Nomad.P

];

// Allowed individual player names. Note that this method is not very secure contrary to SteamIDs.
// For exemple: "Zbug"
GRLIB_whitelisted_names = [

];
//MP stuffs
MP_whitelisted_steamids = [
"76561197993187376", // Sypolt.R - S6 (for testing)
"76561198028446303", // Jay.M - MP 2IC
"76561198019973923", // Velasquez.J - MP Lead
"76561198968070623", // Connelly.M - MP Lead
"76561198103184850", // Davidson.J - MP
"76561198028913012", // Rozhkov.P - MP
"76561198010258244", // Volkerson.A - MP
"76561197998120736" // Hamm.C - MP
];
];

0 comments on commit 2dd97b1

Please sign in to comment.