PlayerSpectatePlayer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP DL Edition (
https://sampforum.blast.hk/forumdisplay.php?fid=92)
+--- Forum: SA-MP 0.3.DL (
https://sampforum.blast.hk/forumdisplay.php?fid=90)
+--- Thread: PlayerSpectatePlayer (
/showthread.php?tid=646513)
PlayerSpectatePlayer -
Jaxson - 18.12.2017
It seems like doesn't work properly when you're trying to spectate a player from a different virtual world. Probably because OnPlayerFinishedDownloading is called in-between. It works fine when there is no virtual world change.
Does anyone know a smooth workaround for this issue?
Re: PlayerSpectatePlayer -
NaS - 18.12.2017
You must call PlayerSpectatePlayer again in OnPlayerFinishedDownloading. Save which player the spectator is spectating and then just reapply that in the callback.
Re: PlayerSpectatePlayer -
Jaxson - 18.12.2017
Quote:
Originally Posted by Rektumiliam
Wont it work if you get the players (who you want to spectate) Virtual World, and on /spec you set your Virtual World to his?
|
It won't.
Quote:
Originally Posted by NaS
You must call PlayerSpectatePlayer again in OnPlayerFinishedDownloading. Save which player the spectator is spectating and then just reapply that in the callback.
|
I think I tried that already because it seemed a logical solution, but unfortunately it didn't work. I'll try that again, perhaps I've miscoded something.