Hey i actually need help with self reviver script
i have one

local managers = managers
local M_player = managers.player
local players_list = M_player._players
local set_player_state = M_player.set_player_state
local alive = alive

local function REPLENISH()
local ply = players_list[1]
if alive(ply) then
ply:base():replenish()
set_player_state(M_player, 'standart')
end
end

return REPLENISH

BUT when i revived i have 100 hp, and replenished ammo!
I want to do self reviver almost the same as somebody resurrected you and your health was 40, and ammo did not change. Could somebody help with that?