Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Healing Gun
7 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)
![√](img/ok.gif)
or else make your own script using this hook:
hit hook
to get player id and damage
get the team of the player with:
player
and set new health with:
sethealth
![cs2d lua hook](img/i_codehelp.png)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- untested myGun = 2 addhook("hit","HealOrFeel") function HealOrFeel(vic, kil, wpn) 	if (wpn ~= myGun) then return 0 end	 	if (player(vic,"team") == player(kil,"team")) then 		parse("sethealth "..vic.." "..player(vic,"health") + 10) 		return 1 	else 		parse("sethealth "..vic.." "..player(vic,"health") - 10) 		return 1 	end end
edited 2×, last 04.06.19 02:41:34 pm
![cs2d cmd](img/i_codehelp.png)
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)