Looking for someone to fix TTT death notifier [Tiny Script]

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)
      
  
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

I get this ERROR Please help thanks! i put this in the lua/autorun/ttt_deathnotify.lua
[ERROR] lua/autorun/ttt_death_notify.lua:23: unexpected symbol near ‘and’ 1. unknown - lua/autorun/ttt_death_notify.lua:0

It’s time for you to stop. You bumped your other thread every single hour, you aren’t more important than everyone else.
http://forum.facepunch.com/showthread.php?t=1246191