Ana içeriğe geç

TextDrawHideForAll

Description

Hides a text draw for all players.

NameDescription
Text:textidThe ID of the textdraw to hide.
Returned by TextDrawCreate.

Returns

This function does not return any specific values.

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;
}
if (!strcmp(cmdtext, "/hidetd", true))
{
TextDrawHideForAll(gMyTextdraw);
return 1;
}
return 0;
}