IsValidPlayer: Difference between revisions

From Onset Developer Wiki
No edit summary
28days (talk | contribs)
No edit summary
Line 1: Line 1:
{{Info|Function|Server & Client|1.0}}
{{Info|Function|Server & Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Checks whether the specified player is connected to the server or not.}}


{{FuncSyntax|IsValidPlayer(player)}}
{{FuncSyntax|IsValidPlayer(player)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|player|__EDIT_ME__}}
{{FuncParam|player|The player id}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns '''true''' if the player is connected, otherwise '''false'''.}}


== Example ==
== Example ==

Revision as of 14:30, 10 November 2019

IsValidPlayer

Type: Function
Context: Server & Client
Introduced: v1.0

Description

Checks whether the specified player is connected to the server or not.

Syntax

IsValidPlayer(player)

Parameters

  • player
    The player id

Return Value

  • Returns true if the player is connected, otherwise false.

Example

__EDIT_ME__

See also

__EDIT_ME__