Difference between revisions of "IsValidPlayer"

From Onset Developer Wiki
 
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 ==

Latest revision as of 15: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__