Class_ReturnToSelection
#1

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
Reply
#2

bump.
Reply
#3

I wanted to know this too, if anyone knows a solution please commit...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)