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

Antiflood with name change spam protection


Post New Thread Reply   
 
Thread Tools Display Modes
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 01-17-2005 , 14:35  
Reply With Quote #21

Morpheus wants it to be modiefied to use the
AMX Bans banning, so the bans are in his AMX Bans
database with name, reason etc.
FeuerSturm is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 01-17-2005 , 16:33  
Reply With Quote #22

Ok whatever you say. :-)

New cvar:

amx_nameflood_useamxbans

Default 0. Set to 1 if you intend to ban using this AMXBans plugin.

Tell me if I broke anything.
Johnny got his gun is offline
Morpheus
Senior Member
Join Date: Mar 2004
Old 01-17-2005 , 17:58  
Reply With Quote #23

Weeeeeee thx m8s! :-)

THATS was exactly what I needed..

Running on 5 servers now, testing.. :-)

MANY thx to Firestorm and u Johnny ..

Cheers

Morpheus
Morpheus is offline
jsterling
SourceMod Donor
Join Date: Mar 2004
Location: Denver, CO, USA
Old 01-26-2005 , 17:33  
Reply With Quote #24

Ok, so it works fine except when you view the amx_bans web interface the last two numbers in a steamid are displayed before the reason

Code:
46" "Name Change Flooding"
http://servers.cause4alarm.net/bans/...ls.php?bid=337

Look at the reason for my example. Thanks.
jsterling is offline
Send a message via AIM to jsterling
Curryking
Veteran Member
Join Date: Jun 2004
Location: 51.22°N / 6.77°E
Old 03-15-2005 , 00:57  
Reply With Quote #25

Yesterday I we had 2 guys on our server who had this namechanging-thing, very anoying, so i decided to install your plugin. Tested it our works fine, the only thing is when i change my name more often than defined i just get the "**Stop flooding the server** message via console not via chat, is that right or have i set anything wrong? Cause when you have this hack or change your name ingame via script (AFK-scripts etc.) you won't notice the warning...

Thx!

Curryking
Curryking is offline
googol
Junior Member
Join Date: Sep 2004
Location: 127.0.0.1
Old 03-15-2005 , 01:03  
Reply With Quote #26

Quote:
Originally Posted by Curryking
Yesterday I we had 2 guys on our server who had this namechanging-thing, very anoying, so i decided to install your plugin. Tested it our works fine, the only thing is when i change my name more often than defined i just get the "**Stop flooding the server** message via console not via chat, is that right or have i set anything wrong? Cause when you have this hack or change your name ingame via script (AFK-scripts etc.) you won't notice the warning...

Thx!

Curryking
Find these lines:
Code:
      g_nextNameChange[id - 1] = get_gametime() + get_cvar_float("amx_nameflood_time")
      console_print(id, "** %L **", id, "STOP_FLOOD")

Add this line right after that:
Code:
      client_print(id, print_chat, "Stop flooding, you can only change your name once every %f seconds!", get_cvar_float("amx_nameflood_time"))
googol is offline
Curryking
Veteran Member
Join Date: Jun 2004
Location: 51.22°N / 6.77°E
Old 03-15-2005 , 01:10  
Reply With Quote #27

That's it - now it's perfect for me THX!!

CK
Curryking is offline
Mlk27
Veteran Member
Join Date: May 2008
Old 10-15-2008 , 00:44   Re: Antiflood with name change spam protection
Reply With Quote #28

this plugin is a modified from old antiflood.sma.

can someone please update this? use the newest antiflood.sma from 1.8.1.3647

here:
Code:
/* AMX Mod X
*   Anti Flood Plugin
*
* by the AMX Mod X Development Team
*  originally developed by OLO
*
* This file is part of AMX Mod X.
*
*
*  This program is free software; you can redistribute it and/or modify it
*  under the terms of the GNU General Public License as published by the
*  Free Software Foundation; either version 2 of the License, or (at
*  your option) any later version.
*
*  This program is distributed in the hope that it will be useful, but
*  WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
*  General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with this program; if not, write to the Free Software Foundation,
*  Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*  In addition, as a special exception, the author gives permission to
*  link the code of this program with the Half-Life Game Engine ("HL
*  Engine") and Modified Game Libraries ("MODs") developed by Valve,
*  L.L.C ("Valve"). You must obey the GNU General Public License in all
*  respects for all of the code used other than the HL Engine and MODs
*  from Valve. If you modify this file, you may extend this exception
*  to your version of the file, but you are not obligated to do so. If
*  you do not wish to do so, delete this exception statement from your
*  version.
*/

#include <amxmodx>

new Float:g_Flooding[33] = {0.0, ...}
new g_Flood[33] = {0, ...}

new amx_flood_time;

public plugin_init()
{
	register_plugin("Anti Flood", AMXX_VERSION_STR, "AMXX Dev Team")
	register_dictionary("antiflood.txt")
	register_clcmd("say", "chkFlood")
	register_clcmd("say_team", "chkFlood")
	amx_flood_time=register_cvar("amx_flood_time", "0.75")
}

public chkFlood(id)
{
	new Float:maxChat = get_pcvar_float(amx_flood_time)

	if (maxChat)
	{
		new Float:nexTime = get_gametime()

		if (g_Flooding[id] > nexTime)
		{
			if (g_Flood[id] >= 3)
			{
				client_print(id, print_notify, "** %L **", id, "STOP_FLOOD")
				g_Flooding[id] = nexTime + maxChat + 3.0
				return PLUGIN_HANDLED
			}
			g_Flood[id]++
		}
		else if (g_Flood[id])
		{
			g_Flood[id]--
		}

		g_Flooding[id] = nexTime + maxChat
	}

	return PLUGIN_CONTINUE
}
Mlk27 is offline
xlenonz
Member
Join Date: Jun 2007
Old 04-01-2009 , 21:44   Re: Antiflood with name change spam protection
Reply With Quote #29

some cheaters disable that protect, and can change name ???
xlenonz is offline
Bumerang06
Junior Member
Join Date: Jun 2008
Old 05-04-2009 , 05:58   Re: Antiflood with name change spam protection
Reply With Quote #30

q key will prohibit the system, please press is constantly
Bumerang06 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 11:14.


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