NPC:OnPlayerStreamIn
From SA-MP Wiki
| Important Note: For the Player version of this callback, check OnPlayerStreamIn. |
This callback is called when a player is streamed by the NPC.
(playerid)
| playerid | The player who has been streamed. |
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're 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.
