AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   how colored default sourcemod? (https://forums.alliedmods.net/showthread.php?t=307595)

panikajo 05-17-2018 06:25

how colored default sourcemod?
 
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?

Fyren 05-17-2018 08:22

Re: how colored default sourcemod?
 
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.

rogeraabbccdd 05-17-2018 22:21

Re: how colored default sourcemod?
 
http://i.imgur.com/q2wb8Cu.png


All times are GMT -4. The time now is 20:49.

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