how can i hook void ClientCommand
Hello,
I try void ClientCommand(edict_t *pEntity) { SERVER_PRINT("HALLO"); } but it doesnt work. How can i hook all send to client commands on metamod plugin ? |
Re: how can i hook void ClientCommand
How do you register it?
|
Re: how can i hook void ClientCommand
I did not registered anything.
I'am trying catch all commands on server. Sry,i'am newbie on metamod/c++. I just want catch all amxmodx client_cmd, console_cmd function argvs. Like ; If some plugin send to player client_cmd(id,"say i'am n00b"); i catch it. sry for my english thanks |
Re: how can i hook void ClientCommand
You need hook function from engine, PF_stuffcmd_I.
|
Re: how can i hook void ClientCommand
PHP Code:
And don't forget about moduleconfig.h, uncomment (remove '//') from the front of ClientCommand... |
Re: how can i hook void ClientCommand
Some commands don't go through ClientCommand, like "slot1~10", "screenshot", "quit", "connect","retry"
they are handled client-side, see claudiuhks's reply. |
Re: how can i hook void ClientCommand
Thank you guys i will try it
|
All times are GMT -4. The time now is 04:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.