IsValidPlayer: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server & Client|1.0}} | {{Info|Function|Server & Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Checks whether the specified player is connected to the server or not.}} | ||
{{FuncSyntax|IsValidPlayer(player)}} | {{FuncSyntax|IsValidPlayer(player)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|player| | {{FuncParam|player|The player id}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true''' if the player is connected, otherwise '''false'''.}} | ||
== Example == | == Example == |
Revision as of 14:30, 10 November 2019
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__