Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
claws of vampires
3 replies![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)
1
2
3
4
5
6
7
2
3
4
5
6
7
addhook("hit","drain") function drain(id,src,wpn,hpdmg) 	if wpn == 78 then 		local rec = hpdmg/2 -- This makes the claw drain half of the damage dealt in HP 		parse("sethealth "..src.." "..player(src,"health")+rec) 	end end
edited 1×, last 01.12.15 05:29:48 am
![user](img/i_friend.png)
Well, at least I can get what he meant.
1
2
3
4
5
6
7
2
3
4
5
6
7
addhook("hit","drain") function drain(id,src,wpn,hpdmg) 	if wpn == 78 then 		local rec = hpdmg/2 -- This makes the claw drain half of the damage dealt in HP 		parse("sethealth "..src.." "..player(id,"health")+rec) 	end end
thank you
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)