Raised This Month: $ Target: $400
 0% 

Getting weapon index, and ammo.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-20-2005 , 19:53   Getting weapon index, and ammo.
Reply With Quote #1

How would you get the weapon index and total ammo (ammo loaded, and ammo leftover in extra clips) of a players current held weapon? I do not understand get_user_weapon(s)

Edit: Actually, how would i get the id's and total ammo for all the weapons a player has?
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 02-20-2005 , 20:27   alright
Reply With Quote #2

Ok, im not sure how this would work but use this:

Code:
new weapons[32] new num get_user_weapons(id, weapons, num) new ammo[num], clip[num] for(new w = 0; w < num; w++) {     get_user_ammo(id, weapons[w], clip[w], ammo[w]) }
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode