I think the best thing to do is just keep running around in circles. You can survive without even having a weapon. You can't kill anything, but zombies won't catch up to you unless there's a dog, and you can knife them . And once the max number of zombies spawns, no more will spawn to you kill one. Buying a new weapon is cheaper than getting more ammo.