Ugrás a fő tartalomhoz

PlayerTextDrawSetProportional

Description

Appears to scale text spacing to a proportional ratio. Useful when using PlayerTextDrawLetterSize to ensure the text has even character spacing.

NameDescription
playeridThe ID of the player whose player-textdraw to set the proportionality of
PlayerText:textidThe ID of the player-textdraw to set the proportionality of
bool:proportional'true' to enable proportionality, 'false' to disable.

Returns

This function does not return any specific values.

Examples

new PlayerText:welcomeText[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
welcomeText[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "Welcome to my server!");
PlayerTextDrawSetProportional(playerid, welcomeText[playerid], true);

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