Forum

> > CS2D > Scripts > Rainbow Welcome
Forums overviewCS2D overview Scripts overviewLog in to reply

English Rainbow Welcome

4 replies
To the start Previous 1 Next To the start

old Rainbow Welcome

Junior3534
User Off Offline

Quote
addhook("join","welcome")
function welcome(id)
  msg2(id,"©255000000W©255127000e©255255000l©000255000c©000000255o©075000130m©143000255e")
end



> Can This work? im a newbie scripter
> Help me please because i got everytime some á or Á

Thanks!!!

old Re: Rainbow Welcome

Apache uwu
User Off Offline

Quote
Instead of ©, use \169 or "..string.char(169).."

msg2(id,"\169255000000W\169255127000e\169255255000l\169000255000c\169000000255o\169075000130m\169143000255e")


On a completely unrelated note: Guess what kinda of servers I hate? Servers that use unnecessary random colors for chat.

old Re: Rainbow Welcome

Avo
User Off Offline

Quote
I edited a little rainbowtext function from file cs2d [EngiN33R] Showcase for 0.1.2.2 and here you are, you have to paste following code in your script:
More >


And then you will be able to use it this way:

1
2
3
4
addhook("join","welcome")
function welcome(id)		
	msg2(id,rainbowtext("Welcome!"))
end

Easier, isn't it? By the way user Apache uwu is right, many colors in messages make server an awful pony place to play
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview