14.01.2012, 12:36
Yes, you would need an very fast timer or you use OnPlayerUpdate
pawn Код:
public OnPlayerUpdate(playerid) {
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
new
Float: X,
Float: Y,
Float: Z,
Float: A;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, A);
SetPlayerCameraPos(playerid, X, Y, Z + 20);
SetPlayerCameraLookAt(playerid,
X - (floatsin(A, degrees) * 5),
Y + (floatcos(A, degrees) * 5),
Z);
}
return 1;
}