Camera isn't working - 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: Camera isn't working (
/showthread.php?tid=418258)
Camera isn't working -
Noles2197 - 24.02.2013
I added "TogglePlayerSpectating(playerid,1);" to remove the spawn arrows, but now it won't show my camera I have set when a player connects. How can I fix this?
pawn Код:
public OnPlayerConnect(playerid){
SetPlayerColor(playerid,-1);
TogglePlayerSpectating(playerid,1);
SetPlayerCameraPos(playerid,-2673.2776,1394.3859,918.3516);
SetPlayerCameraLookAt(playerid,-2673.8381,1399.7424,918.3516);
}
Re: Camera isn't working -
JaKe Elite - 24.02.2013
Try to move the code in OnPlayerRequestClass.
Since, Setting the player camera after player connects doesn't work.
Re: Camera isn't working -
Noles2197 - 24.02.2013
It's still not working to show the player my camera.