NPC:IsPlayerStreamedIn

From SA-MP Wiki

Jump to: navigation, search


NPC:IsPlayerStreamedIn was added in SA-MP 0.3a This NPC function was added in SA-MP 0.3a and will not work in earlier versions!


Image:32px-Ambox_warning_orange.png

Note

For the vehicle version of this function, check NPC:IsVehicleStreamedIn.


Description:

Checks if a player is streamed in for an NPC. Only nearby players are streamed in.


Parameters:
(playerid)
playeridThe ID of the player to check.


Return Values:

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


Example Usage:

if(IsPlayerStreamedIn(playerid))
{
    // Do something
}

Related Functions

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

Personal tools