SA-MP Forums Archive
TogglePlayerSpectating > OnplayerConnect - 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: TogglePlayerSpectating > OnplayerConnect (/showthread.php?tid=534920)



TogglePlayerSpectating > OnplayerConnect - Meisternuke - 01.09.2014

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?


Re: TogglePlayerSpectating > OnplayerConnect - IceCube! - 01.09.2014

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);



Re: TogglePlayerSpectating > OnplayerConnect - Pottus - 01.09.2014

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