NPC:OnPlayerStreamIn

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!


Description:

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


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


Return Values:

This callback does not handle returns.


Image:32px-Ambox_warning_orange.png

Note

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);
    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.

Personal tools
Navigation
Toolbox
In other languages