Jump to content

Limit for ammo.


Markeloff

Recommended Posts

Posted

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.

430x73_B2E03D_FF9900_000000_000000.png

Some people want it to happen, some wish it would happen, others make it happen.

Posted

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.

Looking for tutorials or information? check out: www.simpleask.co.uk

Posted

Thanks for replying. I got the idea.

Well, the problem is that when the player reconnect he got double ammo.

430x73_B2E03D_FF9900_000000_000000.png

Some people want it to happen, some wish it would happen, others make it happen.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...