Ugrás a fő tartalomhoz

TextDrawShowForAll

Description

Shows a textdraw for all players.

NameDescription
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 the textdraw specified does not exist.

Examples

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(240.0, 580.0, "Example Text");
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/showtd", true))
{
TextDrawShowForAll(gMyTextdraw);
return 1;
}
return 0;
}