Forum

> > CS2D > Scripts > Remove image mode HUD?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Remove image mode HUD?

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Remove image mode HUD?

Rygna
User Off Offline

Zitieren
Hi!,
can you help me?
• How do i remove Image mode HUD on screen

Example >


and i try make like that
1
2
3
4
5
6
7
8
9
10
11
12
function HUD(id)
	hud1 = image("gfx/test/test.png",0,1,2,id)
end

addhook("serveraction" , "ServerAction")
function ServerAction(id,action)
	if (action == 1) then
		HUD(id)
	elseif (action == 2) then
		freeimage(hud1)
	end
end

And i test it.. and i pressing F2, it not Showing image

#SorryForMyBadEnglish.
Thanks!

alt Re: Remove image mode HUD?

Zeik
User Off Offline

Zitieren
I think you're asking for this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function HUD(id)
	hud1 = image("gfx/test/test.png",0,1,2,id)
end

addhook("serveraction" , "ServerAction")
function ServerAction(id,action)
	if (action == 1) then
		if hud1 == nil then
			HUD(id)
		else
			freeimage(hud1)
			hud1 = nil
		end
	end
end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht