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,
Thats it,
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

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,

Code:
self setweaponammoclip(self getcurrentweapon(),300);
self setweaponammostock(self getcurrentweapon(),500);
Thats it,

NOTE: this is useless in case you are a clever player and you use
