17.09.2012, 08:57
I believe you are after the function InterpolateCameraPos
https://sampwiki.blast.hk/wiki/InterpolateCameraPos
Your code should look something like this:
Replace 'time' in the InterpolateCameraPos with the amount of time you want it to take for the camera to get to the position. The floats in the InterpolateCameraPos and SetPlayerCameraLookAt functions are just examples, and are not recommended for use in your script.
https://sampwiki.blast.hk/wiki/InterpolateCameraPos
Your code should look something like this:
pawn Code:
new Float:x, Float:y, Float:z;
GetPlayerCameraPos(playerid, x, y, z);
InterpolateCameraPos(playerid, x, y, z, 100.33, 459.3, 19.1, time, CAMERA_MOVE);
SetPlayerCameraLookAt(playerid, 100, 450, 19);
//Code continues...