If you don't want to use B3 or any other log-reader-send-rcon-third-party-tool this you can use libcod:
https://github.com/kungfooman/libcod...r/gsc.cpp#L266
Your example would be:
Code:Cmd_ExecuteString("tell 2 Welcome to the server " + self.name);