Camera help
#3

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;
}
Reply


Messages In This Thread
Camera help - by P<3TS - 09.07.2012, 11:08
Re: Camera help - by P<3TS - 09.07.2012, 14:29
Re: Camera help - by RedJohn - 09.07.2012, 16:38
Re: Camera help - by P<3TS - 09.07.2012, 16:50
Re: Camera help - by RedJohn - 09.07.2012, 17:09

Forum Jump:


Users browsing this thread: 1 Guest(s)