A three-day hunt for a gunman across Sydney is over with police tracking the accused to a Burwood hotel.