Forum

> > CS2D > Scripts > HUD img doesn't show up
Forums overviewCS2D overview Scripts overviewLog in to reply

English HUD img doesn't show up

2 replies
To the start Previous 1 Next To the start

old HUD img doesn't show up

Xseba360
User Off Offline

Quote
Hey guys. Im having a problem. The thing is, it only shows up when i do "restartround 1" in console.

1
2
3
4
5
6
7
8
9
10
addhook("startround","_hud")

function _hud()
     local id=image("gfx/hud/test.png",0,0,2)
     imagecolor(id,0,0,0)
     imageblend(id,0)
     imagealpha(id,0.5)
     imagescale(id,1,1)
     imagepos(id,320,240,0)
end

Help?

I've seen a thread about it already but it when i fixed it like they said in it it didn't work so I made new one. If it's bad, Sorry.

old Re: HUD img doesn't show up

EngiN33R
Moderator Off Offline

Quote
If you execute this piece of code on a listen server (New Game), it will indeed only be parsed when a round restarts - starting the server doesn't count as a round start.

old Re: HUD img doesn't show up

omg
User Off Offline

Quote
add
1
_hud()
after the function and it should work. if not, add this instead:
1
timer(2000,"_hud")
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview