Just use masonary nails, they work fine and used them for years.
I do have two masonry nail guns though, will only work if the blocks are relatively soft, and definitely won’t go in the joint. I only used it once as it didn’t work that well.
I’ve another Bostitch masonry nailer that I’d...