AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Getting weapon index, and ammo. (https://forums.alliedmods.net/showthread.php?t=10485)

TotalNoobScripter 02-20-2005 19:53

Getting weapon index, and ammo.
 
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?

knekter 02-20-2005 20:27

alright
 
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]) }


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

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