Forum
Scripts
making lights
making lights
3 replies
1

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
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function initArray2(f,v)
local cmd={}
for c=1,f do
cmd[c]=v
end
return cmd
end
light=initArray2(32,0)
addhook("serveraction","pootlightheer")
function pootlightheer(id,a)
if (a==1) then --1 is F2, 2 is F3 and 3 is F4, change to whatever pleases you
if (light[id]==0) then
light[id]=image("gfx/sprites/flare3.bmp",player(id,"x"),player(id,"y"),1)
imageblend(light[id],1)
end
end
end
addhook("die","killlight")
function killlight(id)
freeimage(light[id])
light[id]=0
end
1

Offline