I wrote a little plugin to help my game servers keep a handle on certain players who uses really short name, like
.
,
which makes it almost impossible to kick or manage the player while they're on the server.
Lately we've had quite a few of these people coming on and breaking the rules and none of the admins on the server at the time could really do anything. Even attempting to rename these people resulted in the server reporting that there were several users that matched.
The plugin merely prevents people from changing their nicks if their nick length is shorter than what's set as amx_min_namelength (default, 3), prevents anyone from connecting to the server if their nick is shorter than amx_min_namelength, and kicks any users on the server if they try to renick as anything defined in the badnames array.
So:
cvars:
amx_min_namelength : minumim name lenghth (default is 3)
badnames array:
By default, I set the arrays to hold a string length of 33 characters, and 2 elements in the array. This will be changed in future updates as I learn more about writing plugins for amxmodx, namely, writing and reading from configs inis so we can add badnames to the ini and have the plugin parse that instead of defining it in the script. I shall flogg myself accordingly for hardcoding those in after posting this plugin
However, if you're gusty enough, you can modify the array, even add more. But if it breaks, shame on you =)
Todo:
badnames.ini support
disconnect users on connections if their name is in the badnames array (ini)