Description:
This plugin allows admins to define (SteamID -> PlayerName) pairs in a config file. listed players can't change their name and are forced to have the defined one.
Special Feature:
players names are only changed serverside not clientside!
an example: a player previously named 'Stan' is forced by this plugin to have the name '[UCT]Stan'. on the server the player has now the name '[UCT]Stan', but if he types 'name' in console to show his name he would get the following output: (although his playername is currently '[UCT]Stan')
"name" is "Stan"
which means that if he then connects to another server his name would be 'Stan' again.
Setup:
edit new file: configs/constant_names.ini:
here you can define which player(SteamID) should have which name.
here is an example 'constant_names.ini' file:
in this case for ex. the player with steam_id:[STEAM_0:0:123456] will be forced to have the playername 'KoST' and he is not able to change it.STEAM_0:0:123459 "Sam"
STEAM_0:0:123456 "KoST"
STEAM_0:0:99662 "Elch"
Info
if you need more than 100 predefined (SteamID -> PlayerName) pairs you must edit the sma file of this plugin and recompile:
Required Modules:// set this to a higher value if you need more predefined users in you config file
#define MAX_USERS 100
// you can also modify the default config file name if needed
#define CONFIG_FILE "constant_names.ini"
this plugin needs no additional modules
CVars
none
Commands
none
ChangeLog:
10. May 2006 - v1.0:
--added: some code to empty file..
10. May 2006 - v1.1:
--changed: config file is now precached !
10. May 2006 - v1.2:
--added: some text output
get plugin