function TTTDeathNotify( victim, weapon, attacker )
if !attacker:IsPlayer() then
ULib.tsayError( victim, "You were killed by the world." )
elseif attacker == victim then
ULib.tsayError( victim, "You just killed yourself..." )
elseif attacker:GetRole() == ROLE_TRAITOR then
ULib.tsayColor( victim, "", Color( 255, 255, 255 ), "You were killed by ", Color( 200, 25, 25 ), attacker:Nick(), Color( 255, 255, 255 ), " who was a ", Color( 200, 25, 25 ), "Traitor!" )
elseif attacker:GetRole() == ROLE_INNOCENT then
ULib.tsayColor( victim, "", Color( 255, 255, 255 ), "You were killed by ", Color( 25, 200, 25 ), attacker:Nick(), Color( 255, 255, 255 ), " who was an ", Color( 25, 200, 25 ), "Innocent!" )
elseif attacker:GetRole() == ROLE_DETECTIVE then
ULib.tsayColor( victim, "", Color( 255, 255, 255 ), "You were killed by ", Color( 25, 25, 200 ), attacker:Nick(), Color( 255, 255, 255 ), " who was a ", Color( 25, 25, 200 ), "Detective!" )
end
end
hook.Add( "PlayerDeath", "TTTDeathNotify", TTTDeathNotify )