AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Rcon messages (https://forums.alliedmods.net/showthread.php?t=56544)

pRED* 06-15-2007 21:58

Rcon messages
 
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?

_Master_ 06-16-2007 02:32

Re: Rcon messages
 
amx_showrcon <rcon_command>

pRED* 06-16-2007 02:55

Re: Rcon messages
 
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.


All times are GMT -4. The time now is 10:36.

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