[cubescript]clanTag = "CLAN_TAG_HERE"
addTag = [
if (! (strstr $curname $clanTag)) [
name (concatword $clanTag $curname)
]
][/cubescript]
Just fill in "CLAN_TAG_HERE" and execute /addTag whenever you want. "curname" is also the variable you're looking for.
AFAIK, colors still don't show up in nicknames even if you try injecting them via script. (for good reason too)
However, you can change what color your name shows up as on the console when a player mentions you via the in-game chat by setting the HIGHLIGHT alias, which is handy.
Example:
[cubescript]HIGHLIGHT = "\f2"[/cubescript]
Your name should show up in yellow on the in-game chat from now on:
With "\f8":
addTag = [
if (! (strstr $curname $clanTag)) [
name (concatword $clanTag $curname)
]
][/cubescript]
Just fill in "CLAN_TAG_HERE" and execute /addTag whenever you want. "curname" is also the variable you're looking for.
AFAIK, colors still don't show up in nicknames even if you try injecting them via script. (for good reason too)
However, you can change what color your name shows up as on the console when a player mentions you via the in-game chat by setting the HIGHLIGHT alias, which is handy.
Example:
[cubescript]HIGHLIGHT = "\f2"[/cubescript]
Your name should show up in yellow on the in-game chat from now on:
With "\f8":