pawn Код:
new Float:CameraMove[11][6] = {
// Camera PH
{1506.160034, -1628.318725, 39.840385, 1509.744506, -1627.368530, 38.340702},
{1488.403442, -1672.783935, 61.146617, 1492.046997, -1673.097412, 59.526088},
{1493.639770, -1741.486938, 31.594024, 1496.458129, -1744.097412, 30.479595},
{1493.639770, -1741.486938, 31.594024, 1492.158691, -1745.085937, 30.669948},
{1445.927490, -1764.869140, 14.574090, 1441.975585, -1764.497314, 14.080353},
{1390.880126, -1701.972778, 74.765525, 1393.198486, -1704.833496, 73.202987},
{1598.190795, -1741.359008, 59.402359, 1600.536132, -1738.202392, 58.670871},
{1679.965332, -1706.161010, 39.595474, 1682.712646, -1708.969116, 38.842494},
{1869.019165, -1490.238891, 62.145729, 1870.714477, -1487.155517, 60.243400},
{1696.037597, -1550.454101, 245.771972, 1694.024658, -1547.028808, 245.307647},
{1506.160034, -1628.318725, 39.840385, 1509.744506, -1627.368530, 38.340702}// Sempre tem que ser igual o primeiro
};
forward MoveLogin(playerid, Index);
public MoveLogin(playerid, Index) // By: ViniBorn
{
if(Player[playerid][FirstSpawn])
{
TogglePlayerSpectating(playerid, 1);
InterpolateCameraPos(playerid, CameraMove[Index][0], CameraMove[Index][1], CameraMove[Index][2],
CameraMove[Index+1][0], CameraMove[Index+1][1], CameraMove[Index+1][2], 6000, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, CameraMove[Index][3], CameraMove[Index][4], CameraMove[Index][5],
CameraMove[Index+1][3], CameraMove[Index+1][4], CameraMove[Index+1][5], 6000, CAMERA_MOVE);
if(Index < 6)
SetTimerEx("MoveLogin",5500,false,"ii",playerid,Index+1);
}
else TogglePlayerSpectating(playerid, 0);
}
MoveLogin(playerid, 0);//Para iniciar o movimento das cвmeras