23.11.2011, 16:17
pawn Код:
forward CameraTimer(playerid); // On top of the script.
new CameraTimer[MAX_PLAYERS]; // Top of the script.
CameraTimer[playerid] = SetTimerEx("CameraTimer", 1000, true, "i", playerid); // Where you want the timer to start
public CameraTimer(playerid)
{
new count;
count++;
switch(count);
{
case 1:
{
SetPlayerCameraPos(playerid, 320.0, 50.0, 170.0);
SetPlayerCameraLookAt(playerid, 324.34, 54.122, 173.35);
}
case 2:
{
SetPlayerCameraPos(playerid, 320.0, 50.0, 170.0);
SetPlayerCameraLookAt(playerid, 324.34, 54.122, 173.35);
}
case 3: KillTimer(CameraTimer[playerid]); // At the last case, last time when you want it.
return 1;
}