1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
laser=initArray(32)
laser01=initArray(32)
addhook("select","laserz")
function laserz(id,t,mode)
	if t == 6 then
		if (laser01[id] == 6) then
		laser01[id]=0
		freeimage(laser[id])
	else
		laser01[id]=6
		laser[id]=image("gfx/!Huevitorojo Sprites/laser.png",1,1,200+id)
		imageblend(laser[id],1)
		imagecolor(laser[id],255,0,0)
		imagealpha(laser[id],0.7)
	end
	else
-- If not selected the right weapon, Remove the laser.
laser01[id]=0
freeimage(laser[id])
	end
	if t == 10 then
		if (laser01[id] == 10) then
		laser01[id]=0
		freeimage(laser[id])
	else
		laser01[id]=10
		laser[id]=image("gfx/!Huevitorojo Sprites/laser.png",1,1,200+id)
		imageblend(laser[id],1)
		imagecolor(laser[id],255,0,0)
		imagealpha(laser[id],0.7)
	end
	else
-- If not selected the right weapon, Remove the laser.
laser01[id]=10
freeimage(laser[id])
	end
end