Raised This Month: $342 Target: $400
 85%   Almost there!

simple edit? hopefully


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rehashmusic
AlliedModders Donor
Join Date: Jul 2019
Old 09-01-2020 , 11:40   simple edit? hopefully
Reply With Quote #1

Code:
if (IsValidEntity(client) && 1 <= client <= MaxClients)
			PrintHintText(client,"<pre><font color='#948d8d'><b>Last Jump</b>: %s\n<b>Speed</b>: %.1f u/s (%.0f)\n%s</font></pre>",g_js_szLastJumpDistance[client],g_fSpeed[client],g_js_fPreStrafe[client],sResult);
So when i change the font color, it changes the whole hud !speed display's color.

Wondering if it's possible to edit this code to choose color for each thing shown on the HUD.
example
Speed - blue , - Last jump - red , etc...

If it's possible hopefully you can guide me to the right way, as i wanna learn how to do it myself
rehashmusic is offline
rehashmusic
AlliedModders Donor
Join Date: Jul 2019
Old 09-01-2020 , 11:41   Re: simple edit? hopefully
Reply With Quote #2

also im sure its entirely possible to do it, i meant possible as in just editing this part of the code, because the whole plugin is like 3000 lines and im not sure if i needa edit something else
rehashmusic is offline
Eagle08
New Member
Join Date: Sep 2020
Old 09-01-2020 , 12:55   Re: simple edit? hopefully
Reply With Quote #3

Yes, just simply open new
HTML Code:
<font color='Your Colour in hex'>
before thing that You want to be at specified colour and then remember to close it afterwards with
HTML Code:
</font>
So for example:
Code:
<font color='#ff0000'>Last Jump</font> <!-- This will become red -->
<font color='#ffff00'>Speed</font> <!-- This will become yellow-->
Eagle08 is offline
rehashmusic
AlliedModders Donor
Join Date: Jul 2019
Old 09-01-2020 , 13:09   Re: simple edit? hopefully
Reply With Quote #4

Thank you
rehashmusic is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:11.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode