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

# PlayerTextDrawColour

هشدار

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

## توضیحات

رنگ متن یک textdraw بازیکن را تنظیم کنید

| نام | توضیحات |
| --- | --- |
| playerid | شناسه بازیکن که می‌خواهید رنگ textdraw او را تنظیم کنید |
| PlayerText:textid | TextDraw برای تغییر. |
| textColour | رنگ در فرمت هگزادسیمال. |

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

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

## مثال‌ها

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

public OnPlayerConnect(playerid)
{
    pTextdraw[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "Example Text");
    PlayerTextDrawColour(playerid, pTextdraw[playerid], 0xFF0000FF); // متن قرمز

    PlayerTextDrawShow(playerid, pTextdraw[playerid]);
    return 1;
}
```

## نکته‌ها

نکته

همچنین می‌توانید از رنگ‌های Gametext در textdraw ها استفاده کنید. (مثل `~r~` `~g~` `~b~`)

یادداشت

textdraw باید دوباره به بازیکن نشان داده شود تا رنگ به‌روزرسانی شود.

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

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