Aller au contenu principal

GetPlayerCheckpoint

attention

La fonctionnalité de type fonction a été ajoutée dans la version omp v1.1.0.2612 et ne fonctionne pas avec les versions antérieures !

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