I use InterpolateCameraPos / LookAt, but when the timer is called this Interpolate camera position does not remove. And whenever i move my mouse to any way camera will go behind the player. I won't spawn player, I just want him to be there when he used cmd in isplayerinrangeofpoint.
Example:
+REP for a guy who find the solution.
Example:
Code:
CMD:camera(playerid)
{
InterpolateCameraPos(playerid, 221.893768, 1822.836059, 11.279774, 220.261932, 1822.938842, 10.925539, 2000);
InterpolateCameraLookAt(playerid, 217.278533, 1823.135986, 9.379850, 219.826156, 1822.940917, 5.944565, 3000);
SetTimerEx("Unstuck", 2000, false, "i", playerid);
Code:
forward Unstuck(playerid);
public Unstuck(playerid)
{
TogglePlayerSpectating(playerid, 0);
SetCameraBehindPlayer(playerid);
return 1;
}