Thread: Name Lock
View Single Post
Plugin Info:     Modification:          Category:          Approver:   Brad (55)
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-22-2006 , 19:14   Name Lock
Reply With Quote #1

This plugin allows admins to prevent players from changing their names.
It also allows a cvar to be changed, which will lock a players name if it is above a certain character limit.

CMDS:
amx_namel <player> <name> - redefines a players name, checking its length.

amx_lock_name <player> - locks this clients name. They cannot change it.

amx_unlock_name <player> - unlocks this clients name. They can change it.

DEFINITIONS:
ADMIN_NAMELOCK_LEVEL - defines admin with name lock level. Default is ADMIN_LEVEL_B

CVARS:
amx_namelock - 1 for the plugin to run, 0 for it to stop functioning

amx_namelock_maxlen - defines an upper limit for how many characters a clients name can be. Default is the upper limit of names in the HL1 engine.

Enjoy.

This plugin commisioned by: UFC Rage
Attached Files
File Type: sma Get Plugin or Get Source (amx_namelock.sma - 3751 views - 3.6 KB)
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka