Raised This Month: $ Target: $400
 0% 

Why AMXX can't hook this command? Can someone help?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wgwgkg
Member
Join Date: May 2011
Old 02-10-2013 , 05:54   Why AMXX can't hook this command? Can someone help?
Reply With Quote #1

I want to hook the command "exec". Therefore, I tried to hook the function with register_clcmd("exec","cmd_refuse").
However, whatever I execute any configs, function "cmd_refuse" still not run. I think it's because "exec" is a client command, AMXX can't hook "exec". Then can I hook this function "exec" in another ways in AMXX? I just want to prevent execute configs in my server.

Please help~

Sorry for my poor English.
wgwgkg is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-10-2013 , 06:25   Re: Why AMXX can't hook this command? Can someone help?
Reply With Quote #2

You can't.
__________________
Arkshine is offline
wgwgkg
Member
Join Date: May 2011
Old 02-10-2013 , 06:39   Re: Why AMXX can't hook this command? Can someone help?
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
You can't.
Which means that AMXX is impossible to do this?Then can hook this using orpheu?
wgwgkg is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-10-2013 , 06:52   Re: Why AMXX can't hook this command? Can someone help?
Reply With Quote #4

You can't hook it at all. The client never sends exec to the server as it is handled by the client directly.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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:38.


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