Chuyển tới nội dung chính

IsPlayerStreamedIn

Description

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.

Returns

true - The player is streamed in.

false - The player is not streamed in.

Examples

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

Notes

mẹo

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)

cảnh báo

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