Forum

> > CS2D > Scripts > Rainbow Welcome
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Rainbow Welcome

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Rainbow Welcome

Junior3534
User Off Offline

Zitieren
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!!!

alt Re: Rainbow Welcome

Apache uwu
User Off Offline

Zitieren
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.

alt Re: Rainbow Welcome

Avo
User Off Offline

Zitieren
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:
Mehr >


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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht