From 6867ef24829d38035fef4a08edac583dec4edfae Mon Sep 17 00:00:00 2001 From: jenz Date: Sun, 8 Mar 2026 15:05:44 +0100 Subject: [PATCH] why did we not auto kick for this before?.... oh well lost knowledge --- PlayerManager/scripting/PlayerManager_Connect.sp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/PlayerManager/scripting/PlayerManager_Connect.sp b/PlayerManager/scripting/PlayerManager_Connect.sp index a7126e5..a01ea80 100644 --- a/PlayerManager/scripting/PlayerManager_Connect.sp +++ b/PlayerManager/scripting/PlayerManager_Connect.sp @@ -229,6 +229,7 @@ public bool Filter_NoSteam(const char[] sPattern, Handle hClients) //---------------------------------------------------------------------------------------------------- public EConnect OnClientPreConnectEx(const char[] sName, char sPassword[255], const char[] sIP, const char[] sSteam32ID, char sRejectReason[255]) { + //LogMessage("OnClientPreConnectEx sName: %s. sRejectReason: %s. sSteam32ID: %s", sName, sRejectReason, sSteam32ID); char sAuthID[32]; for(int client = 1; client <= MaxClients; client++) { @@ -274,6 +275,7 @@ public void OnClientAuthorized(int client, const char[] sAuthID) 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)) @@ -283,6 +285,7 @@ public void OnClientAuthorized(int client, const char[] sAuthID) return; } } + */ if(!g_hCvar_BlockSpoof.BoolValue || !g_hDatabase) return; @@ -478,11 +481,7 @@ public void SQL_OnQueryCompleted(Database db, DBResultSet results, const char[] { LogAction(client, -1, "\"%L\" tried to join with a legitimate steamid while not authenticated with steam. Refusing connection, IPs dont match. (Known: %s | Current: %s)", client, sResultAddress, sAddress); static char sCountry[32]; - //we were directly got a problem with an algerian. this is just a specific issue with a specific solution. - if (GeoipCountry(sAddress, sCountry, sizeof(sCountry)) && StrEqual(sCountry, "Algeria", false)) - { - KickClient(client, "Trying to join with a legitimate steamid while not authenticated with steam."); - } + KickClient(client, "Trying to join with a legitimate steamid while not authenticated with steam."); return; } }