View Single Post
404UserNotFound
BANNED
Join Date: Dec 2011
Old 01-13-2020 , 02:46   Re: [ANY] Basic Donator Interface
Reply With Quote #269

Quote:
Originally Posted by CoolJosh3k View Post
A TF2 community I play with wondered if I could fix it so it had any colour. I did just that.

Modify the code as desired to add the colours you want, then compile it.

Note that you will need morecolors.inc instead of colors.inc

Colour codes are in hex format RGB.

If for example you wanted to add a gold colour then you can update it to this:

The \x07 indicates you are going to supply an RGB colour in hex. The next 6 characters are the RGB hex code for which colour you want to show in game. You can find a few tools on the web that will help you find the RGB hex code for the colour you desire.

As a bonus: if you want transparent text you can use \x08 instead and supply another 2 character on the end for the alpha value. For example \x08000000BF (black) where BF is the alpha value for 75% opacity.
Should've updated the syntax while you were in there. Matter of fact, this entire thing could use a ground-up rewrite. This old basic-ass plugin is the entire reason I started learning SourcePawn.

Last edited by 404UserNotFound; 01-13-2020 at 02:49.
404UserNotFound is offline