Restrict Names 1.2a
3 Attachment(s)
Restrict Names 1.2a
This plugin will check a player's name when they enter the server and also if they change their name mid-game. It checks their name against a list of regex examples and if it matches any, the player will be punished as per the setting for that particular example (rename, kick, or ban). The regex examples are kept in .\configs\restrictnames.ini and I've included a sample file for you in the attached ZIP. The sample file is setup to rename players named 'player', players with too short a name (2 or fewer characters), and players with too long a name (over 26 characters), kick players with racist or homophobic terms in their name, and ban players that have 'japs', a variation of 'mygot', or 'game-deception' in their name (both japs and mygot are popular hacking clans while 'game-deception' is a name used in a hack with rapid name change). Name violations are recorded within the .\logs directory. One log file is created per month and is named in the format of restrictnamesMM.log where "MM" is the two-digit month number. The CVAR restnames_log_cnt can be used to set the number of log files to keep. Installation File Locations:
restrictnames.ini (collection of regex phrases to restrict) Each line has the following elements: <RegEx> <Reason> <PunishmentType> <PunishmentOption>
restnames_check_names <0|1> Indicates if this plugin should check the names against the restriction list.
restnames_amxban <0|1> Indicates method of banning players.
restnames_check_bots <0|1> Indicates if this plugin should check the names of bots for violations.
restnames_log_cnt <0..11> Specifies the number of previous month's logs to retain. The current month is always retained. Default is 2 months. restnames_immunity <0|1> Indicates if players with the immunity flag are checked for name violations.
The immunity flag is set as ADMIN_IMMUNITY by default but can be changed in the script. Compiler Options Most people will have no need for this section. Near the top of the script, there is a set of compiler options that define how the script is compiled. Code:
/*-----------------------------------------------------------
|
Credits
Idea for the plugin came from Anti-Bigot with RegEx Matching by Manip (updated by jtp10181). Translations:
Language Translations: If you have a set of new translations or updates to existing translations, please post them in the sister thread to this one: Restrict Names (Translations) Miscellaneous:
[2005-09-30] v1.2a
|
Nice plugin. I plan on using this. Good job.
|
First I want to say good job but I have a suggestion:
Quote:
Quote:
For rename: new name For ban: minutes For kick: Nothing This would be better than having the ban minutes be a cvar because some names you might want a perm ban or others 10 minutes or others 1hour and so on. Tell me what you think |
I thought about that Sui but never got around to implementing it (as I only ban permanently in regards to this plugin). I think it's a really good idea and I plan on doing it a bit later on. I definitely think it's a better way to handle it than how it's currently handled.
|
Feature request:
cvar to ignore bots Bug(?) report: Quote:
Quote:
Quote:
I just got renamed. |
Quote:
Quote:
When I had restnames_amxban set to 1, it wouldn't ban me. <-- That's the bug I found. When I had restnames_amxban set to 0, it did ban me as expected. <-- That's where I can't duplicate your problem. Try using all lowercase letters for the constants defining the player name in your regex phrase (i.e. "player" instead of "Player") as the names all get converted to lowercase before being compared to the regex phrases. Also of note, if you just use "player" as your regex phrase, it will catch all of the following:
If, after converting the sample names in your regex phrases to lowercase, you are still having problems, send me your INI via private message and I'll see what I can uncover. |
Uhm my fault :/
I had your standart Player ( ^(\(\d\))?player\b ) and my player in the restrictnames.ini If possible can you kick/ban the player as long as they try to connect? I have this in my users.ini to get rid of these "Player" 's "Player" "4jga89n6n4" "z" "a" ; Player |
Quote:
Quote:
Also, you should change the 'player' phrase from ^(\(\d\))?player\b to ^(\(\d\))?player$ . I've updated it in the download file. The original regex would catch "Player for Real". The new one correctly catches only 'player' or '(1)player' (where '1' is any single digit number). Quote:
If they change to an acceptable name, they won't get punished. Are you asking for a different behavior? |
|
All times are GMT -4. The time now is 13:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.