Forum

> > CS2D > Scripts > How to add a picture
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch How to add a picture

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt How to add a picture

Crypt
User Off Offline

Zitieren
Hello everyone! help how putting in a picture may be his server in it that let him be visible and this not for me that the map but onto the screen code if he may be! thank you!

Admin/Mod Kommentar

"Heelp" is a bad title and you know it because you added an extra e to be able to use it anyway... shame on you! /DC

alt Re: How to add a picture

Avo
User Off Offline

Zitieren
If understood correctly, you want all server players to see images used by your scripts. Change servertransfer.

alt Re: How to add a picture

Crypt
User Off Offline

Zitieren
I do not take it so but how may be one like that that on 1 part of the screen it let a picture appear?
- like what IRAN TOWN picture?

alt Re: How to add a picture

Avo
User Off Offline

Zitieren
Okay, it seems I CAN'T understand you. Try to pm someone from your country if you can't speak English.

alt Re: How to add a picture

Fehu
User Off Offline

Zitieren
I can't understand you, lol.
I think you mean this;

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
_simple={}
_simple.images = {}

for id = 1, 32 do
     _simple.images[id] = {}
end

function _simple.update(id)
	local yaimg = image("gfx/cs2d.bmp",0,0,2,id)	--Change dir for your image.
	_simple.images[id].imgname = yaimg
	imagepos(yaimg,64,64,0)	--Your image pos.
end

addhook('join',		'_simple.join')
function _simple.join(id)
	_simple.update(id)	--Create image on join.
end

I wrote it now, so it may have errors.

//Edit: I found no errors, and if you want to remove image - use freeimage(yaimg).
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht