TextDrawHideForPlayer

TextDrawHideForPlayer

Description:
Function TextDrawHideForPlayer hides a textdraw for a specific player.


Parameters:
(playerid, Text:text)
int playerid The ID of the player that the textdraw should be hidden for.
int text The ID of the textdraw to hide.


Return Values:
  • 1: The function was executed successfully.
  • 0: The function failed to execute. This means either the player and/or textdraw specified does not exist.


Examples:
new Text:Textdraw[MAX_PLAYERS];
 
public OnPlayerConnect(playerid)
{
    Textdraw[playerid] = TextDrawCreate( ... );
    return 1;
}
 
public OnPlayerDisconnect(playerid, reason)
{
    TextDrawDestroy(Textdraw[playerid]);
    return 1;
}
 
public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid, Textdraw[playerid]);
    return 1;
}
 
public OnPlayerDeath(playerid, reason)
{
    TextDrawHideForPlayer(playerid, Textdraw[playerid]);
    return 1;
}


Related Functions
The following functions may be useful, as they are related to this function in one way or another.