pawn Код:
public OnPlayerConnect(playerid)
{
TogglePlayerSpectating(playerid, true);
SetPlayerCameraPos(playerid, -2625.480712, 2251.552246, 12.997936);
SetPlayerCameraLookAt(playerid, -2620.974853, 2249.394042, 12.796076); //Just for debug purposes, and it makes the movement look smoother.
SetTimerEx("StartupCamera", 1000, false, "i", playerid);
return 1;
}
forward StartupCamera(playerid);
public StartupCamera(playerid)
{
InterpolateCameraPos(playerid, -2625.480712, 2251.552246, 12.997936, -2469.983642, 2201.085205, 13.875505, 12000);
InterpolateCameraLookAt(playerid, -2620.974853, 2249.394042, 12.796076, -2465.130371, 2199.903320, 13.652922, 12000);
//I don't know if InterpolateCameraLookAt was meant to be at 1200 or 12000 speed...
//May want to TogglePlayerSpectating off here, and send your player to class selection or spawn them depending on your preference.
}