23.08.2013, 14:24
When you toggle player spectating off, it automatically forces player to spawn, so you don't have to use SpawnPlayer function.
Also check your OnPlayerSpawn callback, maybe there is an issue there, however first try removing the SpawnPlayer as I said before.
Code:
Note: When the spectating is turned off, OnPlayerSpawn will automatically be called.