Raised This Month: $ Target: $400
 0% 

Changeing core amx cmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RaYden
Member
Join Date: Sep 2007
Old 09-30-2007 , 17:40   Changeing core amx cmd
Reply With Quote #1

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
RaYden is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 09-30-2007 , 17:54   Re: Changeing core amx cmd
Reply With Quote #2

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)
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
RaYden
Member
Join Date: Sep 2007
Old 09-30-2007 , 18:49   Re: Changeing core amx cmd
Reply With Quote #3

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).
RaYden is offline
Reply



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 16:05.


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