Forum

> > CS2D > Scripts > image not working
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch image not working

8 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt image not working

badx kissed
BANNED Off Offline

Zitieren
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

alt Re: image not working

TrialAndError
User Off Offline

Zitieren
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.
1× editiert, zuletzt 17.01.20 11:44:11

alt Re: image not working

MikuAuahDark
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht