Changeing core amx cmd
Hello everybody ... I am cainda newb at this but I have a simple question to ask ...
I would like to alter amx_ban to do other stuff from another script that I have made and added to my server. Instead of wrighting amx_banx << private cmd could I simply redefine amx_ban in my script thus will result in redefining the normal amx_ban ex: register_concmd("amx_ban","mybanmethod" ... will this over wright the other cmd or will both of them be executed at the same time |
Re: Changeing core amx cmd
if your plugin is loaded before the amxx cmd plugin, and you return PLUGIN_HANDLED it should ignore the default amx_ban. However, to make sure it isn't used, you can just comment out the default register for amx_ban in the admincmd.sma (then recompile and use new compiled version)
|
Re: Changeing core amx cmd
yes I knew that just remembered a couple of minutes ago ty for ur confirmation that puts me at ease ( haven't wasted 10 minutes of scripting :p).
|
| All times are GMT -4. The time now is 16:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.