Forum

> > CS2D > Scripts > Hud text
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Hud text

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Hud text

Black Wolf
User Off Offline

Zitieren
1
2
3
4
5
6
addhook("join","mex")
function mex(id,hud)
parse('hudtxt2 '..id..' 36 "©255255255# :D:D:D:D:D)" 450 155')
parse('hudtxt2 '..id..' 26 "©255255255# :|:|:|:|:|" 450 170')
parse('hudtxt2 '..id..' 27 "©255255255# :(:(:(:(:(" 450 185')
end

alt Re: Hud text

Powermonger
User Off Offline

Zitieren
You have no text align at the end.

Try this:
1
2
3
4
5
6
addhook("join","mex")
function mex(id,hud)
parse('hudtxt2 '..id..' 36 "©255255255# :D:D:D:D:D)" 450 155 0')
parse('hudtxt2 '..id..' 26 "©255255255# :|:|:|:|:|" 450 170 0')
parse('hudtxt2 '..id..' 27 "©255255255# :(:(:(:(:(" 450 185 0')
end
0 - left alignment (normal)
1 - center alignment
2 - right alignment

alt Re: Hud text

Suprise
BANNED Off Offline

Zitieren
1
2
3
4
5
6
addhook("always","mex")
function mex(id)
	parse('hudtxt2 '..id..' 36 "©255255255# :D:D:D:D:D)" 450 155')
	parse('hudtxt2 '..id..' 26 "©255255255# :|:|:|:|:|" 450 170')
	parse('hudtxt2 '..id..' 27 "©255255255# :(:(:(:(:(" 450 185')
end

alt Re: Hud text

EngiN33R
Moderator Off Offline

Zitieren
@user Powermonger: Text align is an optional parameter.

@user Suprise: Always does NOT have an id parameter. When will you learn...

I also do not understand what's wrong with your script. It should work.

alt Re: Hud text

Jynxxx
User Off Offline

Zitieren
@user Suprise: Why the hell would you use the always hook!?!
But if you would like to update it just use this.
Update Mode >

Non-Update Mode >

alt Re: Hud text

MikuAuahDark
User Off Offline

Zitieren
oh yes i understand now maybe this is will work

1
2
3
4
5
6
addhook("join","mex")
function mex(id)
	parse("hudtxt2 "..id.." 36 \"©255255255# :D:D:D:D:D\" 450 155")
	parse("hudtxt2 "..id.." 26 \"©255255255# :|:|:|:|:|\" 450 170')
	parse("hudtxt2 "..id.." 27 \"©255255255# :"..string.char(40)..":"..string.char(40)..":"..string.char(40)..":"..string.char(40)..":"..string.char(40).."\" 450 185")
end

maybe this "(" word cause problem
1× editiert, zuletzt 25.08.12 13:17:57
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht