Unsetting Spawn Info - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Unsetting Spawn Info (
/showthread.php?tid=96802)
Unsetting Spawn Info -
Proteus - 11.09.2009
My gamemode will spawn the player without going through class selection, after they are put in spectate mode then TogglePlayerSpectating(playerid, 0); to move camera before csel.
If SetSpawnInfo is not used they should go to class selection but they only do half the time randomly and Kye has reviewed the code it is not a gamemode problem most likely.
So my
suggestion is a function to unset a players spawn info like
UnsetSpawnInfo(playerid)
Also, If I do ForceClassSelection(playerid) after TogglePlayerSpectating(playerid, 0) they always go to class selection but after their first death on server they go back to class selection. I think this can be considered a bug. If you do ForceClassSelection(playerid) and a player chooses a class in csel they should not go back more than once.