Forum

> > CS2D > Scripts > Remove image mode HUD?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Remove image mode HUD?

2 replies
To the start Previous 1 Next To the start

old Remove image mode HUD?

Rygna
User Off Offline

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

old Re: Remove image mode HUD?

Zeik
User Off Offline

Quote
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview