From SA-MP Wiki

Jump to: navigation, search

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


This callback is called when a player is streamed in for an NPC. Only nearby players are streamed in.

playeridThe ID of the player that is now streamed in for the NPC.

Return Values:

This callback does not handle returns.



For the player version of this callback, see OnPlayerStreamIn.

Example Usage:

public OnPlayerStreamIn(playerid)
    new string[80];
    format(string, sizeof(string), "/pm %d Hello! I have just loaded you!", playerid);
    return 1;

Related Callbacks

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

Personal tools
In other languages