Skip to main content

IsPlayerStreamedIn

คำอธิบาย

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

NameDescription
playeridThe ID of the player to check is streamed in.
forplayeridThe 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.

ตัวอย่าง

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

บันทึก

tip

Players stream out if they are more than 150 meters away (see server.cfg - stream_distance)

warning

Players aren't streamed in on their own client, so if playerid is the same as forplayerid it will return false!

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