Doublecrossed

Doublecrossed is a 1991 American action film written and directed by Roger Young. The film stars Dennis Hopper, Robert Carradine, Richard Jenkins, Adrienne Barbeau, Don Hood and G. W. Bailey. The film premiered on HBO July 20, 1991.
Plot.
This film tries to capture the life of Barry Seal, a one-time airline pilot who winds up being one of Pablo Escobar's biggest aides in delivering cocaine into the United States. Eventually, Seal is caught by the DEA and in order to stave off serious jail time, he identifies Pablo Escobar as the leader of the Medellin cartel. He eventually goes on to provide the first ever photographic evidence of Escobar.
It culminates in Seal's assassination by the Medellin Cartel which occurs after the DEA goes back on a plea deal. The judge sentences Seal to community service and declines to accept the conditions Seal needed (notably that since his life was in danger, he needed freedom of movement). Seal reports to his court mandated community service where gunmen are waiting for him, and he is shot dead.