I've been in a number of West African countries, Pointe Noire in Congo and Cape Verde were really nice and I felt very comfortable walking around. We had to have armed guards in Angola, to go to the pub and 4 people were shot dead in 2 weeks, at a crossroads by our compound, but out and about was OK.
Senegal was a bit rough in and around the port, (aggressive Police and security shoving AK-47s in your face, to get fags and $$$) but the people were lovely. A local guy directed us to his relative's restaurant, where they had whole roast pig - they were Muslim! - no booze allowed...
Malabo in Equatorial Guinea was $1 a beer and felt very safe, wary, but friendly locals. It is a horrible dictatorship, of course.
Bonny Town in Nigeria was a bit scary, I really thought we'd be murdered by the port Police and we had to get a taxi from one bar to the one next door... The normal people were lovely, but holy fuck, we got in a taxi and cops / soldiers swarmed round, demanding "dash." I wouldn't choose to go back.
Namibia was mostly good, but the white locals made Hitler look like a wet liberal!