Teenage gunman Tim Kretschmer warned of his deadly plans in an internet chatroom the night before killing 15 people and himself.