Ugrás a fő tartalomhoz

Attach3DTextLabelToPlayer

Description

Attach a 3D text label to a player.

NameDescription
Text3D:textidThe ID of the 3D text label to attach. Returned by Create3DTextLabel.
playeridThe ID of the player to attach the label to.
Float:offsetXThe X offset from the player.
Float:offsetYThe Y offset from the player.
Float:offsetZThe Z offset from the player.

Returns

true - The function executed successfully.

false - The function failed to execute. This means the player and/or label do not exist.

Examples

public OnPlayerConnect(playerid)
{
new Text3D:textLabel = Create3DTextLabel("Hello, I am new here!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(textLabel, playerid, 0.0, 0.0, 0.7);
return 1;
}