Forum

> > CS2D > Scripts > How to add a picture
Forums overviewCS2D overview Scripts overviewLog in to reply

English How to add a picture

5 replies
To the start Previous 1 Next To the start

old How to add a picture

Crypt
User Off Offline

Quote
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

old Re: How to add a picture

Avo
User Off Offline

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

old Re: How to add a picture

Crypt
User Off Offline

Quote
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?

old Re: How to add a picture

Avo
User Off Offline

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

old Re: How to add a picture

Fehu
User Off Offline

Quote
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).
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview