IsPlayerStreamedIn

IsPlayerStreamedIn

Description:
Function IsPlayerStreamedIn checks if a player is streamed in another player's client.
Function IsPlayerStreamedIn was added in 0.3a and will not work in earlier versions!
Players stream out if they are more than 150 meters away (see server.cfg - stream_distance)
Players aren't streamed in on their own client, so if playerid is the same as forplayerid it will return false!


Parameters:
(playerid, forplayerid)
int playerid The ID of the player to check is streamed in.
int forplayerid The ID of the player to check if playerid is streamed in for.


Return Values:
  • 1: The player is streamed in.
  • 0: The player is not streamed in.


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


Related Functions
The following functions may be useful, as they are related to this function in one way or another.


Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.