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

PlayerTextDrawGetColor

எச்சரிக்கை

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

Description​

Gets the text color of a player-textdraw

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

Returns​

Returns the text 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");
PlayerTextDrawColor(playerid, pTextdraw[playerid], 0xFF0000FF);
PlayerTextDrawShow(playerid, pTextdraw[playerid]);

new color = PlayerTextDrawGetColor(playerid, pTextdraw[playerid]);
// color = 0xFF0000FF
return 1;
}