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