From dcc48282a79aaa57b4f6a242b5efad27e445f3f2 Mon Sep 17 00:00:00 2001 From: jenz Date: Fri, 22 Nov 2024 15:48:22 +0100 Subject: [PATCH] just allows more people from algeria to play than blocking all --- PlayerManager/scripting/PlayerManager_Connect.sp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PlayerManager/scripting/PlayerManager_Connect.sp b/PlayerManager/scripting/PlayerManager_Connect.sp index 30627d5a..88bddf04 100644 --- a/PlayerManager/scripting/PlayerManager_Connect.sp +++ b/PlayerManager/scripting/PlayerManager_Connect.sp @@ -3,6 +3,7 @@ #include #include #include +#include #pragma newdecls required @@ -462,7 +463,12 @@ public void SQL_OnQueryCompleted(Database db, DBResultSet results, const char[] else { 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); - //KickClient(client, "Trying to join with a legitimate steamid while not authenticated with steam."); + 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."); + } return; } }