Raised This Month: $51 Target: $400
 12% 

Changing max BPammo for weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sp@jk
Member
Join Date: May 2010
Location: Serbia
Old 07-25-2011 , 05:16   Changing max BPammo for weapon
Reply With Quote #1

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

Sorry for bad English
Sp@jk is offline
razieljohn619
Senior Member
Join Date: May 2011
Location: Philippines
Old 07-25-2011 , 05:28   Re: Changing max BPammo for weapon
Reply With Quote #2

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

__________________


Last edited by razieljohn619; 07-25-2011 at 05:31.
razieljohn619 is offline
Send a message via Yahoo to razieljohn619
Sp@jk
Member
Join Date: May 2010
Location: Serbia
Old 07-25-2011 , 05:43   Re: Changing max BPammo for weapon
Reply With Quote #3

that plugin changes max bpammo per ammo, not per weapon, so it will be steupid to have ak47 with max 5 bullets
Sp@jk is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-25-2011 , 10:13   Re: Changing max BPammo for weapon
Reply With Quote #4

Quote:
Originally Posted by Sp@jk View Post
that plugin changes max bpammo per ammo, not per weapon, so it will be steupid to have ak47 with max 5 bullets
BP ammo is shared among weapons that have the same ammo type.
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.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Sp@jk
Member
Join Date: May 2010
Location: Serbia
Old 07-25-2011 , 15:28   Re: Changing max BPammo for weapon
Reply With Quote #5

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

Last edited by Sp@jk; 07-25-2011 at 15:33.
Sp@jk is offline
razieljohn619
Senior Member
Join Date: May 2011
Location: Philippines
Old 07-28-2011 , 07:56   Re: Changing max BPammo for weapon
Reply With Quote #6

Quote:
Originally Posted by Sp@jk View Post
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
idk, but u have to press reload to reset the ammo and permanently make it like that
__________________

razieljohn619 is offline
Send a message via Yahoo to razieljohn619
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 07-28-2011 , 08:01   Re: Changing max BPammo for weapon
Reply With Quote #7

Quote:
Originally Posted by Sp@jk View Post
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
http://wiki.amxmodx.org/Half-Life_1_Game_Events#Money

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.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode