Forum

> > CS2D > Servers > Color in chat HotFix
Forums overviewCS2D overview Servers overviewLog in to reply

English Color in chat HotFix

7 replies
To the start Previous 1 Next To the start

old Color in chat HotFix

Apache uwu
User Off Offline

Quote
As many of you might already know, there is a color spam going on in a lot of servers.

Example:

IMG:https://puu.sh/3Cqnh.jpg


Until a fix is applied, I recommend using this script to stop this from happening.

1
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

When the fix is applied, the same chat message results in this:

IMG:https://puu.sh/3CqxH.jpg

old Re: Color in chat HotFix

Rainoth
Moderator Off Offline

Quote
In my playtime, I saw 3 people use it. But it might be useful for others. I just ignore those.

old Re: Color in chat HotFix

DC
Admin Off Offline

Quote
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.

old Re: Color in chat HotFix

krabob
User Off Offline

Quote
does someone know how I can do that? I always get jealous of the turks that somehow know how to do it
To the start Previous 1 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview