Register "+command" from client?
Hello. I'm using a plugin for unlimited ammo, but I want the plugin to show a message when the client press the reload button. The command is "+reload" so I tried this:
PHP Code:
|
Re: Register "+command" from client?
If you want to hook reload, you can detect reload button with fakemeta like this:
PHP Code:
|
Re: Register "+command" from client?
What you've done is close enough to reinvented the game engine method. Therefore effectively the same as register Ham_Weapon_Reload, but very inefficient.
|
Re: Register "+command" from client?
He said that he uses unlimited ammo, Ham_Weapon_Reload won't be called because the ammo won't be 0? :oops:
|
Re: Register "+command" from client?
Hello. Thank you for your help, the Ham_Weapon_Reload method seems to be not working when there's no reload, I mean, if you press the reload button but there's no reload, it doesn't work.
Now my other question, how can I block clients for reloading? Reloading is not needed :) Again, thank you in advance. |
Re: Register "+command" from client?
You can use Ham_Weapon_Reload and return HAM_SUPERCEDE it ;)
|
Re: Register "+command" from client?
Quote:
|
Re: Register "+command" from client?
Quote:
|
Re: Register "+command" from client?
PHP Code:
PHP Code:
|
Re: Register "+command" from client?
Quote:
PHP Code:
Quote:
|
| All times are GMT -4. The time now is 10:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.