A man from Swindon has pleaded guilty to "driving while drunk" and crashing a car killing one of his passengers and seriously injuring another.