Przejdź do głównej zawartości

GetPlayerRaceCheckpoint

warning

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

Description

Get the location of the current race checkpoint.

NameDescription
playeridThe ID of the player to get the checkpoint position of.
&Float:centreXA float variable in which to store the centreX coordinate in, passed by reference.
&Float:centreYA float variable in which to store the centreY coordinate in, passed by reference.
&Float:centreZA float variable in which to store the centreZ coordinate in, passed by reference.
&Float:nextXA float variable in which to store the nextX coordinate in, passed by reference.
&Float:nextYA float variable in which to store the nextY coordinate in, passed by reference.
&Float:nextZA float variable in which to store the nextZ coordinate in, passed by reference.
&Float:radiusA float variable in which to store the radius in, passed by reference.

Returns

This function does not return any specific values.

Examples

SetPlayerRaceCheckpoint(playerid, CP_TYPE_GROUND_NORMAL, 373.1631, 2502.4644, 16.4774, 269.8644, 2503.4963, 16.4774, 2.0);

new Float:centreX,
Float:centreY,
Float:centreZ,
Float:nextX,
Float:nextY,
Float:nextZ,
Float:radius;

GetPlayerRaceCheckpoint(playerid, centreX, centreY, centreZ, nextX, nextY, nextZ, radius);