Forum

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

English image not working

8 replies
To the start Previous 1 Next To the start

old image not working

badx kissed
BANNED Off Offline

Quote
I have a problem with this script Perhaps I should explain to you how it works in order to understand what happened.
I did this terrorist won It shows you a picture that expresses that too counter terrorists
But that not working for me. Is there an helper?

This is codes
1
2
3
4
5
6
7
8
9
addhook("endround","roundimage")
function roundimage(mode)
    if mode == 1 then -- Terrorist win
        image("gfx/dchate/toll.png", 1, 1, 0)
    end
	if mode == 2 then -- Conter Terrorist win
	    image("gfx/dchate/hats.png", 1, 1, 0)
	end
end

old Re: image not working

TrialAndError
User Off Offline

Quote
Perhaps you should check cs2d lua cmd image and see what the 2nd, 3rd and 4th parameters actually do.

What you're doing now is showing an image at pixel position (1,1) on the map.
edited 1×, last 17.01.20 11:44:11 am

old Re: image not working

MikuAuahDark
User Off Offline

Quote
Your code is working, but you place it at coordinate (1, 1) in map pixels on the floor (covered by walls). Depending on your map, most player won't able to see it.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview