A 7-year-old boy playing basketball with his 13-year-old cousin at a Richmond recreation center on Sunday was robbed after one of four young males who approached him put a gun to his head and told him to empty his pockets, police said.