Prevent Players from respawning in the middle of a match

This commit is contained in:
IonicCheese 2025-12-09 23:59:04 -08:00
commit 59c5d2eb85

View file

@ -322,7 +322,9 @@ core.register_globalstep(function(dtime)
if timer >= 10 then if timer >= 10 then
timer = 0 timer = 0
for _, player in pairs(core.get_connected_players()) do for _, player in pairs(core.get_connected_players()) do
player:set_hp(math.min(player:get_hp() + 2, 20)) if alive_players[name] == "alive" then
player:set_hp(math.min(player:get_hp() + 2, 20))
end
end end
end end
end) end)