06.03.2010, 03:00
I don't think there is such function but you can check the last facing angle of the vehicle using a timer =].
pawn Код:
new VehicleRot[MAX_PLAYERS];
public OnGameModeInit()
{
SetTimer("Timer", 500, true);
return 1;
}
public Timer()
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerInAnyVehicle(i))
{
new Float:Angle;
GetPlayerFacingAngle(playerid, Angle);
VehicleRot[playerid] = Angle;
}
}
return 1;
}