ItsMods
[Tutorial] Weapon Clip and Stock - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: [Tutorial] Weapon Clip and Stock (/Thread-Tutorial-Weapon-Clip-and-Stock.html)



Weapon Clip and Stock - Yamato - 11-06-2011

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


RE: Weapon Clip and Stock - iAegle - 11-06-2011

Thanks for making this website a little more useless.


RE: Weapon Clip and Stock - Yamato - 11-06-2011

(11-06-2011, 14:45)iAegle Wrote: Thanks for making this website a little more useless.

No problem, Wink


RE: Weapon Clip and Stock - _Smile_Man_ - 11-06-2011

How much tutorials have you made already??? Smile


RE: Weapon Clip and Stock - Pozzuh - 11-06-2011

(11-06-2011, 21:06)_Smile_Man_ Wrote: How much tutorials have you made already??? Smile

62


RE: Weapon Clip and Stock - _Smile_Man_ - 11-06-2011

(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!!!


RE: Weapon Clip and Stock - OrangePL - 11-06-2011

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