---
title: "IsPlayerStreamedIn | open.mp"
description: "چک می‌کنه که آیا یه بازیکن در کلاینت بازیکن دیگه stream شده یا نه."
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/IsPlayerStreamedIn
language: fa
---

# IsPlayerStreamedIn

## توضیحات

چک می‌کنه که آیا یه بازیکن در کلاینت بازیکن دیگه stream شده یا نه.

| نام | توضیحات |
| --- | --- |
| playerid | ID بازیکنی که باید چک بشه که stream شده یا نه. |
| forplayerid | ID بازیکنی که باید چک بشه که playerid براش stream شده یا نه. |

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

**true** - بازیکن stream شده.

**false** - بازیکن stream نشده.

## مثال‌ها

```c
if (IsPlayerStreamedIn(playerid, 0))
{
	SendClientMessage(playerid, -1, "ID 0 can see you.");
}
```

## نکات

یادداشت

**سرور SA-MP:** بازیکنان اگه بیشتر از 200.0 متر فاصله داشته باشن stream out می‌شن (ببین [server.cfg](https://omp.itsneufox.com/fa/docs/server/server.cfg) - **stream\_distance**)

**سرور open.mp:** بازیکنان اگه بیشتر از 200.0 متر فاصله داشته باشن stream out می‌شن (ببین [config.json](https://omp.itsneufox.com/fa/docs/server/config.json) - **network.stream\_radius**)

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

-   [IsActorStreamedIn](https://omp.itsneufox.com/fa/docs/scripting/functions/IsActorStreamedIn): چک می‌کنه که آیا یه actor برای بازیکن stream شده یا نه.
-   [IsVehicleStreamedIn](https://omp.itsneufox.com/fa/docs/scripting/functions/IsVehicleStreamedIn): چک می‌کنه که آیا یه وسیله نقلیه برای بازیکن stream شده یا نه.

## callback های مرتبط

-   [OnPlayerStreamIn](https://omp.itsneufox.com/fa/docs/scripting/callbacks/OnPlayerStreamIn): وقتی بازیکن برای بازیکن دیگه stream می‌شه فراخوانی می‌شه.
-   [OnPlayerStreamOut](https://omp.itsneufox.com/fa/docs/scripting/callbacks/OnPlayerStreamOut): وقتی بازیکن برای بازیکن دیگه stream out می‌شه فراخوانی می‌شه.
-   [OnVehicleStreamIn](https://omp.itsneufox.com/fa/docs/scripting/callbacks/OnVehicleStreamIn): وقتی وسیله نقلیه برای بازیکن stream می‌شه فراخوانی می‌شه.
-   [OnVehicleStreamOut](https://omp.itsneufox.com/fa/docs/scripting/callbacks/OnVehicleStreamOut): وقتی وسیله نقلیه برای بازیکن stream out می‌شه فراخوانی می‌شه.
