View Single Post
Author Message
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 08-12-2010 , 12:59   [ANY] Colored Name Chat
Reply With Quote #1

(Based on Afronanny's CoD Colored Name Chat)



This plugin allows a player to set the name they wish to use in the game. It's stored in the client cookie cache, so it should transfer to any server (using this plugin, and when the servers point to the same database) and preserved when they disconnect. If they don't set their colored name, it will just be their regular name.

You cannot target players with commands (as an admin) by using their colored name. However, if the name largely matches their existing name, you may be able to. A command has been provided to help admins find the players true steam name.

Example to get a player up and running:
sm_coloredname_on
sm_coloredname "^2Th^3ra^4ka"

Note: Some colors do not work for other games. However, the color command ^# should still work in the name just fine, but it just wont color according to the help. The help was designed with TF2 in mind.

Colors
^0 - Default
^1 - Default
^2 - White
^3 - Team color
^4 - Green
^5 - Olive green
^6 - Item color (usually yellow, black if the client hasn't seen an item found or crafted yet)[TF2]
^7 - Default
^8 - Team
^9 - Green

Commands
sm_coloredname_on - Turns on the colored name for the player
sm_coloredname_off - Turns off the colored name for the player
sm_coloredname - Sets the current players colored name
sm_coloredname_help - Lists helpful information to the client

Admin Commands (Kick rights)
sm_coloredname_list - Lists all users with their real and colored names. (Use this to detect the real name of a player and kick\ban\whatever when needed.

Current Issues
Sometimes the sm_coloredname_help command prints things out of order. No idea why.
Attached Files
File Type: sp Get Plugin or Get Source (colorednames.sp - 7343 views - 10.3 KB)

Last edited by Thraka; 08-12-2010 at 16:39.
Thraka is offline