Chuyển tới nội dung chính

PlayerTextDrawShow

Description

Show a player-textdraw to the player it was created for

NameDescription
playeridThe ID of the player to show the textdraw for
PlayerText:textidThe ID of the textdraw to show

Returns

This function does not return any specific values.

Examples

new PlayerText:welcomeText[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
welcomeText[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "Welcome to my OPEN.MP server");

PlayerTextDrawShow(playerid, welcomeText[playerid]);
return 1;
}

Notes

mẹo

The player-textdraw is only valid for the player it is created for. This means that you can't show a player-textdraw created for a particular player to another player.