Weapon Pickup / Set AK47 & M4A1 to 50 bullets clip.
Dear friends
Actually, i have any trouble to define 50 bullets per clip (when weapon picked up). My problem is that when i set the ammo count, this is not for the current picked up weapon, but the previous used weapon. My code : Code:
public plugin_init() My plugins (PowerWeapons), add (not replace !), many new weapons like : Silver Kalachnikov, Colt Carabine M4M203, Magnum 44, Molotov cocktail, Canister, Poisonned grenade, Sawed off, Rocket launcher, Minigun. All without DLL servers side supplement (like WTF, etc). and no client modification. And more features. :D Actually i'm blocked with this 50 bullets features. |
Up,
I have tried another solution, but not working, always previous selected weapon will set ammo to 50 :( hihi :D |
Code:
(or use read_data(1) to get the weapon) :wink: |
good idea just finish this well :D
|
Quote:
You should note that this method is exploitable. It's possible to reload weapon and gain 20 extra ammo (50-30) then drop and collect weapon again and repeat given steeps. Take a look on the code below, it does not have such exploit. Code:
But you also should note that this method will not redefine clip capacity. It only will set 50 ammo for collected weapon's clip and nothing more. To complete that you need to figure out when weapon is reloaded and perfor similar steeps. |
| All times are GMT -4. The time now is 05:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.