Przejdź do głównej zawartości

PlayerTextDrawGetFont

warning

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

Description

Gets the text font of a player-textdraw.

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

Returns

Returns the player-textdraw font.

Examples

new PlayerText:welcomeText[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
welcomeText[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "Welcome to my OPEN.MP server");
PlayerTextDrawFont(playerid, welcomeText[playerid], TEXT_DRAW_FONT_2);
PlayerTextDrawShow(playerid, welcomeText[playerid]);

new TEXT_DRAW_FONT:font = PlayerTextDrawGetFont(playerid, welcomeText[playerid]);
printf("Font: %d", font); // Font: 2
return 1;
}