ข้ามไปยังเนื้อหาหลัก

PlayerTextDrawGetBoxColor

คำเตือน

ฟังก์ชันนี้ถูกเพิ่มใน omp v1.1.0.2612 และจะไม่ทำงานในเวอร์ชันก่อนหน้า!

Description​

Gets the box color of a player-textdraw

NameDescription
playeridThe ID of the player
PlayerText:textidThe ID of the player textdraw to get the box color of

Returns​

Returns the box color of the player-textdraw.

Examples​

new PlayerText:pTextdraw[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
pTextdraw[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "Welcome to my OPEN.MP server");
PlayerTextDrawUseBox(playerid, pTextdraw[playerid], true);
PlayerTextDrawBoxColor(playerid, pTextdraw[playerid], 0xFFFF80FF);
PlayerTextDrawShow(playerid, pTextdraw[playerid]);

new boxColor = PlayerTextDrawGetBoxColor(playerid, pTextdraw[playerid]);
// boxColor = 0xFFFF80FF
return 1;
}