Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> from SRCDS import SRCDS
- >>> cafeserver = SRCDS('66.150.214.212', 27015, 'thetotallyrealpw', 2)
- >>> cafeserver.status()
- ({'cpu_usage': '0.00', 'secure': True, 'ip': '66.150.214.212', 'app_id': 47105, 'exe_version': '1.2.2.7', 'in': '0.00', 'slots': 25, 'port': '27015 (public ip', 'out': '0.00', 'uptime': '6799', 'server_name': 'Cafe of Broken Dreams', 'fps': '66.48', 'current_playercount': 0, 'server_os': 'Linux', 'version': '1.2.2.7/22 5038 secure', 'protocol_version': 17, 'map': 'koth_lakeside_final', 'current_botcount': 0, 'current_map': 'koth_lakeside_final', 'users': '79', 'server_type': 'Dedicated', 'game_directory': 'tf', 'max_players': 24, 'name': 'Cafe of Broken Dreams', 'game_description': 'Team Fortress', 'players': 1, 'passworded': False, 'hl_version': 2}, {2: {'loss': 0, 'adr': 0, 'name': 'Replay Bot', 'ping': 0, 'state': 0, 'connected': 0, 'uniqueid': 'BOT'}})
- >>> cafeserver.details()
- {'current_botcount': 0, 'current_map': 'koth_lakeside_final', 'secure': True, 'server_name': 'Cafe of Broken Dreams', 'server_type': 'Dedicated', 'game_description': 'Team Fortress', 'app_id': 47105, 'exe_version': '1.2.2.7', 'server_os': 'Linux', 'game_directory': 'tf', 'current_playercount': 0, 'protocol_version': 17, 'max_players': 24, 'hl_version': 2, 'passworded': False}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement