When a guy throws at u a gutbomb then u heal +15 hp
Forum




Heal with gutbomb
5 replies



When a guy throws at u a gutbomb then u heal +15 hp
1
2
3
4
5
6
2
3
4
5
6
addhook("hit","hitgutbomb") function hitgutbomb(id,source,wpn,hpdmg) if wpn == 86 then parse("sethealth "..id.." "..player(id,"health")+15) end end
That will work, but it will also inflict the damage of a gut bomb. To change that use this:
1
2
3
4
5
6
7
2
3
4
5
6
7
addhook("hit","hitgutbomb") function hitgutbomb(id,source,wpn,hpdmg) 	if wpn == 86 then 		parse("sethealth "..id.." "..player(id,"health")+15) 		return 1 -- don't inflict dmg 	end end


1
2
3
4
5
6
7
2
3
4
5
6
7
addhook("hit","hitglock") function hitglock(id,source,wpn,hpdmg) if wpn == 2 then parse("sethealth "..id.." "..player(id,"health")+15) return 1 -- no damage end end
edited 2×, last 27.06.12 02:06:07 am



