SA-MP Forums Archive
SetPlayerCameraPos question. - 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: SetPlayerCameraPos question. (/showthread.php?tid=297409)



SetPlayerCameraPos question. - Audiophr3ak - 15.11.2011

How do i force SetPlayerCameraPos to work with TogglePlayerSpectating at OnPlayerConnect/RequestSpawn/Spawn?
It works only when im using a custom function with timer after TogglePlayerSpectating. But i want it to work at the beginning (from OnPlayerConnect/Spawn)


Re: SetPlayerCameraPos question. - MP2 - 15.11.2011

See grandlarc. You need to use OnPlayerUpdate


Re: SetPlayerCameraPos question. - Audiophr3ak - 15.11.2011

Solved. I just need to use TogglePlayerSpectating at OnPlayerRequestSpawn. So easy. And Using OnPlayerUpdate sucks because of memory use :P Thanks for reply anyway


Re : SetPlayerCameraPos question. - decondelite - 15.11.2011

Do you use SetPlayerCameraPos after TogglePlayerSpectating at least?


Re: SetPlayerCameraPos question. - Audiophr3ak - 15.11.2011

Sure i am. But its solved allready, buddeh