-
Notifications
You must be signed in to change notification settings - Fork 28
Known problems with PySAMP
denNorske edited this page Jan 25, 2021
·
6 revisions
Related issue: https://github.com/habecker/PySAMP/issues/42
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