27.11.2011, 13:55
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & ...) { // ... = Key. Sorry for this, but I think there isn't.
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 1;
new
zAngle,
Vehicle = GetPlayerVehicleID(playerid);
GetVehicleZAngle(Vehicle,zAngle);
SetVehicleZAngle(Vehicle,zAngle);
}
return 1;
}