---
title: "PlayerTextDrawBackgroundColour | open.mp"
description: "رنگ پس‌زمینه یک textdraw بازیکن را تنظیم کنید."
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawBackgroundColour
language: fa
---

# PlayerTextDrawBackgroundColour

هشدار

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

## توضیحات

رنگ پس‌زمینه یک textdraw بازیکن را تنظیم کنید.

| نام | توضیحات |
| --- | --- |
| playerid | شناسه بازیکن که می‌خواهید رنگ پس‌زمینه textdraw او را تنظیم کنید |
| PlayerText:textid | شناسه textdraw بازیکن که می‌خواهید رنگ پس‌زمینه آن را تنظیم کنید |
| backgroundColour | رنگی که textdraw باید به آن تنظیم شود. |

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

این تابع هیچ مقدار خاصی بازنمی‌گرداند.

## مثال‌ها

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

public OnPlayerConnect(playerid)
{
    gMyTextdraw[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "Welcome to my OPEN.MP server");
    PlayerTextDrawUseBox(playerid, gMyTextdraw[playerid], true);
    PlayerTextDrawBackgroundColour(playerid, gMyTextdraw[playerid], 0xFFFFFFFF); // رنگ پس‌زمینه gMyTextdraw را به سفید تنظیم کنید
    return 1;
}
```

## نکته‌ها

یادداشت

-   اگر [PlayerTextDrawSetOutline](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawSetOutline) با اندازه > 0 استفاده شود، رنگ حاشیه با رنگ استفاده شده در PlayerTextDrawBackgroundColour مطابقت خواهد داشت.
-   تغییر مقدار رنگ به نظر می‌رسد که رنگ استفاده شده در PlayerTextDrawColour را تغییر می‌دهد.

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

-   [CreatePlayerTextDraw](https://omp.itsneufox.com/fa/docs/scripting/functions/CreatePlayerTextDraw): ایجاد یک textdraw بازیکن.
-   [PlayerTextDrawDestroy](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawDestroy): حذف یک textdraw بازیکن.
-   [PlayerTextDrawColour](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawColour): تنظیم رنگ متن در یک textdraw بازیکن.
-   [PlayerTextDrawBoxColour](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawBoxColour): تنظیم رنگ جعبه یک 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 بازیکن (یا ناحیه قابل کلیک برای PlayerTextDrawSetSelectable).
-   [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 بازیکن.
