---
title: "PlayerTextDrawGetBoxColor | open.mp"
description: "رنگ جعبه یک textdraw بازیکن را دریافت کنید."
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawGetBoxColor
language: fa
---

# PlayerTextDrawGetBoxColor

هشدار

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

## توضیحات

رنگ جعبه یک textdraw بازیکن را دریافت کنید.

| نام | توضیحات |
| --- | --- |
| playerid | شناسه بازیکن. |
| PlayerText:textid | شناسه textdraw برای دریافت رنگ جعبه آن. |

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

رنگ جعبه textdraw بازیکن را برمی‌گرداند.

## مثال‌ها

```c
new PlayerText:welcomeText[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    welcomeText[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "Welcome to my OPEN.MP server");
    PlayerTextDrawUseBox(playerid, welcomeText[playerid], true);
    PlayerTextDrawBoxColor(playerid, welcomeText[playerid], 0xFF0000AA);
    PlayerTextDrawShow(playerid, welcomeText[playerid]);

    new boxColor = PlayerTextDrawGetBoxColor(playerid, welcomeText[playerid]);
    printf("Box Color: 0x%08X", boxColor); // Box Color: 0xFF0000AA
    return 1;
}
```

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

-   [CreatePlayerTextDraw](https://omp.itsneufox.com/fa/docs/scripting/functions/CreatePlayerTextDraw): ایجاد یک textdraw بازیکن.
-   [PlayerTextDrawDestroy](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawDestroy): حذف یک textdraw بازیکن.
-   [PlayerTextDrawBoxColor](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawBoxColor): تنظیم رنگ جعبه یک textdraw بازیکن.
-   [PlayerTextDrawColor](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawColor): تنظیم رنگ متن در یک textdraw بازیکن.
-   [PlayerTextDrawBackgroundColor](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawBackgroundColor): تنظیم رنگ پس‌زمینه یک textdraw بازیکن.
-   [PlayerTextDrawAlignment](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawAlignment): تنظیم چینش یک textdraw بازیکن.
-   [PlayerTextDrawFont](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawFont): تنظیم فونت یک textdraw بازیکن.
-   [PlayerTextDrawLetterSize](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawLetterSize): تنظیم اندازه حروف متن در یک textdraw بازیکن.
-   [PlayerTextDrawTextSize](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawTextSize): تنظیم اندازه جعبه textdraw بازیکن.
-   [PlayerTextDrawSetOutline](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawSetOutline): تغییر وضعیت حاشیه روی یک textdraw بازیکن.
-   [PlayerTextDrawSetShadow](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawSetShadow): تنظیم سایه روی یک textdraw بازیکن.
-   [PlayerTextDrawSetProportional](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawSetProportional): تنظیم فاصله متن در یک textdraw بازیکن به نسبت متناسب.
-   [PlayerTextDrawUseBox](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawUseBox): تغییر وضعیت جعبه روی یک textdraw بازیکن.
-   [PlayerTextDrawSetString](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawSetString): تنظیم متن یک textdraw بازیکن.
-   [PlayerTextDrawShow](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawShow): نمایش یک textdraw بازیکن.
-   [PlayerTextDrawHide](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawHide): مخفی کردن یک textdraw بازیکن.
