More addhook("hit","rp_hit")
function rp_hit(id,source,wpn,hpdmg)
if (team_no[id]>0) then
if wpn==74 then
if havebal[id]==true then
havebal[id]=false
havebal[source]=true
parse("equip "..source.." 75") --add ball to source
parse("setweapon "..source.." 75")
parse("strip "..id.." 75") --gereftan ball
parse("setweapon "..id.." 74")
end
elseif wpn==75 then
if havebal[source]==true then
havebal[id]=true
havebal[source]=false
parse("equip "..id.." 75")
parse("setweapon "..id.." 75")
parse("strip "..source.." 75")
parse("setweapon "..source.." 74")
end
end
return 1
end
if (rp_ct[id]==true) then
return 1
end
if wpn == 2 then
parse("sethealth "..id.." "..player(id,"health")+math.random(10,20))
rp_msg2(id,"255255000","You have been healed by "..player(source,"name"))
return 1
elseif wpn == 74 then
return 1
end
end