Raised This Month: $95 Target: $400
 23% 

Remove color from chat


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   GHW_Chronic (70)
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 05-08-2008 , 19:04   Remove color from chat
Reply With Quote #1

Remove color from chat


Description:
This simple plugin will remove bug in HL with color chat (always with say_team, say when dead / spectator), all "colorful" chars - STX, ETX, EOT, SOH will remove from message.

Tested only in Counter Strike, but should work on other mods.

CVAR's:
none

Changelog:
1.0: First relase

Attached Files
File Type: sma Get Plugin or Get Source (color_chat_fix.sma - 1419 views - 881 Bytes)

Last edited by Sn!ff3r; 05-11-2008 at 00:32.
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Pokemon
Senior Member
Join Date: Mar 2008
Old 05-08-2008 , 23:06   Re: Remove color from chat
Reply With Quote #2

o.0 exelent I am traing. Verry good your work.
__________________
Pokemon is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-09-2008 , 04:48   Re: Remove color from chat
Reply With Quote #3

Witch bug ?
__________________
- tired and retired -
ConnorMcLeod is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 05-09-2008 , 08:11   Re: Remove color from chat
Reply With Quote #4

If you put some special chars in say_team chat will print a colored message.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 05-09-2008 , 10:40   Re: Remove color from chat
Reply With Quote #5

Quote:
Witch bug ?
Quote:
STX, ETX, EOT, SOH
And next
Quote:
Originally Posted by cstrike_english.txt
// 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
//  = 0x01 (SOH) - Use normal color from this point forward
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-09-2008 , 11:17   Re: Remove color from chat
Reply With Quote #6

Oh, if you consider this is a bug, ok ;)

Also, do you really need to check for 0x02 ? (it make colors only when this char is at the begining of the string, so before the player name, where players have no access.
__________________
- tired and retired -
ConnorMcLeod is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 05-09-2008 , 12:22   Re: Remove color from chat
Reply With Quote #7

Quote:
Also, do you really need to check for 0x02 ? (it make colors only when this char is at the begining of the string, so before the player name, where players have no access.
Hmm, good question... But four parameter from TextMsg contain only message, so I believe this is needed =]
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
ESTCOBS
Junior Member
Join Date: May 2008
Location: Kraków, Poland
Old 05-09-2008 , 13:59   Re: Remove color from chat
Reply With Quote #8

Sn!ff3r : Make version with remove % bug in chat, one plugin, cpu/ram/ping etc. etc. less

Polish : Jednym słowem zrób większy pluginek

~ESTCOBS

===
And delete AMXX-Studio Notes from your sma :/

Last edited by ESTCOBS; 05-09-2008 at 14:02. Reason: .sma info :]
ESTCOBS is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 05-09-2008 , 14:19   Re: Remove color from chat
Reply With Quote #9

Quote:
And delete AMXX-Studio Notes from your sma :/
Huh, I think this is no problem ;]

Quote:
Make version with remove % bug in chat,
Polish: wiesz, tylko nie każdy by chciał wszystko... musiałbym dorobić CVAR'y, ale ogólnie jakbym pozbierał wszystkie bugfixy jakie mam na dysku to trochę by się nazbierało
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
ESTCOBS
Junior Member
Join Date: May 2008
Location: Kraków, Poland
Old 05-09-2008 , 15:52   Re: Remove color from chat
Reply With Quote #10

Polish : No dobra, zrób tak, bo szczerze mówiąc ***m (wydalam kał) na tego leszcza co to zalewa New Plugins Submissions przez swoje anty bugi :/
Nie da taki wszystko w jednym tylko osobno :]
No więc jak ?? Bierz się do roboty i niech ten temat zniknie a pojawi się wielki Server Fixes by Sn!ff3r (hehehe)

===
English : Make all BugFixes in one Mr. Big Sn!ff3r xD
ESTCOBS 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 14:32.


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