Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Healing Gun
7 Antworten![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](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
2× editiert, zuletzt 04.06.19 14:41:34
![cs2d cmd](img/i_codehelp.png)
![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)