This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # usage: pass commands directly as arguments | |
| # examples: | |
| # python hlds_rcon.py say hello | |
| # python hlds_rcon.py changelevel de_dust2 | |
| # python hlds_rcon.py amx_kick RudePlayer02 | |
| import socket | |
| import sys | |
| def rcon(ip, port, password, command): |