Update auto-heal.txt
fixed bug
This commit is contained in:
parent
f2193cd920
commit
776c592e05
1 changed files with 2 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ hook.add("PlayerHurt","",function(ply)
|
|||
end
|
||||
end)
|
||||
hook.add("think","",function()
|
||||
if owner():isValid() and owner():isAlive() then
|
||||
if prop.canSpawn() then
|
||||
if canHeal == 1 and owner():getHealth() < 100 then
|
||||
prop.createSent(owner():getPos(),Angle(0),"item_healthkit")
|
||||
|
|
@ -24,5 +25,6 @@ hook.add("think","",function()
|
|||
if canHeal == 1 and owner():getArmor() < 100 then
|
||||
prop.createSent(owner():getPos(),Angle(0),"item_battery")
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue