Forum

> > CS2D > Scripts > Display a picture in the middle of the screen
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Display a picture in the middle of the screen

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: Display a picture in the middle of the screen

mafia_man
User Off Offline

Zitieren
It shows image for all players:
1
2
3
4
5
6
7
8
9
10
11
12
13
function showImg(path, time) -- time in milliseconds ( 1000 milliseconds = 1 second )
	if imgPicture then
		freeimage(imgPicture);
	end
	
	imgPicture = image(path, 320, 240, 2);
	tween_alpha(imgPicture, time, 0.0);
end

addhook("serveraction","onKey")
function onKey(id)
	showImg("gfx/cs2d.bmp", 1000);
end

alt Re: Display a picture in the middle of the screen

Slugness
User Off Offline

Zitieren
Wow mafia_man thats rude , and yes im learning , and how can you be sure that nobody will help Im sure this community is full of nice and helpful people .

Admin/Mod Kommentar

Wrong. Sad, but wrong. /Factis

alt Re: Display a picture in the middle of the screen

Suprise
BANNED Off Offline

Zitieren
I guess you need this:
1
2
3
4
5
6
7
addhook("second","_second")
function _second()
	local livingplayers = player(0,"tableliving")
	for _,id in pairs(livingplayers) do
		image("gfx/cs2d.bmp", 320, 240, 2);
	end
end

Did not tested but should work.
EDIT: It works :3
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht