Przejdź do głównej zawartości

PlayerTextDrawGetShadow

warning

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

Description

Get the shadow size on a player-textdraw.

NameDescription
playeridThe ID of the player.
PlayerText:textidThe ID of the player-textdraw to get the shadow size of.

Returns

Returns the player-textdraw shadow size.

Examples

new PlayerText:welcomeText[MAX_PLAYERS];

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

new shadow = PlayerTextDrawGetShadow(playerid, welcomeText[playerid]);
// shadow = 1
return 1;
}