Skip to main content

PlayerTextDrawGetBackgroundColour

warning

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

Description

Gets the background colour of a player-textdraw

NameDescription
playeridThe ID of the player
PlayerText:textidThe ID of the player textdraw to get the background colour of

Returns

Returns the background colour of the player-textdraw.

Examples

new PlayerText:pTextdraw[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
pTextdraw[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "Example Text");
PlayerTextDrawSetOutline(playerid, pTextdraw[playerid], 1);
PlayerTextDrawBackgroundColour(playerid, pTextdraw[playerid], 0x00FF00FF);
PlayerTextDrawShow(playerid, pTextdraw[playerid]);

new backgroundColour = PlayerTextDrawGetBackgroundColour(playerid, pTextdraw[playerid]);
// backgroundColour = 0x00FF00FF
return 1;
}