Hey, I'm wondering if it is possible to catch these recent pesky hackers on TF2 who seem to bypass steam authorization by spoofing their steam IDs. When I check the console for their steam ID, they have this as their steam ID: STEAM_ID_STOP_IGNORING_RETVALS
I tried using this method but I feel that it is either unreliable or inefficient.
PHP Code:
public void OnPluginStart()
{
RegAdminCmd("sm_bancheck", cmdBanCheck, ADMFLAG_KICK, "Automatically checks the server for any hackers with a spoofed Steam ID and bans them.");
}
public void OnClientPostAdminCheck(int client)
{
iBanCheck(client);
}
public Action cmdBanCheck(int client, int args)
{
if (args > 0)
{
ReplyToCommand(client, "Usage: sm_bancheck");
}
for (int iPlayer = 1; iPlayer <= MaxClients; iPlayer++)
{
iBanCheck(iPlayer);
}
}
int iBanCheck(int client)
{
char steamid[64];
GetClientAuthId(client, AuthId_Steam2, steamid, sizeof(steamid));
if (StrContains(steamid, "STEAM_ID_STOP_IGNORING_RETVALS", false) || StrContains(steamid, "STEAM_ID", false) || StrContains(steamid, "STEAM_ID_STOP_IGNORING", false) || StrContains(steamid, "STOP_IGNORING", false))
{
ServerCommand("sm_ban %s 0 \"Banned for hacking.\"", steamid);
}
}
Any help is appreciated. Thanks!
__________________