1
2
3
2
3
if team=1 setmaxhealt 150
if team=2 setmaxhealt 30
if player [team 2] health<10 player join team 1...
if team=1 setmaxhealt 150
if team=2 setmaxhealt 30
if player [team 2] health<10 player join team 1...
addhook("spawn","_spawn")
addhook("hit","_hit")
function _spawn(id)
local team=player(id,"team")
if team==1 then
parse("setmaxhealth "..id.." 150")
elseif team==2 then
parse("sexmaxhealth "..id.." 30")
end
end
function _hit(id,source,weapon,hpdmg)
if player(id,"health")-hpdmg<10 then
parse("maket "..id)
return 1
end
end