Raised This Month: $ Target: $400
 0% 

Rcon messages


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pRED*
Join Date: Dec 2006
Old 06-15-2007 , 21:58   Rcon messages
Reply With Quote #1

Is there anyway to hook the output of rcon commands.

Eg client types "rcon stats", then they get the server stats display in their console.

Can amxx hook this output or do you have to use sockets?
pRED* is offline
_Master_
Senior Member
Join Date: Dec 2006
Old 06-16-2007 , 02:32   Re: Rcon messages
Reply With Quote #2

amx_showrcon <rcon_command>
_Master_ is offline
pRED*
Join Date: Dec 2006
Old 06-16-2007 , 02:55   Re: Rcon messages
Reply With Quote #3

All showrcon does is send a normal rcon command from the user.
Read the code for it in admincmd.sma...

I want to intercept the stats data so I can find out the CPU level..

Maybe someone knows a better way of doing this?

Best way I could think of was client_cmd(id,"rcon stats"), then hook the resulting text and parse it for the CPU number.
Can do the same thing using sockets if you can't hook this.. but yeah never done sockets and most people don't run it.
pRED* is offline
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 10:36.


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