Name Lock

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

Name Lock

Post by greenie »

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

plugin
source
Post Reply

Return to “Admin Commands”