fix(rcon): add response to say/tell commands

This commit is contained in:
FutureRave 2023-03-23 13:29:58 +00:00
parent 3f3810a81f
commit 5795836d93

View File

@ -97,6 +97,7 @@ namespace chat
const auto* message = utils::string::va(format, 'O', text.data()); const auto* message = utils::string::va(format, 'O', text.data());
game::SV_GameSendServerCommand(-1, game::SV_CMD_CAN_IGNORE_0, message); game::SV_GameSendServerCommand(-1, game::SV_CMD_CAN_IGNORE_0, message);
printf("Server: %s\n", text.data());
}); });
// Overwrite tell command // Overwrite tell command
@ -121,6 +122,7 @@ namespace chat
const auto* message = utils::string::va(format, 'O', text.data()); const auto* message = utils::string::va(format, 'O', text.data());
game::SV_GameSendServerCommand(client, game::SV_CMD_CAN_IGNORE_0, message); game::SV_GameSendServerCommand(client, game::SV_CMD_CAN_IGNORE_0, message);
printf("Server -> %i: %s\n", client, text.data());
}); });
// Kill say fallback // Kill say fallback