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

Changename 3 times in 10 sec = ban


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ltv
Junior Member
Join Date: Jul 2007
Old 08-07-2007 , 08:49   Changename 3 times in 10 sec = ban
Reply With Quote #1

Hi.

I search plug-in which ban players, who very often change name.. approximately: 3-5 times for 10 seconds and then ban this player.

Can anybody help me ?
Ltv is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-07-2007 , 16:47   Re: Changename 3 times in 10 sec = ban
Reply With Quote #2

at the top of the sma you can customize the plugin:

change this to limit the amount of name changes
Code:
#define MAX_CHANGES 5
change this to determine the bantime in minutes of a player for changing names too quickly
Code:
#define BAN_TIME 5
Attached Files
File Type: sma Get Plugin or Get Source (no_name_spam.sma - 710 views - 1.1 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 08-07-2007 , 16:48   Re: Changename 3 times in 10 sec = ban
Reply With Quote #3

What is the exact point of this? I don't get it.. They change there name, whats so wrong?
X-Script is offline
couk
BANNED
Join Date: Jul 2007
Location: United Kingdom
Old 08-07-2007 , 16:58   Re: Changename 3 times in 10 sec = ban
Reply With Quote #4

some ppl uses hacks and that hack auto changes name every second
couk is offline
Send a message via ICQ to couk Send a message via AIM to couk Send a message via MSN to couk
hugz`
Veteran Member
Join Date: Jul 2007
Location: In a house
Old 08-07-2007 , 17:10   Re: Changename 3 times in 10 sec = ban
Reply With Quote #5

Yeah some cheats use the name spam.. every second it changes like their name to "IM UNBEATABLE" or "UNBANNED" or "VISIT THIS SITE"

And it goes through a cycle.. over and over.. and it spams the chat.
There are scripts like that too.
__________________
hugz` is offline
Send a message via AIM to hugz`
Ltv
Junior Member
Join Date: Jul 2007
Old 08-07-2007 , 19:03   Re: Changename 3 times in 10 sec = ban
Reply With Quote #6

Nice! Thanks a lot!

I have a one question... on my server i have more plug-in with set_task in putinserver and in plugin_init with "loop" 10-15 seconds, it's bad for server or no ?
Ltv is offline
Arion
Senior Member
Join Date: Mar 2007
Old 08-08-2007 , 11:26   Re: Changename 3 times in 10 sec = ban
Reply With Quote #7

Ltv, only if you run your server in a 486

I have lots of plugins with set_task in putinserver(), and gaming's fine
__________________
Arion is offline
Send a message via MSN to Arion
hcxx
Senior Member
Join Date: Jan 2007
Location: 127.0.0.1
Old 08-08-2007 , 12:17   Re: Changename 3 times in 10 sec = ban
Reply With Quote #8

Thx you X-olent but maybe you can add amxbans support for this?
hcxx is offline
Ltv
Junior Member
Join Date: Jul 2007
Old 08-08-2007 , 13:13   Re: Changename 3 times in 10 sec = ban
Reply With Quote #9

Quote:
Originally Posted by hcxx View Post
Thx you X-olent but maybe you can add amxbans support for this?
If you want only add ban with amxbans

change
Code:
server_cmd("kick #%d ^"Don't Spam Namechange^"; wait; banid %d ^"%s^"; wait; writeid", get_user_userid(id), BAN_TIME, authid);
to

Code:
server_cmd("amx_ban ^"%s^" %d ^"Don't Spam Namechange^"", BAN_TIME, authid);
I think it should work
Ltv is offline
Arion
Senior Member
Join Date: Mar 2007
Old 08-08-2007 , 14:20   Re: Changename 3 times in 10 sec = ban
Reply With Quote #10

Ltv, I think you changed the declaration of variables:

", BAN_TIME, authid);

shouldn't be

", authid, BAN_TIME);
__________________
Arion is offline
Send a message via MSN to Arion
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 09:06.


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