Przejdź do głównej zawartości

PlayerTextDrawSetShadow

Description

Adds a shadow to the bottom-right side of the text in a player-textdraw. The shadow font matches the text font.

NameDescription
playeridThe ID of the player whose player-textdraw to set the shadow size of.
PlayerText:textidThe ID of the player-textdraw to change the shadow of
shadowSizeThe size of the shadow. 0 will hide the shadow.

Returns

true - The function was executed successfully.

false - The function failed to execute. This means the player-textdraw doesn't exist.

Examples

new PlayerText:welcomeText[MAX_PLAYERS];

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

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

Notes

wskazówka

The shadow can be cut by the box area if the size is set too big for the area.