IsPlayerStreamedIn
From SA-MP Wiki
Description:
Checks if a player is streamed in another player's client.
(playerid, forplayerid)
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. |
Return Values:
- 1: The player is streamed in.
- 0: The player is not streamed in.
Important | Players aren't streamed in on their own client, so if playerid is the same as forplayerid it will return false! |
Example Usage:
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.
- IsActorStreamedIn: Checks if an actor is streamed in for a player.
- IsVehicleStreamedIn: Checks if a vehicle is streamed in for a player.
Related Callbacks
The following callbacks might be useful, as they're related to this function in one way or another.
- OnPlayerStreamIn: Called when a player streams in for another player.
- OnPlayerStreamOut: Called when a player streams out for another player.
- OnVehicleStreamIn: Called when a vehicle streams in for a player.
- OnVehicleStreamOut: Called when a vehicle streams out for a player.