OnPlayerStreamIn

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 09:16, 17 February 2017
Dutheil (Talk | contribs)

← Previous diff
Current revision
OstGot (Talk | contribs)

Line 9: Line 9:
{{Param|forplayerid|The ID of the player that streamed the other player in.}} {{Param|forplayerid|The ID of the player that streamed the other player in.}}
-{{NoReturnCallback}}+{{Returns|This callback does not handle returns.
 +* It is always called first in filterscripts.}}
{{Example}} {{Example}}

Current revision



OnPlayerStreamIn was added in SA-MP 0.3a This 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 by some other player's client.


Parameters:
(playerid, forplayerid)
playeridThe ID of the player who has been streamed.
forplayeridThe ID of the player that streamed the other player in.


Return Values:

This callback does not handle returns.
  • It is always called first in filterscripts.


Example Usage:

public OnPlayerStreamIn(playerid, forplayerid)
{
    new string[40];
    format(string, sizeof(string), "Player %d is now streamed in for you.", playerid);
    SendClientMessage(forplayerid, 0xFFFFFFFF, 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
In other languages