26.02.2011, 18:59
Ok, there are a few problems with the coordinates that you have provided. See my below script:
Put this in the top of your script:
Put this under onplayerconnect
Place all of these public functions anywhere in your script but not inside any items:
Put this in the top of your script:
pawn Код:
new Timer0;
new Timer1;
new Timer2;
new Timer3;
forward tut0(playerid);
forward tut1(playerid);
forward tut2(playerid);
forward tut3(playerid);
pawn Код:
Timer0 = SetTimerEx("tut0",10000,false, "i", playerid);
pawn Код:
public tut0(playerid)
{
SetPlayerCameraPos(playerid, 1421.9918,476.9649,91.7241);
SetPlayerCameraLookAt(playerid, 1383.8921,2185.5471,11.0234); //Stand in a position of what you want the camera to look at. (Stand infront of where your camera pos it)
KillTimer(Timer0);
Timer0 = SetTimerEx("tut1",10000,false, "i", playerid);
return 1;
}
public tut1(playerid)
{
SetPlayerCameraPos(playerid, 2468.1089,137.7119,134.0047,118.2917,0,0););
SetPlayerCameraLookAt(playerid, 1383.8921,2185.5471,11.0234); //Stand in a position of what you want the camera to look at. (Stand infront of where your camera pos it)
KillTimer(Timer1);
Timer1 = SetTimerEx("tut2",5000,false, "i", playerid);
return 1;
}
public tut2(playerid)
{
SetPlayerCameraPos(playerid, 33.1230,1248.1548,152.2349);
SetPlayerCameraLookAt(playerid, 1408.3383,2210.8264,23.7940); //Stand in a position of what you want the camera to look at. (Stand infront of where your camera pos it)
KillTimer(Timer2);
Timer2 = SetTimerEx("tut3",5000,false, "i", playerid);
return 1;
}
public tut3(playerid)
{
SetPlayerCameraPos(playerid, -794.3657,1679.9799,117.2407);
SetPlayerCameraLookAt(playerid, 1408.3383,2210.8264,23.7940); //Stand in a position of what you want the camera to look at. (Stand infront of where your camera pos it)
KillTimer(Timer0);
KillTimer(Timer1);
KillTimer(Timer2);
KillTimer(Timer3);
return 1;
}