Raised This Month: $ Target: $400
 0% 

Trying to catch ServerCommand


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-06-2009 , 14:49   Re: Trying to catch ServerCommand
Reply With Quote #1

Quote:
Originally Posted by PM View Post
As I have told you on IRC, the function you are hooking is the one AMXX invokes when you run the server_cmd native. That is, external DLLs can tell the engine to send some crap to its command parser as a server command - without the need to type it into the console. Note that you would only be able to intercept it when the gamedll calls it - which is pretty unlikely. There is no generic server command hook, like ClientCommand.

AMX/AMXX does this by calling REG_SVR_COMMAND for every registered server command / client command. They register every command to a central hook (plugin_srvcmd in srvcmd.cpp), which does a similar action to the function you have posted.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply


Thread Tools
Display Modes

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 20:17.


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