跳至主要内容

GetPlayerSurfingOffsets

注意

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

Description

Gets a player's surfing offsets.

NameDescription
playeridThe ID of the player.
&Float:offsetXA float variable in which to store the offset X coordinate, passed by reference.
&Float:offsetYA float variable in which to store the offset Y coordinate, passed by reference.
&Float:offsetZA float variable in which to store the offset Z coordinate, passed by reference.

Returns

This function does not return any specific value.

Examples

new surfingVehicleId = GetPlayerSurfingVehicleID(playerid);
if (surfingVehicleId != INVALID_VEHICLE_ID)
{
new
Float:offsetX,
Float:offsetY,
Float:offsetZ;

GetPlayerSurfingOffsets(playerid, offsetX, offsetY, offsetZ);

SendClientMessage(playerid, -1, "offsetX = %.2f offsetY = %.2f offsetZ = %.2f", offsetX, offsetY, offsetZ);
}