---
title: "HasGameText | open.mp"
description: "آیا بازیکن در حال حاضر متن در استایل gametext داده شده نمایش داره؟"
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/HasGameText
language: fa
---

# HasGameText

هشدار

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

## توضیحات

آیا بازیکن در حال حاضر متن در استایل gametext داده شده نمایش داره؟

| نام | توضیحات |
| --- | --- |
| playerid | ID بازیکنی که می‌خوای gametext ش رو چک کنی. |
| style | [استایل](https://omp.itsneufox.com/fa/docs/scripting/resources/gametextstyles) متنی که باید چک بشه. |

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

این تابع **true** برمی‌گردونه اگه بازیکن gametext داشته باشه، یا **false** اگه نداشته باشه.

## مثال‌ها

```c
public OnPlayerConnect(playerid)
{
    GameTextForPlayer(playerid, "Welcome to the server!", 5000, 3);

    if (HasGameText(playerid, 3))
    {
        // Do something
    }
    return 1;
}
```

## توابع مرتبط

-   [GameTextForPlayer](https://omp.itsneufox.com/fa/docs/scripting/functions/GameTextForPlayer): نمایش gametext به یه بازیکن.
-   [HideGameTextForPlayer](https://omp.itsneufox.com/fa/docs/scripting/functions/HideGameTextForPlayer): متوقف کردن نمایش یه استایل gametext به بازیکن.
-   [GameTextForAll](https://omp.itsneufox.com/fa/docs/scripting/functions/GameTextForAll): نمایش gametext به همه بازیکنان.
-   [HideGameTextForAll](https://omp.itsneufox.com/fa/docs/scripting/functions/HideGameTextForAll): متوقف کردن نمایش یه استایل gametext برای همه بازیکنان.
-   [GetGameText](https://omp.itsneufox.com/fa/docs/scripting/functions/GetGameText): دریافت همه اطلاعات در مورد استایل game text داده شده.
