پرش به مطلب اصلی

IsPlayerTextDrawVisible

هشدار

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

توضیحات

چک می‌کنه که آیا یه player-textdraw برای بازیکن نمایش داده شده یا نه.

نامتوضیحات
playeridID بازیکنی که باید چک بشه.
PlayerText:textidID player-textdraw.

مقادیر برگشتی

true - Player-Textdraw برای بازیکن نمایش داده شده.

false - Player-Textdraw برای بازیکن نمایش داده نشده.

مثال‌ها

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
}
}

توابع مرتبط