Forum
CS2D Scripts How to add a pictureHow to add a picture
5 replies 1
- like what IRAN TOWN picture?
I think you mean this;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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).
1