Forum

> > CS2D > Scripts > Hud text
Forums overviewCS2D overview Scripts overviewLog in to reply

English Hud text

7 replies
To the start Previous 1 Next To the start

old Hud text

Black Wolf
User Off Offline

Quote
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

old Re: Hud text

MikuAuahDark
User Off Offline

Quote
i don't understand you. can you tell me what's wrong on that scripts?

old Re: Hud text

Powermonger
User Off Offline

Quote
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

old Re: Hud text

Suprise
BANNED Off Offline

Quote
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

old Re: Hud text

EngiN33R
Moderator Off Offline

Quote
@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.

old Re: Hud text

Jynxxx
User Off Offline

Quote
@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 >

old Re: Hud text

MikuAuahDark
User Off Offline

Quote
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
edited 1×, last 25.08.12 01:17:57 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview