View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-13-2022 , 15:34   Re: [Anticheat] Scan clients temp folder?
#12

well, can you see difference (sv_showimpacts) between server and client from log file, with this plugin example ?

PHP Code:
ConVar sv_showimpacts;

public 
void OnPluginStart()
{
    
sv_showimpacts FindConVar("sv_showimpacts");
    
    if(
sv_showimpacts == nullSetFailState("Can't find cvar sv_showimpacts");
}


public 
void OnClientPutInServer(int client)
{
    if(
IsFakeClient(client))
        return;

    
CreateTimer(10.0delayGetClientUserId(client), TIMER_FLAG_NO_MAPCHANGE);
}

public 
Action delay(Handle timerany data)
{
    
int client GetClientOfUserId(data);

    if(
client == || !IsClientInGame(client))
        return 
Plugin_Continue;




    
QueryCookie cookie QueryClientConVar(client"sv_showimpacts"queryfinishedsv_showimpacts.IntValue);

    if(
cookie == QUERYCOOKIE_FAILED)
    {
        
LogAction(-1, -1"%L QUERYCOOKIE_FAILED sv_showimpacts"client);
    }

    return 
Plugin_Continue;
}

public 
void queryfinished(QueryCookie cookieint clientConVarQueryResult result, const char[] cvarName, const char[] cvarValueany value)
{
    if(
result == ConVarQuery_Okay)
    {
        
LogAction(-1, -1"%L, %s: server=%i, client=%s"clientcvarNamevaluecvarValue);
    }
    else
    {
        
LogAction(-1, -1"%L, Failed %s: ConVarQueryResult %i"clientcvarNameresult);
    }

__________________
Do not Private Message @me
Bacardi is offline