So it's working now?
Forum
CS2D Scripts Lua Scripts/Questions/HelpSo it's working now?
I can't say why your game shutdown.
@Flacko,
Damm, DC said tile() wont work on this version.
Blazzingxx has written
I'm not using always hook.
I can't say why your game shutdown.
I can't say why your game shutdown.
If mat5b is calling the drawhealth() function his game will obviously crash because of this
1
2
3
4
5
2
3
4
5
if (player(id,"team")==1) then [b]image("gfx/tf2/status_red1.png",70,440,2)[/b] elseif (player(id,"team")==2) then [b]image("gfx/tf2/status_blu1.png",70,440,2)[/b] end
Epic crash
Lol, I had the same problem when writing my own game in C++
Then I realized my error
edited 1×, last 11.11.09 06:15:59 pm
mortyr22 has written
how to create RANDOM(class)?!
What do you mean?
@flacko mortyr wants to use random function when you spawn for the classes
so you would just need
spawnhook and random function with classes
CmDark has written
Off topic: 0.1.1.6 is online woohoo
what is 0.1.1.6 wait holy shit new CS2D?
what is 0.1.1.6 wait holy shit new CS2D?
Team 1 = t?
team 2 = ct?
I got blue under all players.
the folder is relative to the cs2d folder.
so you have to use something like gfx/myimage.bmp or gfx/somefolder/somefolder/.../myimage.png or something.
always use the gfx folder (or subfolders of this folder) for images.
a server will automatically send missing images to clients (if the clients accept those [see new download option in the net settings])
1
("gfx/sprites/flare2.bmp",0,0,100+i)
playa slaya has written
i have looked but i mean what is this in this string with numbers
1
("gfx/sprites/flare2.bmp",0,0,100+i)
First parameter = Image to load
Second parameter = some random parameter
Third Parameter = See "Second Parameter"
Fourth Parameter = Mode, draw sprite under player
i mean skins that you only have when you're on that server.
and how to use the new timers ?
please answer me
-WiLSoN- has written
with the new gfx thing you can add temporal skins ?
i mean skins that you only have when you're on that server.
and how to use the new timers ?
please answer me
i mean skins that you only have when you're on that server.
and how to use the new timers ?
please answer me
Ofr course, super skins new weapons skins suuuper cool xD.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
os.draw = image function playa.slaya.startround(id) 	if (player(id,"team")==1) then 		pl_t = os.draw("gfx/sprites/flare4.bmp",0,0,100) 		imagecolor(pl_t,255,0,0) 		imageblend(pl_t,1) 		imagealpha(pl_t,0.4) 	else 		pl_ct = os.draw("gfx/sprites/flare4.bmp",0,0,100) 		imagecolor(pl_ct,0,0,255) 		imageblend(pl_ct,1) 		imagealpha(pl_ct,0.4) 	end end
but coult you tell me how ?
or give me an example
also what about the timers ?
-WiLSoN- has written
@N-B-K
but coult you tell me how ?
or give me an example
also what about the timers ?
but coult you tell me how ?
or give me an example
also what about the timers ?
You have examples here in the forum, and you have one more in the samples folder.