Tutorial Weapon Clip and Stock
#1
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

#2
Thanks for making this website a little more useless.
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu


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

No problem, Wink

#4
How much tutorials have you made already??? Smile

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

62
[Image: MaEIQ.png]

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

#7
I dont understand you @ieagle, his tutorials are very useful and well written.
[Image: lQDUjba.jpg]



Possibly Related Threads…
Thread Author Replies Views Last Post
Question Help Mw2 weapon skin question FroxIVx4 1 3,915 10-13-2013, 16:54
Last Post: hmann
Question Help Weapon Name iRoNinja 8 8,919 10-08-2013, 08:31
Last Post: iRoNinja
  Mw2 weapon porting? Cuddlyedits 3 6,566 09-15-2013, 16:43
Last Post: DidUknowiPwn
Exclamation [Request] Random Weapon At Spawn Scripts18 3 6,852 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Mw2 weapon skin question FroxIVx4 1 4,119 07-06-2013, 19:22
Last Post: surtek
  [Request] List of all weapon models DidUknowiPwn 3 6,453 04-20-2013, 09:13
Last Post: Dominator56
  [Release] Black Ops ZM & MP weapon ID's JariZ 7 35,995 03-01-2013, 22:04
Last Post: JariZ
  [Request] Weapon info Hud hillbilly 5 5,853 03-01-2013, 02:30
Last Post: archit
  [Tutorial] Creating call of duty fonts from stock tomglazer 2 7,714 02-25-2013, 19:32
Last Post: JariZ
Video [Tutorial] (Video) How to create the Beretta (or any CoD4's weapon) in Black Ops hitmax 19 18,578 02-08-2013, 00:18
Last Post: Gamemaster20

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.