Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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
Reply

#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

Reply

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

No problem, Wink
Reply

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

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

62
[Image: MaEIQ.png]
Reply

#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!!!
Reply

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



Possibly Related Threads…
Thread Author Replies Views Last Post
Question Help Mw2 weapon skin question FroxIVx4 1 2,952 10-13-2013, 16:54
Last Post: hmann
Question Help Weapon Name iRoNinja 8 6,591 10-08-2013, 08:31
Last Post: iRoNinja
  Mw2 weapon porting? Cuddlyedits 3 4,737 09-15-2013, 16:43
Last Post: DidUknowiPwn
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 33,307 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
Exclamation [Request] Random Weapon At Spawn Scripts18 3 4,740 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Mw2 weapon skin question FroxIVx4 1 2,922 07-06-2013, 19:22
Last Post: surtek
  [Request] List of all weapon models DidUknowiPwn 3 4,630 04-20-2013, 09:13
Last Post: Dominator56
  [Release] !weapon Plugin 8q4s8 40 25,657 03-24-2013, 17:02
Last Post: X-Track
  [Release] Black Ops ZM & MP weapon ID's JariZ 7 31,007 03-01-2013, 22:04
Last Post: JariZ
  [Request] Weapon info Hud hillbilly 5 3,974 03-01-2013, 02:30
Last Post: archit

Forum Jump:


Users browsing this thread:
1 Guest(s)

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