You should either do cs_user_spawn, or spawn twice (there's a bug in the HL engine)
Also, the way you made this is retarded. Every time one person dies, you check if everyone is dead and end up spawning only one person. On top of that, you don't take into account spectators or just joined players.
Use read_data(2), it gives you the victim of the DeathMsg.