AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Name Registration / Management 2.04 (https://forums.alliedmods.net/showthread.php?t=5613)

twistedeuphoria 09-06-2004 21:10

Name Registration / Management 2.04
 
2 Attachment(s)
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

Shinko 09-06-2004 21:36

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

twistedeuphoria 09-07-2004 21:50

@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.

Dicope 09-08-2004 09:54

maybe yu can do it this way:

user registers name
user registers 2. name
user looses 1. name

Infra 09-08-2004 12:40

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

Great job twistedeuphoria, nice plugin...

twistedeuphoria 09-08-2004 22:33

@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. :D

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.

ng2000 09-09-2004 11:57

Perhaps its possible to save the Steam_ID and the one or two allowed registered Nicknames into mysql table?

twistedeuphoria 09-10-2004 01:26

Update:
Added Cvar to control max names a player may register :up: !

twistedeuphoria 09-10-2004 14:11

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.

Shinko 09-10-2004 21:25

And the cvar for max names is?


All times are GMT -4. The time now is 11:15.

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