Focker Posted August 3, 2015 Share Posted August 3, 2015 Hello I need your help on a function. I need the function that if a player buys a gun with a bullet then it can not buy it again until the end of that one bullet has Link to comment
GTX Posted August 3, 2015 Share Posted August 3, 2015 What do you mean? There's no such function. You can make one by yourself. Link to comment
Focker Posted August 3, 2015 Author Share Posted August 3, 2015 Yes but how is it done? Link to comment
GTX Posted August 3, 2015 Share Posted August 3, 2015 First of all, what do you mean by bullet? Ammo? Link to comment
GTX Posted August 3, 2015 Share Posted August 3, 2015 When player buys a weapon, set element data to them. If that element data is true or whatever (while buying), use return, so player doesn't buy weapon (and ammo?). Use onClientPlayerWeaponFire and use 3rd argument (ammoInClip). If it's zero then set element data to false, so player can buy again. I think that's what you mean. Correct me if I'm wrong. 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