Sending console messages to all players on a server Created 1 year ago2022-11-21 07:04:22 UTC by JacksBestGaming JacksBestGaming

Created 1 year ago2022-11-21 07:04:22 UTC by JacksBestGaming JacksBestGaming

Posted 1 year ago2022-11-21 07:04:22 UTC Post #347115
Is it possible to send console messages "like when you use the echo command" to every player on a server? Is it also possible to make this command only available to HLDS? I do not want anything to appear in the console other than the message.
Posted 1 year ago2022-11-21 11:54:36 UTC Post #347116
Posted 1 year ago2022-12-02 02:22:05 UTC Post #347142
Is there anyway to implement those into your own mod? I thought those only worked with certain mods.
Posted 1 year ago2022-12-02 11:13:22 UTC Post #347143
You can print to console using:
UTIL_ClientPrintAll(HUD_PRINTCONSOLE, "your message here\n");
You can also loop over all players and use:
CLIENT_PRINTF(client, print_console, "your message here\n");
The first method goes through the client dll first, the second goes through the engine.
Posted 1 year ago2022-12-04 21:05:27 UTC Post #347152
Thank you! This seems to be exactly what I need.
You must be logged in to post a response.