Forum

> > CS2D > Servers > Color in chat HotFix
ForenübersichtCS2D-Übersicht Servers-ÜbersichtEinloggen, um zu antworten

Englisch Color in chat HotFix

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Color in chat HotFix

Apache uwu
User Off Offline

Zitieren
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

alt Re: Color in chat HotFix

DC
Admin Off Offline

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

alt Re: Color in chat HotFix

krabob
User Off Offline

Zitieren
does someone know how I can do that? I always get jealous of the turks that somehow know how to do it
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Servers-ÜbersichtCS2D-ÜbersichtForenübersicht