முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

PlayerTextDrawColour

எச்சரிக்கை

செயல்பாடு என்பது omp v1.1.0.2612 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Sets the text colour of a player-textdraw

NameDescription
playeridThe ID of the player who's textdraw to set the colour of
PlayerText:textidThe TextDraw to change.
textColourThe colour in hexadecimal format.

Returns​

This function does not return any specific values.

Examples​

new PlayerText:pTextdraw[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
pTextdraw[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "Example Text");
PlayerTextDrawColour(playerid, pTextdraw[playerid], 0xFF0000FF); // Red text

PlayerTextDrawShow(playerid, pTextdraw[playerid]);
return 1;
}

Notes​

உதவிக்குறிப்பு

You can also use Gametext colours in textdraws. (e.g. ~r~ ~g~ ~b~)

குறிப்பு

The textdraw must be re-shown to the player in order to update the colour.