local notify_staff = ba.notify_staff
local CurTime = CurTime
local IsValid = IsValid
hook.Add("PlayerDeath", "GlobalDeathMsg", function(victim, _, attacker)
if not (IsValid(attacker) and attacker:IsPlayer() and attacker ~= victim) then return end
attacker.RDMCount = (attacker.RDMCount or 0) + 1
if attacker.RDMCount == 1 then
attacker.RDM_StartTime = CurTime()
elseif attacker.RDMCount == 3 then
local elapsed = CurTime() - (attacker.RDM_StartTime or 0)
attacker.RDMCount = 0
attacker.RDM_StartTime = nil
if elapsed < 30 then
notify_staff("# Убил более 5 игроков в секунду. Следите за ним!", attacker)
end
end
end)