14.02.2016, 23:16
There's no bug with TogglePlayerSpectating. It's your code.
The only perhaps, undesired thingy would be that it DOES CALL OnPlayerSpawn when you "TogglePlayerSpectating(playerid, false)".
The only perhaps, undesired thingy would be that it DOES CALL OnPlayerSpawn when you "TogglePlayerSpectating(playerid, false)".