TextDrawShowForPlayer

TextDrawShowForPlayer

Description:
Function TextDrawShowForPlayer shows a textdraw for a specific player.
If only a single player will see a textdraw, it might be wise to use player-textdraws instead. This is also useful for textdraws that need to show information specific for an individual player.


Parameters:
(playerid, Text:text)
int playerid The ID of the player to show the textdraw for.
int text The ID of the textdraw to show. Returned by TextDrawCreate.


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:
public OnPlayerConnect(playerid)
{
    new Text:textid = TextDrawCreate(100.0, 100.0, "Welcome!");
    TextDrawShowForPlayer(playerid, textid);
}


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