AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Name Lock (https://forums.alliedmods.net/showthread.php?t=25884)

Twilight Suzuka 03-22-2006 19:14

Name Lock
 
1 Attachment(s)
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

v3x 03-22-2006 19:31

Hm, I made something like this a little while ago. Useful.

BACARRA 03-22-2006 21:07

will it lock the name just for the time that their there or will it lock it even when they come back?

SweatyBanana 03-23-2006 08:00

Quote:

Originally Posted by Cryonic
Twilight for president :D


Shes got my vote...but is the only thing different in this one from the other name locker is that admins specify the person to lock?

eXtr3Mer 03-23-2006 14:38

Re: Name Lock
 
Thnx, good plugin :o GJ!

Twilight Suzuka 03-24-2006 16:57

Updated: Improved effeciency.

bmann_420 03-24-2006 21:12

Quote:

Originally Posted by BACARRA
will it lock the name just for the time that their there or will it lock it even when they come back?


SweatyBanana 03-24-2006 21:15

Quote:

Originally Posted by bmann_420
Quote:

Originally Posted by BACARRA
will it lock the name just for the time that their there or will it lock it even when they come back?



after looking at it...seems to be lock when come back.

Twilight Suzuka 03-24-2006 21:56

No it doesn't. It only locks on:
putinserver
name change

When you exit, then come back, it checks your name for length AGAIN.

SweatyBanana 03-24-2006 22:12

Quote:

Originally Posted by Twilight Suzuka
No it doesn't. It only locks on:
putinserver
name change

When you exit, then come back, it checks your name for length AGAIN.

ooo...read it wrong...tired sorry...saw putinserver in the code and assumed..yawn yawn yawn...any1 got sugar?

gimme some sugar :wink:


All times are GMT -4. The time now is 04:19.

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