Raised This Month: $51 Target: $400
 12% 

clan name spam


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pubhero
Veteran Member
Join Date: Aug 2012
Location: Central Europe
Old 04-15-2016 , 16:08   clan name spam
Reply With Quote #1

Hi anyone can tell me a good solution against the loser clan name change spammers, like this idiot?
Code:
L 04/12/2016 - 21:17:53: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯bunnyhop")
L 04/12/2016 - 21:17:53: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:17:53: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯bunnyhop")
L 04/12/2016 - 21:17:53: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimbot")
L 04/12/2016 - 21:17:54: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:17:55: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:17:55: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimbot")
L 04/12/2016 - 21:17:56: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:17:56: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:17:56: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:17:56: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:17:57: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimbot")
L 04/12/2016 - 21:17:57: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:17:58: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:17:58: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimbot")
L 04/12/2016 - 21:17:58: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:17:58: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:17:59: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:17:59: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimbot")
L 04/12/2016 - 21:17:59: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:04: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:04: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimbot")
L 04/12/2016 - 21:18:05: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯bunnyhop")
L 04/12/2016 - 21:18:05: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:05: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:05: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯bunnyhop")
L 04/12/2016 - 21:18:05: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:05: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:06: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:06: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:06: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:06: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:06: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:06: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:07: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:07: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:07: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:07: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimbot")
L 04/12/2016 - 21:18:07: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:07: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:08: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimbot")
L 04/12/2016 - 21:18:08: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:08: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:09: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:09: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimbot")
L 04/12/2016 - 21:18:10: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:10: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:10: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:10: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimbot")
L 04/12/2016 - 21:18:10: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:11: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:11: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:11: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:11: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:11: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:13: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimbot")
L 04/12/2016 - 21:18:13: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:15: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:15: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimbot")
L 04/12/2016 - 21:18:16: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:17: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯bunnyhop")
L 04/12/2016 - 21:18:17: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:18: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯bunnyhop")
L 04/12/2016 - 21:18:18: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:18: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:19: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:20: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯bunnyhop")
L 04/12/2016 - 21:18:20: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:20: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯bunnyhop")
L 04/12/2016 - 21:18:21: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimbot")
L 04/12/2016 - 21:18:21: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:21: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:22: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:23: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:23: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimbot")
L 04/12/2016 - 21:18:23: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:23: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯wallhack")
L 04/12/2016 - 21:18:24: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimlock")
L 04/12/2016 - 21:18:25: "hANNEs-SaiyajiN ♥<723><[U:1:202158256]><TERRORIST>" triggered "clantag" (value "☯aimbot")
pubhero is offline
xines
Veteran Member
Join Date: Aug 2013
Location: Denmark
Old 04-15-2016 , 18:22   Re: clan name spam
Reply With Quote #2

Quote:
Originally Posted by pubhero View Post
Hi anyone can tell me a good solution against the loser clan name change spammers, like this idiot?
Best option would be this:
But requires 1.8 Sourcemod:
https://forums.alliedmods.net/showpo...79&postcount=6


Else try use and modify this script, sorry if translation is abit off, had to translate from russian to english, thanks google translate<3
PHP Code:
#pragma semicolon 1
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
#include <cstrike>

#define PLUGIN_VERSION "1.0.0.0"
public Plugin:myinfo =
{
    
name "No Tag Flood",
    
author "AlexTheRegent",
    
description "",
    
version PLUGIN_VERSION,
    
url ""
}

#pragma newdecls required
char g_szOldTag[MAXPLAYERS+1][12];
int g_iWarnings[MAXPLAYERS+1] = 0;
int g_iMaxWarnings;
int g_iBanLength;

public 
void OnPluginStart() 
{
    
CreateConVar("sm_notagflood_maxwarns""3""maximum tag changes pr connection"FCVAR_PLUGINtrue1.0);
    
CreateConVar("sm_notagflood_banlen""10""Ban in minutes (0 - only kick) (-1 Permanent ban)"FCVAR_PLUGIN);
}

public 
void OnConfigsExecuted() 
{
    
g_iMaxWarnings FindConVar("sm_notagflood_maxwarns").IntValue;
    
g_iBanLength FindConVar("sm_notagflood_banlen").IntValue;
}

public 
void OnClientPutInServer(int iClient)
{
    
CS_GetClientClanTag(iClientg_szOldTag[iClient], sizeof(g_szOldTag[]));
    
g_iWarnings[iClient] = 0;
}

public 
void OnClientSettingsChanged(int iClient)
{
    if ( 
iClient && iClient <= MaxClients && IsClientInGame(iClient) ) {
        
char szCurrentTag[12];
        
CS_GetClientClanTag(iClientszCurrentTagsizeof(szCurrentTag));
        if ( 
strcmp(szCurrentTagg_szOldTag[iClient], true) ) {
            if ( ++
g_iWarnings[iClient] >= g_iMaxWarnings ) {
                if ( 
g_iBanLength ) {
                    
ServerCommand("sm_ban #%d %d \"Change of tag is too frequent (ban %d in minutes)\""GetClientUserId(iClient), g_iBanLengthg_iBanLength);
                    
ServerCommand("sm_kick #%d \"Change of tag is too frequent (ban %d in minutes)\""GetClientUserId(iClient), g_iBanLength);
                }
                else if ( 
g_iBanLength == -) {
                    
ServerCommand("sm_ban #%d 0 \"You are banned forever due to frequent change of tag\""GetClientUserId(iClient));
                    
ServerCommand("sm_kick #%d \"You are banned forever due to frequent change of tag\""GetClientUserId(iClient));
                }
                else {
                    
ServerCommand("sm_kick #%d \"Too frequent change of tag\""GetClientUserId(iClient));
                }
                return;
            }
            
strcopy(g_szOldTag[iClient], sizeof(g_szOldTag[]), szCurrentTag);
        }
    }

__________________
xines is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-15-2016 , 20:07   Re: clan name spam
Reply With Quote #3

...seems this require logging enabled (log on) and players on server to start game.
*edit
"best option.." wtf :D

PHP Code:
#include <regex>
Regex regex;

public 
OnPluginStart()
{
    new 
String:error[256];

    if( (
regex CompileRegex("^.*<(\\d+)><"_errorsizeof(error))) == INVALID_HANDLE)
    {
        
SetFailState("Regex pattern fail %s"error);
    }

    
AddGameLogHook(gameloghook);
}

public 
Action gameloghook(const char[] message)
{
    
//"Bacardi<2><STEAM_1:1:xxxxx><TERRORIST>" triggered "clantag" (value "SM")

    
static userids[MAXPLAYERS+1];
    static 
counter[MAXPLAYERS+1];
    static 
timestamp[MAXPLAYERS+1];

    if(
StrContains(message"triggered \"clantag\"") > 0)
    {
        new 
substrings MatchRegex(regexmessage);

        if(
substrings 1)
        {
            new 
String:buffer[30];
            
GetRegexSubString(regex1buffersizeof(buffer));
            new 
userid StringToInt(buffer);
            new 
client GetClientOfUserId(userid);

            if(
client != && IsClientInGame(client))
            {
                if(
userids[client] == userid)
                {
                    if(
timestamp[client] >= GetTime())
                    {
                        
counter[client]++;

                        if(
counter[client] >= 5)
                        {
                            
KickClient(client"Spamming clantag");
                        }
                    }
                    else
                    {
                        
counter[client] = 0;
                    }
                    
timestamp[client] = GetTime()+3;
                }
                else
                {
                    
userids[client] = userid;
                    
counter[client] = 0;
                }
            }
        }
    }
    return 
Plugin_Continue;

__________________
Do not Private Message @me

Last edited by Bacardi; 04-16-2016 at 04:52.
Bacardi is offline
xines
Veteran Member
Join Date: Aug 2013
Location: Denmark
Old 04-15-2016 , 20:38   Re: clan name spam
Reply With Quote #4

Quote:
Originally Posted by Bacardi View Post
"best option.." wtf

Well, as you obv can see... It is the best option of the two i posted.
I never said that there is not a better way of blocking the spam? <- WTF back to you sir
__________________
xines is offline
pubhero
Veteran Member
Join Date: Aug 2012
Location: Central Europe
Old 04-16-2016 , 06:02   Re: clan name spam
Reply With Quote #5

Thank you for the fast help. Both of you.
Will trying both version.
Br.

Last edited by pubhero; 04-16-2016 at 06:03.
pubhero is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-16-2016 , 06:16   Re: clan name spam
Reply With Quote #6

But for note, when regular player join server or after map change, it could trigger clantag forward twice in game.

you can check this from logs
__________________
Do not Private Message @me

Last edited by Bacardi; 04-16-2016 at 06:17.
Bacardi is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode