TextDrawHideForPlayer
From SA-MP Wiki
Description:
Hides a textdraw for a specific player.
(playerid, Text:text)
playerid | The ID of the player that the textdraw should be hidden for |
text | The ID of the textdraw to hide |
Return Values:
This function does not return any specific values.
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.
- TextDrawHideForAll: Hide a textdraw for all players.
- TextDrawShowForPlayer: Show a textdraw for a certain player.
- TextDrawShowForAll: Show a textdraw for all players.