Class_ReturnToSelection - 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)
+--- Thread: Class_ReturnToSelection (
/showthread.php?tid=539582)
Class_ReturnToSelection -
MarkoN - 28.09.2014
Hello,
I've decided to move from the plain AddPlayerClass to ******'s y_classes, so I've got a problem now, when the player joins - Class_DisableSelection(playerid); (before it was TogglePlayerSpectating(playerid, true); )... then after the player Registers/Logins - Class_ReturnToSelection(playerid); (before TogglePlayerSpectating(playerid, false); - it worked normal).
The problem is now that after the script sets Class_ReturnToSelection(playerid); the players camera stays at the Beach in Los Santos... It doesn't call OnPlayerRequestClass - well, calls it partially, when I hit spawn I get prompted to class slelection (a dialog) and spawn as the first team.
EDIT:
Ok, now it ignores Class_DisableSelection(playerid);, like it never gets called on OnPlayerConnect.
EDIT1:
Ok, kinda fixed it (hope this isnt a permanent solution). I checked if the player is logged in OnPlayerRequestClass and if its 0 it returns 0
Re: Class_ReturnToSelection -
MarkoN - 29.09.2014
bump.
Re: Class_ReturnToSelection -
Crayder - 29.09.2014
I wanted to know this too, if anyone knows a solution please commit...