Further
This commit is contained in:
parent
eb200dafc6
commit
bde7e22f50
|
@ -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
|
||||
end)
|
||||
end
|
Loading…
Reference in New Issue