Forum
CS2D Scripts Healing GunHealing Gun
7 replies 1
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
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
mp_wpndmg
1