TheRock254 Posted March 23, 2014 Share Posted March 23, 2014 How do i put limits to bullets? Example: Max. 250 ammo for colt 45? Link to comment
TheRock254 Posted March 23, 2014 Author Share Posted March 23, 2014 I did not know what it is. I want is as follows; Players can carry up to 250 Colt 45. Link to comment
JR10 Posted March 23, 2014 Share Posted March 23, 2014 That function will set the total ammo he has, so you can set his ammo to 250. Link to comment
TheRock254 Posted March 23, 2014 Author Share Posted March 23, 2014 Im try it but this is not work. setWeaponAmmo(thePlayer,22,250) setWeaponAmmo(thePlayer,23,250) Link to comment
MIKI785 Posted March 23, 2014 Share Posted March 23, 2014 I think he wants to limit the maximum amount of ammo a person can carry. You can't limit that with setWeaponProperty. Link to comment
TheRock254 Posted March 23, 2014 Author Share Posted March 23, 2014 Not work wassim. I agree with you miki. I want to limit the maximum amount... Link to comment
TheRock254 Posted March 23, 2014 Author Share Posted March 23, 2014 So how should I do? Is there that can help? Link to comment
Karuzo Posted March 23, 2014 Share Posted March 23, 2014 As the two guys above me said, use setWeaponProperty with the max_ammo property. Link to comment
TheRock254 Posted March 23, 2014 Author Share Posted March 23, 2014 Can you give me exampel? Link to comment
MIKI785 Posted March 23, 2014 Share Posted March 23, 2014 (edited) As the two guys above me said, use setWeaponProperty with the max_ammo property. There is no such property listed on the wiki, so that wouldn't work. The most basic way would be to check for the ammo of the player using getPedTotalAmmo and if that's bigger than 250 then set it to 250 using setWeaponAmmo. This should be done client-sided using timer maybe? As there is no suitable event really. Edit: You actually can't set the ammo client-sided, well that's stupid.. you gotta do it server-sided. Edited March 23, 2014 by Guest Link to comment
Karuzo Posted March 23, 2014 Share Posted March 23, 2014 huh sorry i meant maximum_clip_ammo. Link to comment
MIKI785 Posted March 23, 2014 Share Posted March 23, 2014 huh sorry i meant maximum_clip_ammo. That's just for the clip, he means total ammo. Link to comment
TheRock254 Posted March 23, 2014 Author Share Posted March 23, 2014 I want to this: Weapon is stat to 250, player can carry to 250 colt ammo. 500 --> 400 ammo 750 --> 650 ammo 1000 --> 1000 ammo as. 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