ItsMods

Full Version: Weapon Clip and Stock
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello

New tutorial, thanks @SE7EN for asking me one thing about this. Also thanks for OMA .

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

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

Thats it, OMA

NOTE: this is useless in case you are a clever player and you use OMA
Thanks for making this website a little more useless.
(11-06-2011, 14:45)iAegle Wrote: [ -> ]Thanks for making this website a little more useless.

No problem, Wink
How much tutorials have you made already??? Smile
(11-06-2011, 21:06)_Smile_Man_ Wrote: [ -> ]How much tutorials have you made already??? Smile

62
(11-06-2011, 21:12)Pozzuh Wrote: [ -> ]
(11-06-2011, 21:06)_Smile_Man_ Wrote: [ -> ]How much tutorials have you made already??? Smile

62

WOW, RESPECT!!!
I dont understand you @ieagle, his tutorials are very useful and well written.