04.12.2013, 19:54
I have the following code, but it's not working when I do /preview.
I make sure I have /start and /stop done before I do anything, but it doesn't do anything.
pawn Код:
new Float:StartX, Float:StartY, Float:StartZ, Float:EndX, Float:EndY, Float:EndZ;
command(preview, playerid, params[])
{
TogglePlayerSpectating(playerid, true);
InterpolateCameraPos(playerid, StartX, StartY, StartZ, EndX, EndY, EndZ, 3);
return 1;
}
command(start, playerid, params[])
{
GetPlayerCameraPos(playerid, StartX, StartY, StartZ);
return 1;
}
command(stop, playerid, params[])
{
GetPlayerCameraPos(playerid, EndX, EndY, EndZ);
return 1;
}