Skip to main content

PlayerTextDrawUseBox

คำอธิบาย

Toggle the box on a player-textdraw.

NameDescription
playeridThe ID of the player whose textdraw to toggle the box of
PlayerText:textThe ID of the player-textdraw to toggle the box of
bool:usetrue to use a box or false to not use a box

ส่งคืน

This function does not return any specific values.

ตัวอย่าง

new PlayerText:MyTD[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
MyTD[playerid] = CreatePlayerTextDraw(playerid, 40.0, 140.0, "_~N~Example text!~N~_");
PlayerTextDrawUseBox(playerid, MyTD[playerid], true);
PlayerTextDrawBoxColor(playerid, MyTD[playerid], 0x00000066); // Set the box color to a semi-transparent black
return 1;
}

ฟังก์ชั่นที่เกี่ยวข้องกัน