Raised This Month: $51 Target: $400
 12% 

Changing the color of [SM]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blackfoot
Junior Member
Join Date: Feb 2010
Old 01-03-2011 , 18:44   Changing the color of [SM]
Reply With Quote #1

Im trying to get the [SM] in chat to change green, but i cant figure out how to...can someone plz help me?
Blackfoot is offline
dirka_dirka
Veteran Member
Join Date: Nov 2009
Old 01-03-2011 , 23:22   Re: Changing the color of [SM]
Reply With Quote #2

\x03 for light green \x05 for dark green.. thats in l4d, its probably different in other engines - look at colors.inc and you can figure out what it is for your engine.

\x01 to return to normal color
dirka_dirka is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 01-03-2011 , 23:46   Re: Changing the color of [SM]
Reply With Quote #3

Without editing each and every plugin that uses the [SM] tag? No idea, otherwise, you'll have to do as dirka_dirka has suggested and use \x<green>[SM]\x01
__________________
thetwistedpanda is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 01-04-2011 , 07:08   Re: Changing the color of [SM]
Reply With Quote #4

Quote:
Originally Posted by dirka_dirka View Post
\x03 for light green \x05 for dark green.. thats in l4d, its probably different in other engines - look at colors.inc and you can figure out what it is for your engine.

\x01 to return to normal color
PHP Code:
// tf_english.txt, left4dead2_english.txt, and similar
// Radio and chat strings can have control characters embedded to set colors.  For the control characters to be used, one must be at the start of the string.
// The control characters can be copied and pasted in notepad.
//  = 0x02 (STX) - Use team color up to the end of the player name.  This only works at the start of the string, and precludes using the other control characters.
//  = 0x03 (ETX) - Use team color from this point forward
//  = 0x04 (EOT) - Use location color from this point forward
//  = 0x05 (ENQ) - Use achievement color from this point forward // not allowed in css, hl2mp, dods(?)
//  = 0x01 (SOH) - Use normal color from this point forward 
__________________
Leonardo is offline
Blackfoot
Junior Member
Join Date: Feb 2010
Old 01-11-2011 , 17:11   Re: Changing the color of [SM]
Reply With Quote #5

they only seem to change on CSS in any plugin when I do \x01\x04
Blackfoot is offline
Master53
Veteran Member
Join Date: Dec 2009
Old 01-11-2011 , 18:29   Re: Changing the color of [SM]
Reply With Quote #6

Quote:
Originally Posted by Blackfoot View Post
they only seem to change on CSS in any plugin when I do \x01\x04
use the Colors snapshot

http://forums.alliedmods.net/showthread.php?t=96831
__________________
Master(d)



Master53 is offline
selax
AlliedModders Donor
Join Date: Apr 2008
Location: Moscow
Old 02-15-2011 , 01:50   Re: Changing the color of [SM]
Reply With Quote #7

\x05 (dark green) work in css!
selax is offline
Reply



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 16:19.


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