AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Why AMXX can't hook this command? Can someone help? (https://forums.alliedmods.net/showthread.php?t=208114)

wgwgkg 02-10-2013 05:54

Why AMXX can't hook this command? Can someone help?
 
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.:oops:

Arkshine 02-10-2013 06:25

Re: Why AMXX can't hook this command? Can someone help?
 
You can't.

wgwgkg 02-10-2013 06:39

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

Originally Posted by Arkshine (Post 1891463)
You can't.

Which means that AMXX is impossible to do this?Then can hook this using orpheu?

YamiKaitou 02-10-2013 06:52

Re: Why AMXX can't hook this command? Can someone help?
 
You can't hook it at all. The client never sends exec to the server as it is handled by the client directly.


All times are GMT -4. The time now is 20:38.

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