English Color in chat HotFix

7 replies
Goto Page
To the start Previous 1 Next To the start
14.07.13 06:53:48 am
Up
Apache uwu
User
Offline Off
As many of you might already know, there is a color spam going on in a lot of servers.

Example:

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


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
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:http://puu.sh/3CqxH.jpg
14.07.13 12:22:12 pm
Up
Rainoth
Moderator
Offline Off
In my playtime, I saw 3 people use it. But it might be useful for others. I just ignore those.
14.07.13 12:24:50 pm
Up
Gajos
BANNED
Offline Off
A server must be enabled on the server CS2D hotfix.
Banned for Hacking/Cheating in CS2D /DC
14.07.13 01:23:06 pm
Up
IRAN TOWN
User
Offline Off
This character (¦) is also important.
IMG:http://uploadtak.com/images/j7598_1.jpg
14.07.13 01:54:53 pm
Up
Infinite Rain
Reviewer
Offline Off
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
14.07.13 02:44:43 pm
Up
DC
Admin
Offline Off
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.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
14.07.13 03:24:15 pm
Up
krabob
User
Offline Off
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
15.07.13 08:49:53 am
Up
Apache uwu
User
Offline Off
@user DC: I downloaded the linux dedicated and it still allows multiple colors.
To the start Previous 1 Next To the start