Name Checker 1.5
This plugins checks the players name on connect and on change. It kicks/bans a player, that changes his name too often or does some hacking with his name.
I've copied some ideas and code snippets from Kigen's Anti-Cheat
. Thanks to him for that.
This Plugin is tested on DOD:S but should work on all other source games and mods too. Please reply if you could verify this.
Just compile the source and/or copy the compiled .smx to your sourcemod plugins folder.
Just shows the Name Checker version
Blocks name changes more than x times per map, default: 4
The first x characters of the name must be unique, default: 16
How many characters must be different at least (0 = disable), default: 2
How long should be banned - in minutes (0 = permanent), default: 5
How many special characters (not readable) are allowed, default: 16
How many multi-byte characters (arabian, chinese, ...) are allowed, default: 31
What action is to be done if a player changes his name to often? (deny|kick|ban), default: kick
What action is to be done if a player has an invalid name? (deny|kick|ban), default: kick
Minimum required length of a name, default: 1
Maximum allowed length of a name, default: 63
Tell the player the detailled reason?, default: 1
This file may contain a list of bad names or parts (one per line, may contain any character, even multibyte).
This file is created if not found. Default content is unnamed
. Comments are NOT allowed and will be seen as names, empty lines will be ignored. Spaces before and after a name will be ignored. The number of entries is not limited - but keep it small
Be sure to block the right names! Check is NOT case sensitve and it is searched WITHIN a name. So a bad name like sex would block a name like PlaysExtremelyBad too.
This file will be generated if it does not exist. It contains all configuration options.
- a lot of changes
- added detailled output of kick reason
- added "deny" action (thanks to Roachy
for the idea)
- added automated generation of a config file
- bug fixes
- some minor changes - I did not publish
- added bad name file (see "Files" above)
- added variable for minimum required name length
- added variable for max allowed name length
- First stable public release
- Now uses sourcebans (if available)
- fixed an issue with names of length 1