Forum

> > CS2D > Scripts > hudtxt not working
Forums overviewCS2D overview Scripts overviewLog in to reply

English hudtxt not working

4 replies
To the start Previous 1 Next To the start

old hudtxt not working

Zurak
User Off Offline

Quote
i tried everything but.. it still doesn't work for me.
1
hudtxt2(id,1,"test",280,455,0)
i get test 280 455 0 in left corner...

and i had this issue before but managed to fix it and now i dont remember.

old Re: hudtxt not working

EP
User Off Offline

Quote
1
2
3
4
function hudtext2(id,tid,color,txt,x,y)
     local toprint = ("©"..color.." "..txt)
     parse('hudtxt2 '..id..' '..tid..' "'..toprint..'" '..x.." "..y)
end
Use that function, it will make your work easier.
Example:
1
hudtext2(id,1,"255255255","A txt here",250,300)

old Re: hudtxt not working

Zurak
User Off Offline

Quote
well it fixed it, thanks. idk why or how but.. k.

and when i want ot try and remove.. i put
1
2
3
function cleartxt2(id)
		parse('hudtxt2 '..id)
	end

doesnt work.
edited 1×, last 20.07.12 02:14:42 am

old Re: hudtxt not working

EP
User Off Offline

Quote
You didn't especify the HUD ID (1 to 49), this is the correct function you have to use:
1
2
3
function cleartxt2(id,i)
	parse('hudtxt2 '..id..' '..i)
end
Where the parameter "i" is the HUD ID (In the example case, the HUD ID is 1)

Example:
You put a hud to the player 2 and HUD ID 3. (Remember that I'm going to use the function that I gave to you, this function isn't included in the CS2D)
1
hudtext2(2,3,"255255255","asd",200,200)
Now you want to remove it:
1
cleartxt2(2,3)
And done

For more info please visit: cs2d cmd hudtxt2

old Re: hudtxt not working

MikuAuahDark
User Off Offline

Quote
there is a simple way to do this:
1
parse("hudtxt2 "..id.." 1 \"Your Text\" 280 455 0")
to remove
1
parse("hudtxt2 "..id.." 1 \" \" 0 0 0")
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview