NPC:OnPlayerStreamOut
From SA-MP Wiki
(Difference between revisions)
Revision as of 13:57, 13 September 2009 Dark Kostas (Talk | contribs) (Deleted Return) ← Previous diff |
Revision as of 19:43, 23 April 2014 Ikkentim (Talk | contribs) (Added return value) Next diff → |
||
Line 10: | Line 10: | ||
{{Parameters|playerid}} | {{Parameters|playerid}} | ||
{{Param|playerid|The player who has been destreamed.}} | {{Param|playerid|The player who has been destreamed.}} | ||
+ | |||
+ | {{NoReturnCallback}} | ||
<pawn> | <pawn> |
Revision as of 19:43, 23 April 2014
Important | For the player version of this callback, check OnPlayerStreamOut. |
Description:
This callback is called when a player is streamed out the NPC.
(playerid)
playerid | The player who has been destreamed. |
Return Values:
This callback does not handle returns.
public OnPlayerStreamOut(playerid) { new string[80]; format(string, sizeof(string), "Bye ID %i!", playerid); SendChat(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:OnPlayerStreamIn: Called when a player streams is streamed for the NPC.
- NPC:OnVehicleStreamIn: Called when the NPC streams in a vehicle.
- NPC:OnVehicleStreamOut: Called when the NPC streams out a vehicle.