function flame_medic(id,source,w,hpdmg,apdmg)
if w==46 then
parse("setheath "..id.." "..player(id,"heath")+1)
end
end
LUA ERROR: sys/lua/samples/medic.lua:19: attempt to perform arithmetic on a boolean value
Scripts
Lua error
Lua error
1

addhook("hit" , "flame_medic")
function flame_medic(id,source,w,hpdmg,apdmg)
	if w==46 then
		parse("setheath "..id.." "..(player(id,"health")+1).."")
	end
end
1
