forked from kythre/Buildmode-ULX
let people use the hp ball without dying to one shot
This commit is contained in:
parent
93cb543d63
commit
7656812866
@ -664,13 +664,6 @@ if SERVER then
|
|||||||
end
|
end
|
||||||
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)
|
end, HOOK_HIGH)
|
||||||
|
|
||||||
local kylebuildmode = ulx.command( "_Kyle_1", "ulx build", function( calling_ply, should_revoke )
|
local kylebuildmode = ulx.command( "_Kyle_1", "ulx build", function( calling_ply, should_revoke )
|
||||||
|
Loading…
Reference in New Issue
Block a user