Lewati ke konten utama

GetPlayer3DTextLabelPos

peringatan

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

Description​

Gets the player's 3D text label position.

NameDescription
playeridThe ID of the player.
PlayerText3D:textidThe ID of the player's 3D text label to get the position of.
&Float:xAn float variable into which to store the X coordinate, passed by reference.
&Float:yAn float variable into which to store the Y coordinate, passed by reference.
&Float:zAn float variable into which to store the Z coordinate, passed by reference.

Examples​

new PlayerText3D:playerTextId;
new Float:playerX, Float:playerY, Float:playerZ;

GetPlayerPos(playerid, playerX, playerY, playerZ);
playerTextId = CreatePlayer3DTextLabel(playerid, "Hello\nI'm at your position", 0x008080FF, playerX, playerY, playerZ, 40.0);

new Float:x, Float:y, Float:z;
GetPlayer3DTextLabelPos(playerid, playerTextId, x, y, z);