Searching for the better usage
I need to check, if a player uses his spray and flashlight command, what's better to use?
Method #1: PHP Code:
Using "client_impulse" ( http://www.amxmodx.org/funcwiki.php?go=func&id=384 ) and checking their the type of it. |
Re: Searching for the better usage
register_impulse as it requires no further conditionals and you wouldn't be calling your forward for every type of impulse.
|
Re: Searching for the better usage
#1 ofcourse
|
Re: Searching for the better usage
Quote:
|
Re: Searching for the better usage
I only saw one other in the command list.. Either way you choose won't have much if any affect on performance on your plugin. One you need to check the impulse # and the other you don't.
http://www.counter-strike.com/comman...onsole_server/ |
Re: Searching for the better usage
Ok, thanks for this. :)
|
| All times are GMT -4. The time now is 01:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.