Need help about TogglePlayerSpectating camera position - 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: Need help about TogglePlayerSpectating camera position (
/showthread.php?tid=473458)
Need help about TogglePlayerSpectating camera position -
Riwerry - 02.11.2013
Hello guys, I have got a question. I'm using TogglePlayerSpectating function for hide gui "Spawn button" in registration. But I don't know how to change camera position while is TogglePlayerSpectating enabled. Know somebody how I can change it? Thanks for replies.
Re: Need help about TogglePlayerSpectating camera position -
rappy93 - 02.11.2013
This might help you
https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt
Re: Need help about TogglePlayerSpectating camera position -
Riwerry - 02.11.2013
Hm, please can you explain little bit more?

I'm new pawner, I just want to know where to place SetPlayerCameraLookAt.
Thanks for reply.
Re: Need help about TogglePlayerSpectating camera position -
welderlourenco - 07.12.2014
I think i have the same problem here; I can successfully use these two functions (SetPlayerCameraPos and SetPlayerComeraLookAt) to generate the view I want, but whenever i use the function TogglePlayerSpectating the view is simply changed to another view, that's not even the default view... can someone help me.
// TogglePlayerSpectating(playerid, 1);
// These two function works well as long as i don't call TogglePlayerSpectating above

SetPlayerCameraPos(playerid, x, y, z);
SetPlayerCameraLookAt(playerid, x, y, z);
ps.: I want TogglePlayerSpectating to hide the spawn buttons when i'm showing login dialogs...
Can some one help me?