Raised This Month: $105 Target: $400
 26% 

Name Lock


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Brad (55)
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-22-2006 , 20: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 - 3284 views - 3.6 KB)
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-22-2006 , 20:31  
Reply With Quote #2

Hm, I made something like this a little while ago. Useful.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
BACARRA
Senior Member
Join Date: Mar 2005
Old 03-22-2006 , 22:07  
Reply With Quote #3

will it lock the name just for the time that their there or will it lock it even when they come back?
BACARRA is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 03-23-2006 , 09:00  
Reply With Quote #4

Quote:
Originally Posted by Cryonic
Twilight for president

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?
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
eXtr3Mer
Junior Member
Join Date: Mar 2006
Location: Lithuania
Old 03-23-2006 , 15:38   Re: Name Lock
Reply With Quote #5

Thnx, good plugin GJ!
__________________
[img]http://img100.**************/img100/5657/user22al.gif[/img]
eXtr3Mer is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-24-2006 , 17:57  
Reply With Quote #6

Updated: Improved effeciency.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 03-24-2006 , 22:12  
Reply With Quote #7

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?
__________________
bmann_420 is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 03-24-2006 , 22:15  
Reply With Quote #8

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.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-24-2006 , 22:56  
Reply With Quote #9

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

When you exit, then come back, it checks your name for length AGAIN.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 03-24-2006 , 23:12  
Reply With Quote #10

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
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
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 15:58.


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