From e55ba53ba7aa993279bf3f6a21b1e771fda74f1d Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 23 Sep 2007 21:00:57 +0000 Subject: fixed remote console --- src/engine/client/client.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/engine/client') diff --git a/src/engine/client/client.c b/src/engine/client/client.c index 26865f37..87a3481f 100644 --- a/src/engine/client/client.c +++ b/src/engine/client/client.c @@ -299,6 +299,15 @@ static void client_send_error(const char *error) } +void client_rcon(const char *cmd) +{ + msg_pack_start_system(NETMSG_CMD, MSGFLAG_VITAL); + msg_pack_string(config.rcon_password, 32); + msg_pack_string(cmd, 256); + msg_pack_end(); + client_send_msg(); +} + static void client_send_input() { if(current_predtick <= 0) -- cgit 1.4.1