It's from the 1970s I think. Lots of black people and it settles on 2 rival gangs and one traitor who is found out at the end of the movie. The movie's final scene takes place on a beach. It cuts to a gang leader closing in on the traitor at the end of the movie. I can't remember any more of it.
TIA
TIA