SolvedTTT Death Notifier problems?

Posts 12 of 2 · Page 1 of 1
TTT Death Notifier problems?
So I have this TTT Death Notifier code and I am not that good at coding in lua. So when I put this in my autorun folder for my server, it does show who killed me, but I do not show up as "Missing In Actuion" and I can still talk to those who are alive.

Code:
if ( SERVER ) then
    AddCSLuaFile("autorun/ttt_death_notify.lua")
    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)
      
  
else
  
    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)
  
end
Any help? Thanks!
1 week has passed and no further replies have been made by the OP. Assuming solved.

/Closed.
Posts 12 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?