If we are all God's children then how come he plagued the Egyptians?

Note that the even happened in the Old Testament, when the only people that were God's true children were the Israelites.

It was only by Jesus' birth, that God accepted everyone to believe in him.