Forum

> > CS2D > Scripts > How can be rainbow hud or chat color?
Forums overviewCS2D overview Scripts overviewLog in to reply

English How can be rainbow hud or chat color?

12 replies
To the start Previous 1 Next To the start

old Re: How can be rainbow hud or chat color?

KingShadow
User Off Offline

Quote
@user phalenkO: sure

1
2
3
4
5
6
7
addhook("second","_second")
function _second()
parse("mp_hudscale 1")
parse('hudtxt 1 "\169255000255phalenkO" 307 11 0')
parse('hudtxtcolorfade 0 1 1000 0 255 255')
parse('hudtxtcolorfade 0 1 1000 0 160 255')
end

you can add colors as you want
1
parse('hudtxtcolorfade <playerid (0 for all)> <txtid> <duration> <Red> <Green> <Blue>')
edited 3×, last 03.07.18 06:06:42 pm

old Re: How can be rainbow hud or chat color?

Masea
Super User Off Offline

Quote
user KingShadow has written
1
2
3
4
addhook("second","_second")
function _second(id)
parse("mp_hudscale 1")
end
This is a misperception. You only need to change cs2d cmd mp_hudscale once, not every single second. I'm not even saying that id parameter is in use in a cs2d lua hook second hook...
edited 1×, last 03.07.18 01:03:51 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview