---
title: "IsPlayerStreamedIn | open.mp"
description: "Checks if a player is streamed in another player's client."
canonical: https://omp.itsneufox.com/th/docs/scripting/functions/IsPlayerStreamedIn
language: th
---

# IsPlayerStreamedIn

## คำอธิบาย

Checks if a player is streamed in another player's client.

| Name | Description |
| --- | --- |
| playerid | The ID of the player to check is streamed in. |
| forplayerid | The ID of the player to check if playerid is streamed in for. |

## ส่งคืน

1: The player is streamed in.

0: The player is not streamed in.

## ตัวอย่าง

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

## บันทึก

หมายเหตุ

**SA-MP server:** Players stream out if they are more than 200.0 meters away (see server.cfg - stream\_distance)

**open.mp server:** Players stream out if they are more than 200.0 meters away (see config.json - network.stream\_radius)

## ฟังก์ชั่นที่เกี่ยวข้องกัน

-   [IsActorStreamedIn](https://omp.itsneufox.com/th/docs/scripting/functions/IsActorStreamedIn): Checks if an actor is streamed in for a player.
-   [IsVehicleStreamedIn](https://omp.itsneufox.com/th/docs/scripting/functions/IsVehicleStreamedIn): Checks if a vehicle is streamed in for a player.
-   [OnPlayerStreamIn](https://omp.itsneufox.com/th/docs/scripting/callbacks/OnPlayerStreamIn): Called when a player streams in for another player.
-   [OnPlayerStreamOut](https://omp.itsneufox.com/th/docs/scripting/callbacks/OnPlayerStreamOut): Called when a player streams out for another player.
-   [OnVehicleStreamIn](https://omp.itsneufox.com/th/docs/scripting/callbacks/OnVehicleStreamIn): Called when a vehicle streams in for a player.
-   [OnVehicleStreamOut](https://omp.itsneufox.com/th/docs/scripting/callbacks/OnVehicleStreamOut): Called when a vehicle streams out for a player.
