From 622f055faa97c717580a558b1367e32c3f1ba613 Mon Sep 17 00:00:00 2001 From: jenz Date: Wed, 11 Dec 2024 15:28:55 +0100 Subject: [PATCH] kicking algerian nosteamers simply --- PlayerManager/scripting/PlayerManager_Connect.sp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/PlayerManager/scripting/PlayerManager_Connect.sp b/PlayerManager/scripting/PlayerManager_Connect.sp index 88bddf04..a7126e52 100644 --- a/PlayerManager/scripting/PlayerManager_Connect.sp +++ b/PlayerManager/scripting/PlayerManager_Connect.sp @@ -93,7 +93,8 @@ public void OnPluginEnd() //---------------------------------------------------------------------------------------------------- public bool SteamClientAuthenticatedEx(const char[] sAuthID) { - if (StrEqual(sAuthID, "STEAM_0:1:32247009")) + //neons steam ID. he got a vac ban, this lets him avoid it. told him he should get a new account but he never got a new one. + if (StrEqual(sAuthID, "STEAM_0:1:32247009")) return true; return SteamClientAuthenticated(sAuthID); @@ -269,6 +270,19 @@ public void OnClientPutInServer(int client) //---------------------------------------------------------------------------------------------------- public void OnClientAuthorized(int client, const char[] sAuthID) { + char sAddress[16]; + GetClientIP(client, sAddress, sizeof(sAddress)); + static char sCountry[32]; + //just kicking all nosteamers from algeria. not very cool but so be it. + if (GeoipCountry(sAddress, sCountry, sizeof(sCountry)) && StrEqual(sCountry, "Algeria", false)) + { + if (!SteamClientAuthenticatedEx(sAuthID)) + { + LogMessage("kicking client for being algerian nosteamer: name: %N. sAuthID: %s", client, sAuthID); + KickClient(client, "Bye. if you dont think this was deserved please contact us on discord."); + return; + } + } if(!g_hCvar_BlockSpoof.BoolValue || !g_hDatabase) return;