IsPlayerStreamedIn

From SA-MP Wiki

Jump to: navigation, search

IsPlayerStreamedIn


Warning: This function was added in SA-MP version 0.3. It is not available in previous versions.


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


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


Returns1 if the player is streamed in, otherwise 0.


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


if(IsPlayerStreamedIn(playerid, 0)) SendClientMessage(playerid, COLOR_WHITE, "ID 0 can see you.");

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.


Related Callbacks

The following callbacks might be useful, as they're related to this function in one way or another.

Personal tools