Page 1 of 1

Force Admin Tag 1.0

Posted: Mon Nov 22, 2021 12:35 pm
by greenie
Force Admin Tag 1.0
Nov. 11th, 2004
By: BigBaller

Simple plugin, what it does is changes a players name if they have admin on the server. This can be changed by the amx_forcetag cvar. 1 is to enable, 0 to disable. Enabled by default.

If user changes name during game, this plugin will detect it and change users name to use the admin tag.

This should work on any Half-Life based mod running AMX MOD X.

Credits
AMX MOD X Scripting Forum (http://forums.alliedmods.net/forumdisplay.php?f=11)
PM - for giving a idea on how to detect if user has [ADMIN] in name already.
XxAvalanchexX - suggesting use of is_user_admin() stock
Janzert - for fixing the nasty loop I kept getting and making a more efficent code.

plugin
source