Pular para o conteúdo principal

PlayerTextDrawGetFont

aviso

Esta função foi adicionada no omp v1.1.0.2612 e não funcionará em versões anteriores!

Descrição

Obtém a fonte do texto de um player-textdraw.

NomeDescrição
playeridO ID do jogador.
PlayerText:textidO ID do textdraw do qual obter a fonte.

Retornos

Retorna a fonte player-textdraw.

Exemplos

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); // Fonte: 2
return 1;
}

Funções Relacionadas