NPC:OnPlayerStreamIn
From SA-MP Wiki
Description:
This callback is called when a player is streamed in for an NPC. Only nearby players are streamed in.
(playerid)
playerid | The ID of the player that is now streamed in for the NPC. |
Return Values:
This callback does not handle returns.
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.
- NPC:OnPlayerStreamOut: Called when a player streams out from the NPC.
- NPC:OnVehicleStreamIn: Called when the NPC streams in a vehicle.
- NPC:OnVehicleStreamOut: Called when the NPC streams out a vehicle.