11-06-2011, 14:19
Hello
New tutorial, thanks @SE7EN for asking me one thing about this. Also thanks for
.
Ill explain 4 commands relationed with weapon ammo.
The first 2 are:
Example:
Now, to set the ammo you want you have this 2:
Example, will give max ammo,![Smile Smile](https://www.itsmods.com/forum/images/smilies/smile.gif)
Thats it,![OMA OMA](https://www.itsmods.com/forum/images/smilies/oma.png)
NOTE: this is useless in case you are a clever player and you use
New tutorial, thanks @SE7EN for asking me one thing about this. Also thanks for
![OMA OMA](https://www.itsmods.com/forum/images/smilies/oma.png)
Ill explain 4 commands relationed with weapon ammo.
The first 2 are:
Code:
currentclip = self getweaponammoclip(weapon);
currentstock = self getweaponammostock(weapon);
Example:
Code:
currentclip = self getweaponammoclip(self getcurrentweapon()); //will return the number of bullets that you have in the magazine
currentstock = self getweaponammostock(self getcurrentweapon()); //will return your total ammo
Now, to set the ammo you want you have this 2:
Code:
self setweaponammoclip(weapon,number);
self setweaponammostock(weapon,number);
Example, will give max ammo,
![Smile Smile](https://www.itsmods.com/forum/images/smilies/smile.gif)
Code:
self setweaponammoclip(self getcurrentweapon(),300);
self setweaponammostock(self getcurrentweapon(),500);
Thats it,
![OMA OMA](https://www.itsmods.com/forum/images/smilies/oma.png)
NOTE: this is useless in case you are a clever player and you use
![OMA OMA](https://www.itsmods.com/forum/images/smilies/oma.png)