A man accused in a Las Vegas shooting that killed two homeless people and wounded three others has pleaded guilty to two counts of first-degree murder.