thnx
Forum
CS2D Scripts glow luaglow lua
9 replies 1
thnx
thnx bolt if you have time i want players to glow like sys > Lua > Samples > Glow.lua (with glow around them) but ct blue and tero red
thnx
edited 1×, last 19.07.12 05:16:29 pm
king923 has written
that makes all player glow yellow
Then add:
1
2
3
4
5
2
3
4
5
if player(id,"team") == 1 then -- Terrorist 	imagecolor([imageid],255,0,0) elseif player(id,"team") == 2 then -- Counter-Terrorist 	imagecolor([imageid],0,0,255) end
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
imgs = {} for id = 1,32 do imgs[id]=0 end addhook("spawn","glowing") function glowing(id) 	imgs[id]=image("gfx/sprites/flare2.bmp",0,0,(id+100)) 	imageblend(imgs[id],1) 	imagealpha(imgs[id],0.5) 	if player(id,"team")==1 then 		imagecolor(imgs[id],255,0,0) 	elseif player(id,"team")==2 then 		imagecolor(imgs[id],0,0,255) 	elseif player(id,"team")==3 then 		imagecolor(imgs[id],255,255,255) 	end end addhook("die","notglow") function notglow(id) 	if imgs[id]>0 then 		freeimage(imgs[id]) 		imgs[id]=0 	end end
edited 1×, last 21.07.12 04:17:51 am
1