Raised This Month: $12 Target: $400
 3% 

redefining a client command..?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
chumly
Senior Member
Join Date: Jul 2006
Old 03-21-2008 , 10:39   redefining a client command..?
Reply With Quote #1

Hi,

I'd like to change the way sm_kick functions, so I need to know what would happen if I defined the sm_kick client command in a custom script... would it work, or would it complain that the command exists.
In other words, do I really need to remove it from the basecommands, and recompile?

Thanks
Chumly.
chumly is offline
BAILOPAN
Join Date: Jan 2004
Old 03-22-2008 , 00:15   Re: redefining a client command..?
Reply With Quote #2

If two scripts register the same command, both callbacks will be invoked. Indeed you'll have to modify basecommands or implement a different command name.
__________________
egg
BAILOPAN 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 21:55.


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