TogglePlayerSpectating bug (KICK PLAYERS!)
#3

Redirect_Left told me about this the other day, it is indeed a bug.

When you call TogglePlayerSpectating(...,false), it spawns the player. If you do this before the player has entered class selection, and before any spawn info has been set, the server doesn't know where to spawn the player (or what skin to apply, etc.), so it kicks them. It's probably to prevent against some sort of cheat.

If you want to spawn the player, the solution is to use SetSpawnInfo before TogglePlayerSpectating. If you want to return the player to class selection, use ForceClassSelection instead.
Reply


Messages In This Thread
TogglePlayerSpectating bug (KICK PLAYERS!) - by adri1 - 25.08.2014, 00:06
Re: TogglePlayerSpectating bug (KICK PLAYERS!) - by Onfroi - 25.08.2014, 22:42
Re: TogglePlayerSpectating bug (KICK PLAYERS!) - by ev0lution - 28.08.2014, 10:59
Re: TogglePlayerSpectating bug (KICK PLAYERS!) - by momal12 - 29.08.2014, 06:52

Forum Jump:


Users browsing this thread: 1 Guest(s)