Raised This Month: $95 Target: $400
 23% 

Name Registration / Management 2.04


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   devicenull (200)
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 09-06-2004 , 22:10   Name Registration / Management 2.04
Reply With Quote #1

This plugin allows you to do many things with names, including register, unregister, block from use, block phrases from use, force registration, force usage of registered names, enforce minimum name lengths and disallow peoples' names to contain each other.

This plugin will work with SQL or files by define (check the list of defines) and will also work with LAN or internet (automatically detected each time a command is used).

Admin Commands:
All admin commands have definable access level.
-blockname <name> - Block a name from being used.
-bname <name> - Same as blockname.
-blocklist - Display a list of blocked names.
-blist - Same as block list
-removename <name> - Remove all restrictions on a name.
-remname <name> - Same as removename.
-pblockname <name> - Block a phrase from use in a name.
-pblock <name> - Same as pblockname.

Commands:
All commands restrictable by define.
-registername - Register your current name.
-regname - Same as registername.
-unregistername - Unregister your current name.
-uregname - Same as unregistername.
-listnames - Display a list of your registered names.
-lnames - Same as listnames.

Cvars:
Values for punish cvars are as follows:
-0 - Do not change their name but warn and kick them
-1 - Change their name to a specific name (Registered_Name, Blocked_Name, etc.) then warn and kick them
-2 - Change their name to a random name in punishname.txt then warn them
-3 - Change their name to a random name in punishname.txt then warn and kick them
-4 - Change their name to one of their own registered names and tell them what happened (if they don't have one this is treated as a 0)
Note: Of course, turning the requirement to register on and setting the punish level at 4 is pointless, so it is not included.
-amx_minnamelen (default 4) - Set minimum name length for players.
-amx_namelenpunish (default 0) - Set punishment for having too short of a name.
-amx_containname (default 1) - Set check to see if one player's name contains another's.
-amx_containpunish (default 0) - Set punishment for having a name contained or containing another player's name.
-amx_pblockpunish (default 0) - Set punishment for using a name which contains a phrase that has been blocked.
-amx_regpunish (default 0) - Set punishment for using someone else's registered name.
-amx_forcereg (default 0) - Force users to have a name registered? 0 = No | 1 = Yes
-amx_notregpunish (default 0) - Set punishment for not having a registered name (if amx_forcereg is 1)
-amx_forceuse (defualt 0) - Force people with registered names to use one of them.
-amx_maxregnames (default 5) - Set the maximum amount of names a player can register.
-amx_allowreg (default 1) - Set whether or not only admins can register. 0 = Admins only | 1 = Everyone can register
-amx_viciouswait (default 0; in seconds) - How long to wait for a player to spawn to change their name. If they don't spawn in time they will be spawned, have their name changed then slayed by the plugin (without affecting their score)


Defines:
-SQLON (default 0) - 0 = Use file | 1 = Use SQL

-REG_ACCESS (default ADMIN_USER) - Set access required to register a name.
-UNREG_ACCESS (default ADMIN_USER) - Set access required to unregister a name.
-REM_NAME_ACCESS (default ADMIN_KICK) - Set access required to remove restrictions on a name.
-BLOCK_ACCESS (default ADMIN_KICK) - Set access required to block a name from use.
-P_BLOCK_ACCESS (default ADMIN_KICK) - Set access required to block a phrase from use in names.
-BLOCK_LIST_ACCESS (default ADMIN_CHAT) - Set access required to view all blocks and phrase blocks.
-LIST_NAMES_ACCESS (default ADMIN_USER) - Set access required to view all your registered names.

Please notice that the plugin file name has changed from previous versions.

-How do I add punishnames to SQL?
You will need to insert new values into the table in this format: "name" "type"
(Type = s for short | c = name containment | p = phrase blocked | b = blocked name | r = already registered name | n = not registered)
Mirror-ish
Attached Files
File Type: sma Get Plugin or Get Source (nameregistration.sma - 8831 views - 80.9 KB)
File Type: txt regchangeloghelp.txt (7.7 KB, 4585 views)
__________________
twistedeuphoria is offline
Shinko
Member
Join Date: Aug 2004
Old 09-06-2004 , 22:36  
Reply With Quote #2

Is it possible to make it so they can register only one name? Some people will register a whole bunch of names and others wont be able to use them, though its really their name.

Some people are stupid like that.

Thanks
Shinko is offline
Send a message via AIM to Shinko
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 09-07-2004 , 22:50  
Reply With Quote #3

@Shinko: LOL I'm working on it.

Mini Update(didn't want to post without some type of update): Plugin now displays a message when registration is successfull. Not much but people on my server were getting confused(and so was I) as to whether or not the registration worked.
__________________
twistedeuphoria is offline
Dicope
Member
Join Date: Aug 2004
Old 09-08-2004 , 10:54  
Reply With Quote #4

maybe yu can do it this way:

user registers name
user registers 2. name
user looses 1. name
Dicope is offline
Infra
Senior Member
Join Date: Aug 2004
Location: California
Old 09-08-2004 , 13:40  
Reply With Quote #5

In other words. You can only have one name registered at a time...

Great job twistedeuphoria, nice plugin...
__________________
--Infra
Infra is offline
Send a message via AIM to Infra
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 09-08-2004 , 23:33  
Reply With Quote #6

@Infra thanks

Naw what I'm gonna do(I would be workin on it but homework...) is format all the names together on one vault line then parse them out to get the names. I hope/think that will work. Then you can have like 5 names or something like that. Any suggestions for number of names? Or you can delete from the vault yourself lol.

Edit: Hrmmm not gonna work that way. Just gotta do it yourself till i find a better way.

Edit2: Okay, just rethought the way I was gonna do it. Maybe I post new one tommorow.

Edit3: I don't know SQL but I'm testing a new version right now.
__________________
twistedeuphoria is offline
ng2000
Junior Member
Join Date: Mar 2004
Old 09-09-2004 , 12:57  
Reply With Quote #7

Perhaps its possible to save the Steam_ID and the one or two allowed registered Nicknames into mysql table?
ng2000 is offline
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 09-10-2004 , 02:26  
Reply With Quote #8

Update:
Added Cvar to control max names a player may register !
__________________
twistedeuphoria is offline
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 09-10-2004 , 15:11  
Reply With Quote #9

Update:
Added unregistername command.
Added short versions of both commands.
Added message when you register or unregister a name stating how many names you have registered and how many more names you can register.
__________________
twistedeuphoria is offline
Shinko
Member
Join Date: Aug 2004
Old 09-10-2004 , 22:25  
Reply With Quote #10

And the cvar for max names is?
Shinko is offline
Send a message via AIM to Shinko
Reply


Thread Tools
Display Modes

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 14:22.


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