11.04.2012, 15:58
On 0.3e-RC2 which is currently on RC6 and still a security update, SA-MP released a new function for cameras which is what you're exactly looking for.
For more info on this, check out the thread for 0.3e by Kalcor.
https://sampforum.blast.hk/showthread.php?tid=323271
pawn Код:
native InterpolateCameraPos(playerid, Float:FromX, Float:FromY, Float:FromZ, Float:ToX, Float:ToY, Float:ToZ, time, cut = CAMERA_CUT);
native InterpolateCameraLookAt(playerid, Float:FromX, Float:FromY, Float:FromZ, Float:ToX, Float:ToY, Float:ToZ, time, cut = CAMERA_CUT);
native AttachCameraToObject(playerid, objectid);
native AttachCameraToPlayerObject(playerid, playerobjectid);
https://sampforum.blast.hk/showthread.php?tid=323271