A South Texas man who pleaded guilty to killing an 86-year-old friend during a robbery has been sentenced to life in prison.