That would spawn the player everytime he spawns. It's like a loop.
Spawnplayer spawns the player, so when player spawns it spawns him again, and so on. I have tested it before and won't work.
P.S: The arrows to select class dont work too, neither 'spawn' button.