Forum

> > CS2D > Scripts > HUD img doesn't show up
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch HUD img doesn't show up

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt HUD img doesn't show up

Xseba360
User Off Offline

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

alt Re: HUD img doesn't show up

EngiN33R
Moderator Off Offline

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

alt Re: HUD img doesn't show up

omg
User Off Offline

Zitieren
add
1
_hud()
after the function and it should work. if not, add this instead:
1
timer(2000,"_hud")
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht