Forum

> > Trash > Help with script [FIXED]
Forums overviewTrash overviewLog in to reply

English Help with script [FIXED]

No replies
To the start Previous 1 Next To the start

closed moved Help with script [FIXED]

J4x
User Off Offline

Quote
Help me with this, i make this lua and it suppose that when i press f2 a image should appear, but nothing happens..


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
addhook("serveraction","spawn5")
function spawn5(id,action)
if act == 1 then
freeimage(id)
id1=image("gfx/light.bmp",1,1,200+id)
imagescale(id1,1,1)
imageblend(id,1)                                        
imagealpha(id,0.5)
if (player(id,"team") == 2) then
imagecolor(id1,255,255,255)
elseif (player(id,"team") == 1) then
imagecolor(id1,255,255,255)
end
end
end

addhook("buy","spawn2")
function spawn2(id,weapon)
if weapon ==50 then
freeimage(id)
id1=image("gfx/flare2.bmp",0,0,100+id)
imagescale(id1,1,1)
imageblend(id1,1)
imagealpha(id1,0.7)
if (player(id,"team") == 2) then
imagecolor(id1,0,0,0)
elseif (player(id,"team") == 1) then
imagecolor(id1,0,0,0)
end
end
end

PD: i already post it in lua thread but no one answers me.. so please dont close this thread.

FIXED
To the start Previous 1 Next To the start
Log in to replyTrash overviewForums overview