28.09.2014, 20:12
(
Последний раз редактировалось MarkoN; 22.10.2014 в 23:28.
)
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
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