Jump to content

Does anyone know how to cancel the color code on the head?


Recommended Posts

Posted

if (XPerience != null && XPerience.IsLoaded)
            {
                displayName = "<color=#ffae00>『</color><color=#05bd11>" + XPerience.Call<string>("GetXPCache", player, "rankname") + "</color><color=#fff>Lv." + XPerience.Call<string>("GetXPCache", player, "level") + "</color><color=#ffae00>』</color>" + XPerience.Call<string>("GetXPCache", player, "displayName");

            }

I encountered this situation after making changes through a plugin.

  • Administrator
Posted

Yeah that's not going to work since Facepunch strips display names. I wouldn't override this either as users can easily abuse it by updating their Steam display name to include markup.

Posted

Is there any way to prohibit players from displaying color codes on their heads? I just want this color code to be displayed in the chat.

  • Administrator
Posted
16 minutes ago, laodu said:

Is there any way to prohibit players from displaying color codes on their heads? I just want this color code to be displayed in the chat.

You can, just not like this. You need a plugin that does this like BetterChat.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
1.7m

Downloads

Total number of downloads.

7.8k

Customers

Total customers served.

117.8k

Files Sold

Total number of files sold.

2.4m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.