Changing max BPammo for weapon
I am trying to replace 2 snipers ( g3sg1 and sg550 ) with bazooka
I did everything, and it works, just player can buy ammo and I don't want to player walk around with bazooka that has 90 rockets :) So what I want is a code that will help me to lower max bpammo of g3sg1 and sg550 from 90 to 5 :D Sorry for bad English :) |
Re: Changing max BPammo for weapon
http://forums.alliedmods.net/showthread.php?p=728613
if it's really g3sg1 and sg550 then change the ammo of g3sg1 and sg550 with this plugin http://forums.alliedmods.net/showthread.php?p=720161 and if you want to change there BP ammo use this plugin :D |
Re: Changing max BPammo for weapon
that plugin changes max bpammo per ammo, not per weapon, so it will be steupid to have ak47 with max 5 bullets :)
|
Re: Changing max BPammo for weapon
Quote:
If you have a Glock 18 and MP5 Navy and buy primary (or secondary) ammo, the ammo will increase for both weapons because they use the same ammo type. |
Re: Changing max BPammo for weapon
WOW, I didn't noticed that weapons that use same type of ammo have same max bpammo limit :) is there any forward that is called when client buys primary ammo, so if he is buying primary ammo and has g3sg1 or sg550 to set his bpammo to 5 :)
|
Re: Changing max BPammo for weapon
Quote:
|
Re: Changing max BPammo for weapon
Quote:
Store each player's bpammo globally and hook this event. Make sure you compare the stored value and the new bpammo to make sure they bought bpammo and not something like a gun. Since money must be deducted every time the player buys bpammo, this is an indirect solution to hooking it. |
| All times are GMT -4. The time now is 00:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.