-
Notifications
You must be signed in to change notification settings - Fork 27
Known problems with PySAMP
Simen E edited this page Jan 25, 2021
·
6 revisions
If you use TogglePlayerSpectating(playerid, True)
under OnPlayerRequestClass
in your gamemode, you may experience that the gamemode will close the connection to the client when you exit spectate mode. We are not sure why this is happening, but it is documented here: If the player is not loaded in before setting the spectate status to false, the connection can be closed unexpectedly.
The current workaround is to call SpawnPlayer(playerid)
just before starting spectating mode