kicking algerian nosteamers simply
This commit is contained in:
parent
0b8522afed
commit
622f055faa
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user