waves of zombies in the l4d style

okay, suppose I have several spawns hidden around the map, how do I only activate the spawns that are close to the player? because if they were all activated it would be bad for the performance and the spawns more distant would take to reach the player