Ana içeriğe geç

TextDrawShowForPlayer

Description

Shows a textdraw for a specific player.

NameDescription
playeridThe ID of the player to show the textdraw for.
Text:textidThe ID of the textdraw to show.
Returned by TextDrawCreate.

Returns

true - The function executed successfully.

false - The function failed to execute. This means either the player and/or textdraw specified does not exist.

Examples

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(100.0, 100.0, "Welcome!");
return 1;
}

public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, gMyTextdraw);
return 1;
}

Notes

ipucu

If only a single player will see a textdraw, it might be wise to use player-textdraws instead. This is also useful for textdraws that need to show information specific for an individual player.