This commit is contained in:
Fesiug 2023-12-22 09:24:06 -05:00
parent eb200dafc6
commit bde7e22f50
1 changed files with 4 additions and 10 deletions

View File

@ -188,9 +188,9 @@ else
local attacker = net.ReadEntity() local attacker = net.ReadEntity()
local inflictor = net.ReadEntity() local inflictor = net.ReadEntity()
local name_victim local name_victim = "???"
local name_attacker local name_attacker = "???"
local name_inflictor local name_inflictor = "???"
if IsValid(victim) then if IsValid(victim) then
name_victim = victim:Nick() name_victim = victim:Nick()
end end
@ -203,14 +203,8 @@ else
else else
name_inflictor = inflictor:GetClass() name_inflictor = inflictor:GetClass()
end end
else
name_inflictor = "???"
end end
if !IsValid( attacker ) then chat.AddText( c_attacker, name_attacker, color_white, " [", name_inflictor, "] ", c_victim, name_victim, color_white )
chat.AddText( c_attacker, name_attacker, color_white, " [", name_inflictor, "] ", c_victim, name_victim, color_white )
else
chat.AddText( c_attacker, name_attacker, color_white, " [", name_inflictor, "] ", c_victim, name_victim, color_white )
end
end) end)
end end