SA-MP Forums Archive
Problem with 'InterpolateCameraPos' on OnPlayerConnect - 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: Problem with 'InterpolateCameraPos' on OnPlayerConnect (/showthread.php?tid=410671)



Problem with 'InterpolateCameraPos' on OnPlayerConnect - backnot - 26.01.2013

I'm putting 'InterpolateCameraPos' on OnPlayerConnect but when I login the camera don't move.
Does anybody know the solution?
Код:
public OnPlayerConnect(playerid)
{
    TogglePlayerSpectating(playerid, true);
    InterpolateCameraPos(playerid, 3079.0652, -1520.4908, 129.4167, -2055.0005, -1512.4556, 129.4167, 300000, CAMERA_MOVE);
    return 1;
}



Re: Problem with 'InterpolateCameraPos' on OnPlayerConnect - Threshold - 26.01.2013

Try this:
pawn Код:
public OnPlayerConnect(playerid)
{
    TogglePlayerSpectating(playerid, true);
    InterpolateCameraPos(playerid, 3079.0652, -1520.4908, 129.4167, -2055.0005, -1512.4556, 129.4167, 10000, CAMERA_MOVE);
    return 1;
}