Przejdź do głównej zawartości

GetPlayerCheckpoint

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 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:radiusA float variable in which to store the radius in, passed by reference.

Returns

This function does not return any specific values.

Examples

SetPlayerCheckpoint(playerid, 408.9874, 2537.8059, 16.5455, 1.5);

new Float:centreX,
Float:centreY,
Float:centreZ,
Float:radius;

GetPlayerCheckpoint(playerid, centreX, centreY, centreZ, radius);