SA-MP Forums Archive
InterpolateCameraPos not work - 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: InterpolateCameraPos not work (/showthread.php?tid=623592)



- TYDS - 02.12.2016

Код:
InterpolateCameraPos(playerid, 2047.935913, 1689.950805, 10.245789, 2064.971191, 777.521545, 79.280418, 25000);
InterpolateCameraLookAt(playerid, 2047.719726, 1685.026000, 11.082003, 2065.255126, 782.465698, 78.591529, 25000);
i put in onplayerconnect but it no work ??

any one


Re: InterpolateCameraPos not work - silenthill - 02.12.2016

Quote:
Originally Posted by TYDS
Посмотреть сообщение
any one
try OnPlayerRequestClass


Re: InterpolateCameraPos not work - TYDS - 02.12.2016

Quote:
Originally Posted by silenthill
Посмотреть сообщение
try OnPlayerRequestClass
still not work


Re: InterpolateCameraPos not work - silenthill - 02.12.2016

Quote:
Originally Posted by TYDS
Посмотреть сообщение
still not work
PHP код:
InterpolateCameraPos(playerid2047.9359131689.95080510.2457892064.971191777.52154579.28041825000,CAMERA_MOVE);
InterpolateCameraLookAt(playerid2047.7197261685.02600011.0820032065.255126782.46569878.59152925000,CAMERA_CUT); 
https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt
cut The style of the change.


Example my code:

PHP код:
InterpolateCameraPos(playerid2130.3959961676.91528318.6513592012.0167231670.24279718.3263206000,CAMERA_MOVE);
InterpolateCameraLookAt(playerid2125.6335441676.18249517.3161922007.0327141669.86279218.2052346000,CAMERA_CUT); 



Re: InterpolateCameraPos not work - Threshold - 02.12.2016

Don't call it directly under OnPlayerConnect. Put a delay on it, like maybe 4 or 5 seconds.


Re: InterpolateCameraPos not work - TYDS - 02.12.2016

oh and how can i delete all car on server but only delete the cars uninhabited on