AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   Bad name banning (https://forums.alliedmods.net/showthread.php?t=57469)

TSCDan 07-05-2007 09:03

Bad name banning
 
4 Attachment(s)
Bad name banning
This is a pretty simple plugin to ban anybody who joins with or changes their name to something that contains a bad phrase in the bad_names.ini. I created this to ban people with myg0t/mygot in their name, but it has been modified for any name. For those of you who don't know, myg0t is a group/clan of people who blatantly hack and ruin other people's fun, and then gloat about it to their friends. I got a bit tired of people doing so, so I did something about it :)

At the request of ferret, I made this configurable to read any bad phrases from a config file. Thanks for all the help from the guys on IRC (Namely ferret :))

I have also added functionality of a whitelist: any steamID's that exist in it will not be banned no matter what the name is (as long as sm_bnb_allowimmun is 1). If sm_bnb_allowimmun is 0, you will be kicked/banned no matter what if you have a bad name.

I also added a version that has Admin 'b' flag immunity. I'm retaining the old version in case there are some people who would prefer not to give admin privs out.

Instructions
WHITELIST VERSION
Place BadNameBan.smx in plugins.
Place bnb_whitelist.ini and bad_names.ini in configs. Edit them to your liking (which names should be banned or kicked/which steamID's will not be banned).
Place the below cvars into your server.cfg (or any config that gets executed) and change them to what you would like.
ADMIN VERSION
Place BadNameBanAdmin.smx in plugins.
Place bad_names.ini in configs, and edit it to your liking (which names should be banned or kicked).
Place the below cvars into any config that gets executed and change them to your liking (with the exception of sm_bnb_allowimmun; it does nothing in this release).
Any admins with 'b' flag will not be kicked by this version.

Done! :D


cvars
sm_bnb_bantime - can be configured to set how long they should be banned for in minutes, default is -1 (just a kick), 0 = permanent.

sm_bnb_reason - reason for why the player was kicked/banned. Default is "Bad name"

sm_bnb_allowimmun - Allow immunities in the form of SteamID's in bnb_whitelist.ini.

sm_bnb_log - Allow kicks/bans to be logged to an external log file, (sourcemod/logs/bnb_log_mmddYYYY.log) 0 off, 1 on

changelog
1.59 (9/23/07) - Coulda sworn that worked in the past... fixed two issues. Fully functional now :)
1.58 (8/31/07) - Friggin vague documentation -_-* Fixed an issue with the flag being set in groups not working correctly. Should be all set now :)
1.57 (8/30/07) - Fixed an issue where the admin check was done before the admin privs were loaded from SQL.
1.56/1.46 (8/30/07) - Fixed a blonde moment (Using the rcon commands, not sm... gah!)
1.45 (8/29/07) - Fixed a typo on the whitelist version.
1.5 (8/24/07) - Different release to allow generic admins as immunity instead of separate whitelist. Admins with 'b' flag will not be banned.
Removed sm_bnb_allowimmun for new release.
1.4 - Added external logging capabilities via sm_bnb_log cvar (0 off, 1 on)
Kicks are logged to logs/bnb_log_mmddYYYY.log
1.3 - Added whitelist functionality and a few cvars.
Any SteamID's in configs/bnb_whitelist.ini will not be banned as long as sm_bnb_allowimmun is 1
Changed all cvar names to sm_*
1.2 - Completely redid the plugin, added configurable names and bantime, renamed plugin.
bnb_bantime can be -1 for just a kick, 0 for perm ban, or >0 for a ban in minutes.
Added a reason cvar to change the reason of why they were banned/kicked
Changed the default value of sm_bnb_bantime to -1 (just a kick)
Config file (configs/bad_names.ini) has a one-name per line config, pretty simple.
1.1 - Added mgb_version cvar
1.0 - Release

Rav3n! 07-05-2007 09:22

Re: myg0t name banning
 
what do you mean by myg0t

as a name or is this some other strange l33t speak think??

TSCDan 07-05-2007 09:23

Re: myg0t name banning
 
myg0t is a clan/group of hackers. They're obnoxious assholes who take pride in hacking and ruining the fun for other players, and they gloat about it on their site.

ferret 07-05-2007 09:23

Re: myg0t name banning
 
Please put a Plugin Description.

TSCDan 07-05-2007 09:37

Re: myg0t name banning
 
Quote:

Originally Posted by ferret (Post 498985)
Please put a Plugin Description.

Better? :) If not, could you clarify?

EDIT: o.O I just saw what you meant. I know I filled that in when I first posted this...

LIONz 07-05-2007 09:46

Re: myg0t name banning
 
Quote:

Originally Posted by TSCDan (Post 498991)
Better? :) If not, could you clarify?

EDIT: o.O I just saw what you meant. I know I filled that in when I first posted this...

this is for Insurgency mod?

TSCDan 07-05-2007 09:50

Re: myg0t name banning
 
Quote:

Originally Posted by LIONz (Post 498995)
this is for Insurgency mod?

I made this for CSS, and I'm not really familiar with Insurgency mod, but I suppose if sourcemod were compatible, this would also be compatible..

ferret 07-05-2007 10:23

Re: myg0t name banning
 
Suggestion:

Why make this for myg0t only? I suggest ban based on a list of names. Make a file in addons/sourcemod/configs/banned_names.ini

Read the list in on map change, and ban people who match it. That would be much more useful. Just remember, don't code "addons/sourcemod", use SM_PATH.

TSCDan 07-05-2007 10:40

Re: myg0t name banning
 
I 'spose I could do so, I was thinking about the idea as I was uploading this one. I guess that will be the next project (once I get some free time at work). Btw, I thought we were supposed to use BasePath()? (I remember reading that somewhere)

ferret 07-05-2007 10:42

Re: myg0t name banning
 
Well yeah, that's what I mean. SM_PATH is the first parameter in BuildPath().


All times are GMT -4. The time now is 09:19.

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