local phrases = {
"1.",
"owned"
}
local function get_phrase()
return phrases[Utils.RandomInt(1, #phrases)]:gsub('\"', '')
end
Cheat.RegisterCallback("events", function(event)
if event:GetName() ~= "player_death" then return end
tick = GlobalVars.tickcount
if ((tick % 3) == 4 then - 4
local me = EntityList.GetLocalPlayer()
local victim = EntityList.GetPlayerForUserID(event:GetInt("userid"))
local attacker = EntityList.GetPlayerForUserID(event:GetInt("attacker"))
if victim == attacker or attacker ~= me then return end
EngineClient.ExecuteClientCmd('say "' .. get_phrase() .. '"')
end
end)