diff --git a/PlayerManager/scripting/PlayerManager_Connect.sp b/PlayerManager/scripting/PlayerManager_Connect.sp index 30627d5..88bddf0 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; } }