Sziasztok
Elkezdtem egy ilyen mozgó kamerát minden jól megy szépen végig megy login panelt is bedobja de mikor beírom jelszót akkor nem dob a karakter választóba inkább megint újrakezdi
jelenleg így néz ki
new StepSpawnPlayer[MAX_PLAYERS];
new Camera[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
StepSpawnPlayer[playerid] = 0;
Camera[playerid] = SetTimerEx(\"mozgokamera\", 2000, false, \"i\", playerid);
return 1;
}
forward mozgokamera(playerid, type);
public mozgokamera(playerid, type)
{
//TogglePlayerSpectating(playerid, 1);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
switch(type)
{
case 0:
{
InterpolateCameraPos(playerid, 98.014442, -1898.219848, 43.789333, 202.701431, -1801.561645, 21.958585, 5000);
InterpolateCameraLookAt(playerid, 101.137878, -1894.713867, 42.071178, 207.330978, -1800.037597, 20.843055, 5000);
SetTimerEx(\"mozgokamera\", 5000-600, 0, \"id\", playerid, 1);
}
case 1:
{
InterpolateCameraPos(playerid, 202.701431, -1801.561645, 21.958585, 132.222778, -1990.696899, 130.671890, 4000);
InterpolateCameraLookAt(playerid, 207.330978, -1800.037597, 20.843055, 134.914337, -1990.562011, 126.460327, 4000);
SetTimerEx(\"mozgokamera\", 4000-600, 0, \"id\", playerid, 2);
}
case 2:
{
InterpolateCameraPos(playerid, 132.222778, -1990.696899, 130.671890, 344.082275, -2125.614746, 11.826739, 8000);
InterpolateCameraLookAt(playerid, 134.914337, -1990.562011, 126.460327, 347.755004, -2122.481445, 10.525499, 8000);
SetTimerEx(\"mozgokamera\", 8000-600, 0, \"id\", playerid, 3);
}
case 3:
{
InterpolateCameraPos(playerid, 344.082275, -2125.614746, 11.826739, 1011.901000, -2376.593994, 26.804319, 5000);
InterpolateCameraLookAt(playerid, 347.891998, -2122.574707, 10.711217, 1016.406860, -2375.272949, 25.086170, 5000);
SetTimerEx(\"mozgokamera\", 5000-600, 0, \"id\", playerid, 4);
}
case 4:
{
InterpolateCameraPos(playerid, 1011.901000, -2376.593994, 26.804319, 1012.322204, -2376.100585, 26.804319, 5000);
InterpolateCameraLookAt(playerid, 1016.406860, -2375.272949, 25.086170, 1008.886962, -2372.750976, 25.397790, 5000);
SetTimerEx(\"mozgokamera\", 5000-600, 0, \"id\", playerid, 5);
//case 2:InterpolateCameraLookAt(playerid, x, y, z, ide X, ide Y, ide Z, 2900, CAMERA_MOVE),pos[playerid] = 0;
}
}
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
if(StepSpawnPlayer[playerid] == 1)
{
TogglePlayerControllable(playerid, false);
SetTimerEx(\"mozgokamera\", 5000-600, 0, \"id\", playerid, 0);
SetCameraBehindPlayer(playerid);
}
return 1;
}