Ugrás a fő tartalomhoz

TextDrawHideForPlayer

Description

Hides a textdraw for a specific player.

NameDescription
playeridThe ID of the player that the textdraw should be hidden for
Text:textidThe ID of the textdraw to hide

Returns

This function does not return any specific values.

Examples

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(123.0, 123.0, "Example");
return 1;
}

public OnGameModeExit()
{
TextDrawDestroy(gMyTextdraw);
return 1;
}

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

public OnPlayerDeath(playerid, reason)
{
TextDrawHideForPlayer(playerid, gMyTextdraw);
return 1;
}