Camera problem - 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 problem (
/showthread.php?tid=620588)
Camera problem -
Hunud - 31.10.2016
Hello,
I have problem when i set this both
InterpolateCameraPos(playerid, -1034.764526, 1566.679565, 78.175552, 363.575378, 1691.733032, 76.135620, 10000);
InterpolateCameraLookAt(playerid, -1029.811645, 1567.347167, 78.021675, 359.672302, 1694.636840, 74.980529, 10000);
inside OnPlayerConnect its not working doesent even show this position! How to fix that ?
Re: Camera problem -
SickAttack - 31.10.2016
It does work if you put it in a blank script. You'll probably have to put that in a timer, or with a
player fully connected detection system, run that code.
Re: Camera problem -
Hackzzzz - 31.10.2016
You have to put in
OnPlayerRequestClass
Edit:
Код:
public OnPlayerRequestClass(playerid, classid)
{
TogglePlayerSpectating(playerid, 1);
InterpolateCameraPos(playerid, -1034.764526, 1566.679565, 78.175552, 363.575378, 1691.733032, 76.135620, 10000);
InterpolateCameraLookAt(playerid, -1029.811645, 1567.347167, 78.021675, 359.672302, 1694.636840, 74.980529, 10000);
// rest of your code
return 1;
}