Forum

> > CS2D > Scripts > Hudtxt change colors
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Hudtxt change colors

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Hudtxt change colors

superpegamento
User Off Offline

Zitieren
I need that my hud text changes colors automatically

MY HUD:
1
2
3
4
addhook("second" , "hudtxt")
function hudtxt()
parse('hudtxt 1 "©255252211WT" 10 190')
end

alt Re: Hudtxt change colors

Jynxxx
User Off Offline

Zitieren
1
2
3
4
5
6
table1 = {255000000, 255255255, 000255000, 255000255}

addhook("second", "hudtxt")
function hudtxt()
	parse('hudtxt 1 "©"..table1[math.random(1,4)].."WT" 10 190')
end

Something like this.

alt Re: Hudtxt change colors

superpegamento
User Off Offline

Zitieren
user Jynxxx hat geschrieben
1
2
3
4
5
6
table1 = {255000000, 255255255, 000255000, 255000255}

addhook("second", "hudtxt")
function hudtxt()
	parse('hudtxt 1 "©"..table1[math.random(1,4)].."WT" 10 190')
end

Something like this.


the hook fails

alt Re: Hudtxt change colors

pbeloto
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
addhook("second","_second")
function _second(id)
r = math.random(100,255)
g = math.random(100,255)
b = math.random(100,255)
parse('hudtxt 1 "WT" 10 190 1')
parse('hudtxtcolorfade 0 1 5000 '..r..' '..g..' '..b)
end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht