NPC:OnPlayerStreamIn

NPC:OnPlayerStreamIn

Description:
Callback NPC:OnPlayerStreamIn is called when a player is streamed in for an NPC. Only nearby players are streamed in.
Callback NPC:OnPlayerStreamIn was added in 0.3a and will not work in earlier versions!
For the player version of this callback, see OnPlayerStreamIn.


Parameters:
(playerid)
int playerid The ID of the player that is now streamed in for the NPC.


Return Values:
This callback does not handle returns.


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


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