View Single Post
Desikac
Senior Member
Join Date: Apr 2010
Location: Serbia
Old 03-30-2014 , 08:29   Re: "Unregister" or block command?
Reply With Quote #5

Quote:
Originally Posted by Black Rose View Post
Code:
public client_command(id) {
     new command[9];
     read_argv(0, command, charsmax(command));
     if ( equali(command, "amx_ban" ) {

             // Your code instead of amx_ban.

             return PLUGIN_HANDLED;
     }
     return PLUGIN_CONTINUE;
 }
That will not prevent the original amx_ban from executing. The player will already be kicked when my function starts.
Quote:
Originally Posted by YamiKaitou View Post
Just remove the register_concmd line from the plugin that registers it
Replacing another plugin is harder than just putting mine first in plugins.ini.
Desikac is offline
Send a message via MSN to Desikac Send a message via Skype™ to Desikac