1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
addhook("hit","dmgweapon_") function dmgweapon_(id,source,wpn,hpdmg,apdmg) local angok=hpdmg*1.5 local hpleft = player(id,"health")-angok if damage[source]==true and wpn<=91 then if player(source,"team") ~= player(id,"team") then if player(id,"health")>angok then parse("sethealth "..id.." "..hpleft) return 1 else parse('customkill '..source..' "[+],gfx/weapons/'..player(source,"weapontype")"name"..'_k.bmp" '..id) end end end end
when I run my script, the [+] isn't appeared but just the kill image, although my player character met all the conditional
I found this error written in console
LUA ERROR: sys/lua/autorun/Unknown.lua:1027: attempt to call a number value
line 1027 is in
parse('customkill '..source..' "[+],gfx/weapons/'..player(source,"weapontype")"name"..'_k.bmp" '..id)
Thanks