முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

GetPlayerSurfingOffsets

எச்சரிக்கை

செயல்பாடு என்பது omp v1.1.0.2612 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

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);
}