note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
TextDrawHideForPlayer
Description
Hides a textdraw for a specific player.
Name | Description |
---|---|
playerid | The ID of the player that the textdraw should be hidden for |
text | The ID of the textdraw to hide |
Returns
This function does not return any specific values.
Examples
new Text: gMyTextdraw;
public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate( ... );
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;
}
Related Functions
- TextDrawHideForAll: Hide a textdraw for all players.
- TextDrawShowForPlayer: Show a textdraw for a certain player.
- TextDrawShowForAll: Show a textdraw for all players.