just allows more people from algeria to play than blocking all
This commit is contained in:
parent
4d1867a448
commit
dcc48282a7
@ -3,6 +3,7 @@
|
||||
#include <sourcemod>
|
||||
#include <basecomm>
|
||||
#include <connect>
|
||||
#include <geoip>
|
||||
|
||||
#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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user