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