IsPlayerStreamedIn

From Onset Developer Wiki
Revision as of 19:47, 31 December 2019 by 28days (talk | contribs)
IsPlayerStreamedIn

Type: Function
Context: Server
Introduced: v1.0

Description

Check if the player B (otherid) is streamed in for player A (player).

Syntax

IsPlayerStreamedIn(player, otherid)

Parameters

  • player
    The player identifier for which the other player should be streamed in.
  • otherid
    The player identifier for the player which will be streamed in.

Return Value

  • The function returns true on success.

Example

if IsPlayerStreamedIn(playerId, otherId) then
    AddPlayerChat(playerId, "You have just streamed in other player.")
end

See also

Template:PlayerFunctions