Forum

> > CS2D > Scripts > An "Â" at first string in message?
Forums overviewCS2D overview Scripts overviewLog in to reply

English An "Â" at first string in message?

6 replies
To the start Previous 1 Next To the start

old An "Â" at first string in message?

Komo the Cat
User Off Offline

Quote
So i made a script that appear a message every time the player spawn. When i use "©" to make my string colored, i tested it and the string that appeared was this : "Â[TIP] : BlaBla".

old Re: An "Â" at first string in message?

Komo the Cat
User Off Offline

Quote
Ok thanks :), here's some code for my upcoming script that I will upload :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--> Made by UrNightmare <--

-- Variable/s --

local prefix = "[TIP] : "
local center = "@C"
local color = "\169"

local tipsT = {
    prefix.."SPOILER",
    prefix.."SPOILER"
}

local tipsCT = {
    prefix.."SPOILER",
    prefix.."SPOILER"
}

-- Hook/s --

addhook("spawn","s_func")

-- Function/s --

function s_function(id)
    if player(id, "team") == 1 then
        
        msg2(id, color.."255255255"..tipsT[math.random(1,2)]..center)
    elseif player(id,"team") == 2 then
        
        msg2(id, color.."255255255"..tipsCT[math.random(1,2)]..center)
    end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview