View Single Post
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 08-28-2015 , 08:28   Re: [CSGO] SMAC Client Protection enhancement (clanid spam)
Reply With Quote #6

Something like this should block it, but it requires a recent snapshot of SourceMod 1.8:

PHP Code:
#pragma semicolon 1
#pragma newdecls required

#include <sourcemod>

float g_TagChangedTime[MAXPLAYERS+1];

public 
void OnClientConnected(int client)
{
    
g_TagChangedTime[client] = 0.0;
}

public 
Action OnClientCommandKeyValues(int clientKeyValues kv)
{
    
char sCmd[64];
    
    if (
kv.GetSectionName(sCmdsizeof(sCmd)) && StrEqual(sCmd"ClanTagChanged"false))
    {
        if (
g_TagChangedTime[client] && GetGameTime() - g_TagChangedTime[client] <= 60.0)
            return 
Plugin_Handled;
        
        
g_TagChangedTime[client] = GetGameTime();
    }
    
    return 
Plugin_Continue;

Quote:
Originally Posted by checkster View Post
Just smac_ignorecmd or how ever its written.
It's not possible to block using that command (yet). I'll update it once this feature moves to SM 1.7.
__________________
GoD-Tony is offline