Player.IsConnected
From GMod Wiki
Function | |
Syntax | Player:IsConnected( ) |
Description: | |
Returns true if the player is currently connected. false if otherwise. | |
Returns: | Boolean |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.IsConnected]Player.IsConnected [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Prints true if player 1 is connected, if not, it prints false |
---|---|
Used on | |
Code | pl=player.GetByID(1) print(tostring(pl:IsConnected())) |
Output | Boolean |