Raised This Month: $ Target: $400
 0% 

Printing over Rcon?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
showdax
Senior Member
Join Date: Dec 2004
Old 05-08-2005 , 04:19   Printing over Rcon?
Reply With Quote #1

Is it possible to print something over rcon in the context of a server plugin? Normally when I call a server plugin-related command over rcon, it just prints the results to the server's console. Yet if I do something like "status" over rcon, it prints the results over rcon.

I tried setting breakpoints for Con_Printf() with gdb while running the server. When I called status from the server console and stepped, it called Msg(), which then called Con_Printf(), but when I called it over rcon it just called Con_Printf() directly.

The problem with that is that Con_Printf() is defined in the engine but not in the SDK, so I'm not entirely sure how to use it, or if I should be using it at all.

Edit: Well apparently IVEngineServer::ServerCommand("echo blah blah blah\n") does the job just fine!
showdax is offline
Send a message via MSN to showdax
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode