local armor = ply:GetArmor()
hook.Add("KeyPress", "ArmorIncrease", function(ply, key)
if key == KEY_E then
armor = armor + 5
ply:SetArmor(armor)
end
end)
--Хп
local maxHealth = 100
local function onKeyPress(ply, key)
if key == KEY_E then
if ply:Health() < maxHealth then
ply:SetHealth(ply:Health() + 1)
end
end
end
hook.Add("KeyPress", "AddHealth", onKeyPress)