Ugrás a fő tartalomhoz

IsPlayerTextDrawVisible

vigyázat

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

Description

Checks if a player-textdraw is shown for the player.

NameDescription
playeridThe ID of the player to check.
PlayerText:textidThe ID of the player-textdraw.

Returns

true - Player-Textdraw is shown for the player.

false - Player-Textdraw is not shown for the player.

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]);

if (IsPlayerTextDrawVisible(playerid, welcomeText[playerid]))
{
// Player-Textdraw is shown
}
else
{
// Player-Textdraw is not shown
}
}