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 client, KeyValues kv)
{
char sCmd[64];
if (kv.GetSectionName(sCmd, sizeof(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
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.
__________________