Police collected hundreds of guns at buyback events in two East Bay cities Saturday.

In Fremont, officials collected about 339 weapons, according to a police news release, including handguns, shotguns, and rifles. Officials distributed $50,300 in donated funds, they said.

In Pittsburg, police were also purchasing handguns, rifles, shotguns and assault weapons, for amounts from $50 per gun to $300.

In total, police collected 291 weapons, including assault rifles, handguns and shotguns. The Pittsburg Police Department distributed $56,550 in donated funds, Lt. Ron Raman said.

Raman said the buy back was primarily successful to all those who helped donate funds and support the event, which included the City of Pittsburg, Pittsburg Power Company, Supervisor Federal Glover's Office, Contra Costa County Sheriff's Office, Contra Costa County District Attorney's Office, Seeno/Discovery Homes, USS POSCO and Outback Restaurant.

Police in several Bay Area communities, including Oakland, East Palo Alto, San Mateo and Santa Clara counties, have run successful gun buyback programs in recent months. A buyback in Solano County netted more than 300 guns -- and a military rocket launcher, officials said.

Contact Daniel M. Jimenez at djimenez@bayareanewsgroup.com. Follow him at Twitter.com/DMJreports.