let people use the hp ball without dying to one shot

This commit is contained in:
edshot99 2024-07-21 00:32:21 -05:00
parent 93cb543d63
commit 7656812866

View File

@ -664,13 +664,6 @@ if SERVER then
end
end
if y:IsPlayer() then
local adminbypass = y:IsAdmin() and _Kyle_Buildmode["adminsbypassrestrictions"]=="1"
if (not adminbypass and (y:Health() > y:GetMaxHealth())) then
z:AddDamage(2*(y:Health()-y:GetMaxHealth()))
end
end
end, HOOK_HIGH)
local kylebuildmode = ulx.command( "_Kyle_1", "ulx build", function( calling_ply, should_revoke )