Raised This Month: $ Target: $400
 0% 

Store ammo in memory for later use


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 08-08-2011 , 12:38   Store ammo in memory for later use
Reply With Quote #1

Conditions:
1.Two custom weapons
2.Block buy.remove all buyzones.
3.Refill ammo only thru touching certain entity+model.

Scenario:

I touch the entity and it gives me ammo with certain CSW_ index for 1st weapon. (like ....bpammo(id,CSW_DEAGLE,20))

Than I touch another entity and it gives me ammo for the second weapon.

But - If I dont HAVE that weapon. I need to store given bpammo and CSW index for that weapon for later use - As soon As I find and pick up second weapon. and then It will add me ammo for the second weapon

Is that clear.. I know my english is bad.

how to do that
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-08-2011 , 12:40   Re: Store ammo in memory for later use
Reply With Quote #2

In all weapons except grenades (HE, flash, smoke), you can set the player's BP ammo for that weapon without them having the weapon.
When they finally get the weapon, they will still have their BP ammo from before.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 08-08-2011 , 12:40   Re: Store ammo in memory for later use
Reply With Quote #3

really ? I will try. thanks for fast answer
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 08-08-2011 , 16:13   Re: Store ammo in memory for later use
Reply With Quote #4

hm I tried a few times/ When I have a gun - yes it gives me +25 ammo
but If I pick up ammo and than find a Gun. I have standart amount of ammo given with the gun, not + those 25 bpammo... so I need to store it somehow.
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 08-13-2011 , 02:34   Re: Store ammo in memory for later use
Reply With Quote #5

you use

PHP Code:
cs_set_user_bpammo (index weapon amount
right? well search it here then

http://www.amxmodx.org/funcwiki.php?...ammo&go=search
__________________
Quote:
Originally Posted by addons_zz View Post
Also, just to not read `the article`, read all you find. Read and read, for ever and ever. Never stop reading.
Why? Because there is not one single universal truth which holds the meaning for everything.
JoKeR LauGh 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 03:21.


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