PlayerTextDrawBackgroundColor

From SA-MP Wiki

Jump to: navigation, search


PlayerTextDrawBackgroundColor was added in SA-MP 0.3e This feature (player-textdraws) was added in SA-MP 0.3e and will not work in earlier versions!


Description:

Adjust the background color of a player-textdraw.


Parameters:
(playerid, PlayerText:text, color)
playeridThe ID of the player whose player-textdraw to set the background color of
textThe ID of the player-textdraw to set the background color of
colorThe color that the textdraw should be set to.


Image:32px-Ambox_warning_orange.png

Note

If PlayerTextDrawSetOutline is used with size > 0, the outline color will match the color used in PlayerTextDrawBackgroundColor. Changing the value of color seems to alter the color used in PlayerTextDrawColor


Return Values:

This function does not return any specific values.


Example Usage:

new PlayerText:MyTextdraw;
 
public OnPlayerConnect(playerid)
{
    MyTextdraw = CreatePlayerTextDraw(playerid, 320.0, 425.0, "This is an example textdraw");
    PlayerTextDrawUseBox(playerid, MyTextdraw, 1);
    PlayerTextDrawBackgroundColor(playerid, MyTextdraw, 0xFFFFFFFF); // Set the background color of MyTextdraw to white
    return 1;
}

Related Functions

The following functions may be useful, as they are related to this function in one way or another.


Personal tools
Navigation
Toolbox