Raised This Month: $ Target: $400
 0% 

Short Name Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
lailoken
Junior Member
Join Date: Oct 2006
Old 01-05-2007 , 17:36   Short Name Manager
Reply With Quote #1

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)
Attached Files
File Type: amxx shortnames.amxx (3.3 KB, 239 views)
File Type: sma Get Plugin or Get Source (shortnames.sma - 979 views - 1.7 KB)
lailoken is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-05-2007 , 18:29   Re: Short Name Manager
Reply With Quote #2

Redundant to at least Restrict Names though I'm sure there are others.

Nice try. Keep coding. Unapproved.

In the future, don't attach the amxx file. It gets automatically generated when you attach the sma.
__________________
Brad is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:10.


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