NPC:OnPlayerStreamOut

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
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




NPC:OnPlayerStreamOut was added in SA-MP 0.3a This NPC callback was added in SA-MP 0.3a and will not work in earlier versions!


Image:32px-Circle-style-warning.png

Important
Note

For the player version of this callback, check OnPlayerStreamOut.


Description:

This callback is called when a player is streamed out the NPC.


Parameters:
(playerid)
playeridThe 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.