This simple script (which turned out a lot more complicated than it needed to be) allows the player to change the color of their name. Name coloring rules are changeable via console commands.
Commands/cvars are:
namecolor <color> - Change the color of your name. Possible colors are white, purple, yellow, green, blue, red, grey, and orange. This command is technically a fake cvar and doesn't support integer inputs. Defaults to white.
nameoptions <option> - Allows you to change the name coloring rules. Defaults to auto. Possible values are:
forceteamcolor <yes/no> - If set to yes, forces players to use their team colors as colored names. Defaults to yes.
NOTE: Incompatible with most things that use the PlayerMsg hook. This includes the colored text script by HellHawkX, and the GitHub version of Terminal.
LightDash.org Mirror
Commands/cvars are:
namecolor <color> - Change the color of your name. Possible colors are white, purple, yellow, green, blue, red, grey, and orange. This command is technically a fake cvar and doesn't support integer inputs. Defaults to white.
nameoptions <option> - Allows you to change the name coloring rules. Defaults to auto. Possible values are:
- auto - Set the name colors of all players based on their skin colors.
- force - Make each player appear to use the same namecolor as you.
- perplayer - Have each player use their own namecolor i.e. if a player changes their namecolor, you'll be able to see that change.
forceteamcolor <yes/no> - If set to yes, forces players to use their team colors as colored names. Defaults to yes.
NOTE: Incompatible with most things that use the PlayerMsg hook. This includes the colored text script by HellHawkX, and the GitHub version of Terminal.
LightDash.org Mirror