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

IsPlayerTextDrawVisible

هشدار

این تابع در نسخه omp v1.1.0.2612 اضافه شده و در نسخه‌های قبلی کار نخواهد کرد!

توضیحات​

چک می‌کنه که آیا یه 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
}
}

توابع مرتبط​