Raised This Month: $32 Target: $400
 8% 

how colored default sourcemod?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
panikajo
Member
Join Date: Jan 2013
Old 05-17-2018 , 06:25   how colored default sourcemod?
Reply With Quote #1

Hello, i want colored sourcemod how i can release this?

Code:
"Changing map"
	{
		"#format"		"{1:s}"
		"en"			"Changing map to {green}{1}..."
basecommands --> map.sp have ShowActive how colored this code?
panikajo is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 05-17-2018 , 08:22   Re: how colored default sourcemod?
Reply With Quote #2

If you're only willing to modify the translation file, you have to insert the literal bytes for the colors. For example, \x04 would be a literal 0x04 byte (like how capital letter A is 0x41).

If you're willing to edit and recompile the plugins, you can find a color include that has a replacement for ShowActivity, replace the function calls, and use color codes like {green} in the translation files.

Last edited by Fyren; 05-17-2018 at 08:22. Reason: typo
Fyren is offline
rogeraabbccdd
Veteran Member
Join Date: Jun 2015
Location: de_dust2
Old 05-17-2018 , 22:21   Re: how colored default sourcemod?
Reply With Quote #3

__________________

Please keep in mind, nobody have responsibility to help you, especially who don't try to Google first.
I only read messages in Chinese and English.

GitHub | Discord:Kento#2118
rogeraabbccdd 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 08:18.


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