View Single Post
Author Message
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 03-26-2018 , 23:39   Is it possible to ban hackers who spoof their steam IDs?
Reply With Quote #1

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"cmdBanCheckADMFLAG_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 clientint args)
{
    if (
args 0)
    {
        
ReplyToCommand(client"Usage: sm_bancheck");
    }

    for (
int iPlayer 1iPlayer <= MaxClientsiPlayer++)
    {
        
iBanCheck(iPlayer);
    }
}

int iBanCheck(int client)
{
    
char steamid[64];
    
GetClientAuthId(clientAuthId_Steam2steamidsizeof(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!
__________________

Last edited by Psyk0tik; 03-27-2018 at 01:29. Reason: Marked as [Solved]
Psyk0tik is offline