TogglePlayerSpectating > OnplayerConnect
#1

Hello everyone.
I have made an "Loginsystem" with Textdraws.
On OnPlayerConnect I set TogglePlayerSpectating(playerid,1); so the User is not able to get to the SkinRequest.


After the User has registered, I set TogglePlayerSpectating(playerid,0); and Spawn him, but nothing happens.
The Camera stays the same where it was set to TogglePlayerSpectating(playerid,1);

Does anybody knows why?
Reply
#2

Your problem is, you haven't spawned the player manually meaning you've left them hanging at the Connection Screen. Or at least I guess you haven't told me which camera position.

It HAS to be in this order however where you stop the spectating:

pawn Код:
TogglePlayerSpectate(playerid, false);
SpawnPlayer(playerid);
Reply
#3

Really hard to give you a definitive analysis without any code at best we can only speculate as to what the issue could be.
Reply


Forum Jump:


Users browsing this thread: