In 0.1.0.12 onPlayerSpawn function had a very rare error:
When you try to teleport a player, you get error instead. Solution was to put inside of onPlayerSpawn timer with 100-250 delay.
Timer should work always. And if you want to avoid segfault with timers, use playerid instead of player handle.