OnPlayerStreamIn

From SA-MP Wiki

Jump to: navigation, search

OnPlayerStreamIn


Warning: This callback was added in SA-MP version 0.3. It is not available in previous versions.


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.


This callback does not handle returns.


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

Personal tools