Matador 0 Posted August 13, 2015 Share Posted August 13, 2015 Description: 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 po[CENSORED]r 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. Name: Restrict Names Version: Author : Brad Version : 1.2a Installation: .\configs\restrictnames.ini .\data\lang\restrictnames.txt .\plugins\restrictnames.amxx Cvar of the plugin restnames_check_names <0|1>Indicates if this plugin should check the names against the restriction list. 0: Do not check the names.1: Check the names.Default value is 1.restnames_amxban <0|1>Indicates method of banning players. 0: ban via 'banid'1: ban via 'amx_ban' (use only if you have the amxbans plugin installed)Default value is 0.restnames_check_bots <0|1>Indicates if this plugin should check the names of bots for violations. 0: Do not check the bots.1: Check the names of bots.Default value is 1.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. 0: check everyone1: check everyone except players with immunity flagDefault value is 0.The immunity flag is set as ADMIN_IMMUNITY by default but can be changed in the script. Download: Get Plugin or Get Source restrictnames.txt restrictnames.zip Link to comment Share on other sites More sharing options...
Recommended Posts