Players can talk from the dead [Custom script] [TTT]

this code shows who killed you, what their role is, and what weapon they use and it works fine and if they are killed by a person it works fine… but when it’s added it makes so if you commit suicide or are slain, you can talk to alive people in chat… it’s very annoying, could someone help me out here? There are no lua errors on console for this script…

[lua]function DeathReporter( victim, weapon, killer )
if killer:IsPlayer() then
victim:ConCommand(“RDM_Box”)
if IsValid( victim ) && IsValid( killer ) then
victim:SetNWString(“Killer”, tostring(killer:Nick()))
victim:SetNWString(“KillerRole”, tostring(killer:GetRole()))

    if string.match(tostring(killer:GetActiveWeapon():GetClass()),"weapon_zm_") then
    victim:SetNWString("KillerWeapon", string.gsub(tostring(killer:GetActiveWeapon():GetClass()),"weapon_zm_",""))
    elseif string.match(tostring(killer:GetActiveWeapon():GetClass()),"weapon_ttt_") then
    victim:SetNWString("KillerWeapon", string.gsub(tostring(killer:GetActiveWeapon():GetClass()),"weapon_ttt_",""))
    end

    victim:SetNWInt("ShowReport", 1)
    timer.Simple(6, function()
            if IsValid(victim) then
                    victim:SetNWInt("ShowReport", 0)
            end
    end)

end

end

end

hook.Add( “PlayerDeath”, “DeathReporter”, DeathReporter )[/lua]

why would you do that.
you’ll be ruining the game.

[lua]if victim == killer then return end[/lua]