Detect if the weapon has a bullet
Hi everyone, well I'm doing something like a mini game of usp (pistol) that tries that when the round begins it gives everyone a usp with only one bullet ready to fire, every 5 seconds it gives a bullet, my question is how can I to detect if the player still has the bullet? What I want to do is that if the player still has the bullet, he will not get another bullet, so he will not accumulate bullets, but until he has no bullets and so on.
PHP Code:
|
Re: Detect if the weapon has a bullet
|
Re: Detect if the weapon has a bullet
Its okay like this?
PHP Code:
|
Re: Detect if the weapon has a bullet
I don't know, stop using magic numbers and name offsets properly. How can anyone understand what 373 is without searching?
|
Re: Detect if the weapon has a bullet
Is this 373 = offset m_pActiveItem
|
Re: Detect if the weapon has a bullet
So use it like this in your code:
PHP Code:
PHP Code:
|
| All times are GMT -4. The time now is 16:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.