IsValidPlayer: Difference between revisions
From Onset Developer Wiki
No edit summary |
FlyingFork (talk | contribs) No edit summary |
||
Line 11: | Line 11: | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua> | |||
print("Valid Player: " .. IsValidPlayer(player) and "Yes" or "No") | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{Template:PlayerFunctions}} |
Revision as of 14:37, 26 June 2021
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
print("Valid Player: " .. IsValidPlayer(player) and "Yes" or "No")