Lua Error - Custom kill
Deleted UserBut I got problem with customkill:
Here is the script:
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
function hit_hook(id, source, weapon, hpdmg, apdmg)
	if entered[source] ~= 0 then
		parse('sethealth '.. id ..' '.. player(id, 'health') - turrets[entered[source]][4])
		if player(id, 'health') < 1 then
			parse('customkill '.. source ..' '.. turrets[entered[source]][7] ..' '.. id)
		end
		return 1
	end
end
There is no error
Just not working
Lua Error - Custom kill
1 

Offline