Markeloff Posted December 20, 2013 Share Posted December 20, 2013 Hello, Any idea how to make a limit for ammo which will carry the player. For example : M4 5000 bullets as max. Grenades 500 as max. Thank you. Link to comment
manve1 Posted December 20, 2013 Share Posted December 20, 2013 Get how many grenades or bullets the person already has, then if it is over the limit ( for some reason ), reduce it, but if it's not an lets say for example you want to buy bullets, then you will need to get the maxAmmo - currentAmmo = allowToBuyAmmo. Link to comment
Markeloff Posted December 21, 2013 Author Share Posted December 21, 2013 Thanks for replying. I got the idea. Well, the problem is that when the player reconnect he got double ammo. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now