Instant Reload
Hi.
I have one problem with instant reload. I want to make instant reload when weapon is reloading (Ham_Weapon_Reload with post=0). All is ok, but when player press R server crash :F Anyone know how to solve this problem? |
Re: Instant Reload
plugin ?
|
Re: Instant Reload
PHP Code:
|
Re: Instant Reload
PHP Code:
|
Re: Instant Reload
Now i have code like this:
PHP Code:
|
Re: Instant Reload
If you use my code, you don't need to hook Ham_Weapon_Realod.
If you use your first code, try to supercede the Reload if you reload weapon by yourself, or hook it post and if m_fInReload is 1, send ItemPostFrame. |
Re: Instant Reload
When i hook this post and send ItemPostFrame i have crash.
So, i return SUPERCEDE when i reload weapon by myself. |
Re: Instant Reload
If you send ItemPostFrame, remove IN_RELOAD from player button, else, ItemPostFrame gonna call Reload and make an infinite loop, that's why your server crashes.
|
| All times are GMT -4. The time now is 11:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.