Color in chat HotFix
7 replies



14.07.13 06:53:48 am
As many of you might already know, there is a color spam going on in a lot of servers.
Example:

Until a fix is applied, I recommend using this script to stop this from happening.
When the fix is applied, the same chat message results in this:
Example:

Until a fix is applied, I recommend using this script to stop this from happening.
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
addhook("say","_say")
local colors = {
string.char(169).."255220000",
string.char(169).."255000000",
string.char(169).."050150255"
}
function _say(id,message)
_message = message:gsub(string.char(169), "");
if _message~=message then
local dead = ""
if player(id,"health")==0 then
dead = " "..colors[1].."*DEAD*"
end
msg(colors[player(id,"team")+1]..player(id,"name")..dead..": "..colors[1].._message)
return 1
end
end
local colors = {
string.char(169).."255220000",
string.char(169).."255000000",
string.char(169).."050150255"
}
function _say(id,message)
_message = message:gsub(string.char(169), "");
if _message~=message then
local dead = ""
if player(id,"health")==0 then
dead = " "..colors[1].."*DEAD*"
end
msg(colors[player(id,"team")+1]..player(id,"name")..dead..": "..colors[1].._message)
return 1
end
end
When the fix is applied, the same chat message results in this:

It's already fixed, if I'm not mistaking, update your CS2D. (CS2D.com -> downloads -> zip archieve)
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
Yes, it has been fixed (at least the color tag, not sure about the linebreak) with the OPTIONAL hotfix which has been released shortly after the latest update. You have to download it manually because it's an optional update without change of the version number.
does someone know how I can do that? I always get jealous of the turks that somehow know how to do it

People help the people
@
DC: I downloaded the linux dedicated and it still allows multiple colors.




