Nikolas Cruz has admitted killing 17 people at a school before escaping and visiting McDonald's.