Try this, compiled without error, didn't tested! BUT DON'T REMEMBER TO CHANGE COORDINATES TO YOUR! If you don't know how to add coordinates just PM me!
pawn Код:
forward camera1();
public camera1()
{
SetPlayerCameraPos(playerid, x, y, z); // This is camera position
SetPlayerCameraLookAt(playerid, x, y, z); // What camera will look at
SetTimer("camera2", 5000, false); // Will run camera2
}
forward camera2();
public camera2()
{
SetPlayerCameraPos(playerid, x, y, z); // This is camera position
SetPlayerCameraLookAt(playerid, x, y, z); // What camera will look at
SetTimer("camera3", 5000, false); // Will run camera3
}
forward camera3();
public camera3()
{
SetPlayerCameraPos(playerid, x, y, z); // This is camera position
SetPlayerCameraLookAt(playerid, x, y, z); // What camera will look at
SetTimer("camera4", 5000, false); // Will run camera4
}
forward camera4();
public camera4()
{
SetPlayerCameraPos(playerid, x, y, z); // This is camera position
SetPlayerCameraLookAt(playerid, x, y, z); // What camera will look at
SetTimer("camera5", 5000, false); // Will run camera5
}
forward camera5();
public camera5()
{
SetPlayerCameraPos(playerid, x, y, z); // This is camera position
SetPlayerCameraLookAt(playerid, x, y, z); // What camera will look at
SetPlayerPos(playerid,x, y, z); // Will spawn player
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/stunt1", cmdtext, true, 10) == 0)
{
SetTimer("camera1", 5000, false); // camera1 = next camera, 5000 = 5 seconds, false = will no loop this command
return 1;
}
return 0;
}