I have some code that was written up for me, but it was untested and I was unable to get a hold of the coder.
The code essentially prints in chat who you were killed by in TTT, so if you were killed by a Traitor for instance, it would say that in chat along with the traitors name.
[lua]if ( SERVER ) then
hook.Add( “PlayerDeath”, “CHIIPPPSS” , function( Pl, Ent, Killer )
umsg.Start( "PlayerDeathCustom", Pl ) umsg.Entity( Killer ) umsg.Bool( Killer:IsTraitor() ) umsg.Bool( Killer:IsDetective() ) umsg.End() end)
usermessage.Hook( "PlayerDeathCustom" , function( um ) local Killer = um:ReadEntity() local IsT = um:ReadBool() local IsD = um:ReadBool() chat.AddText( Color( 255,255,255 ) , "You've been killed by ", Color( 175,175,175 ), Killer:Nick(), Color( 255,255,255 ), ( ( IsT or IsD ) and ", a " or ", an " ), ( (IsT and Color( 255,99,99)) or IsD (and Color( 52,128, 209)) or Color(161,232,116) ), ( (IsT and "Traitor!") or (IsD and "Detective!") or "Innocent!" ) ) chat.PlaySound() end)
I have no idea what the issue is.