How to add a picture
5 replies



10.01.14 05:24:36 pm
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 comment:
"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 If understood correctly, you want all server players to see images used by your scripts. Change servertransfer.
Trust me, I'm an engineer |
DC approved
Super extra mod for CS2D (64), yeah!



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?
- like what IRAN TOWN picture?
Okay, it seems I CAN'T understand you. Try to pm someone from your country if you can't speak English.
Trust me, I'm an engineer |
DC approved
Super extra mod for CS2D (64), yeah!



I can't understand you, lol.
I think you mean this;
I wrote it now, so it may have errors.
//Edit: I found no errors, and if you want to remove image - use freeimage(yaimg).
I think you mean this;
Code:
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
_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).



