Add bullets to current mag?
Is there a way to add like 2 bullets in the current mag of the current gun in use? I mean maybe a native like cs_set_user_bpammo().
|
Re: Add bullets to current mag?
Quote:
PHP Code:
|
Re: Add bullets to current mag?
Code:
|
Re: Add bullets to current mag?
Quote:
|
Re: Add bullets to current mag?
Wouldn't that add ammo for their bp? The current mag would be something like as they're shooting and the ammo is running out. I think that may be what he wants, not sure though.
|
Re: Add bullets to current mag?
Code:
|
Re: Add bullets to current mag?
PHP Code:
|
Re: Add bullets to current mag?
Thank you all.
What I want to do is to make a superhero, where you, each second gain 2 more bullets in current mag. This makes it so people just doesn't spray, which is a common thing in SH mod. Also, I have no idea how to use stocks. I believe wrecked_'s version is the best? |
Re: Add bullets to current mag?
Both will work. Mine is a little more direct, as his searches for the gun in a loop.
A stock is a function. All you have to do is paste it at the bottom of your plugin and you can use it. |
Re: Add bullets to current mag?
Alternative to find_ent_by_owner : http://forums.alliedmods.net/showthread.php?t=85962
|
| All times are GMT -4. The time now is 14:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.