GetPlayer3DTextLabelColor
注意
该函数已弃用,请使用 GetPlayer3DTextLabelColour。
描述
获取玩家 3D 文本标签的颜色。
名称 | 描述 |
---|---|
playerid | 玩家的 ID |
PlayerText3D:textid | 需要获取颜色的玩家 3D 文本标签 ID |
返回值
返回玩家 3D 文本标签的颜色值(ARGB 格式)。
示例代码
new PlayerText3D:playerTextId;
new Float:X, Float:Y, Float:Z;
new color;
GetPlayerPos(playerid, X, Y, Z);
playerTextId = CreatePlayer3DTextLabel(playerid, "Hello\nI'm at your position", 0x008080FF, X, Y, Z, 40.0);
color = GetPlayer3DTextLabelColor(playerid, playerTextId);
// color = 0x008080FF
相关函数
- Get3DTextLabelColor: 获取 3D 文本标签颜色