get_user_weapons
Core (amxmodx.inc)
Description
get_user_weapons - Returns a list of all the carried weapons of a player.
Syntax
get_user_weapons ( index, weapons[32], &num )
Type
Native
Notes
index is a player index from 1 to 32.

The weapons array passed as the second parameter is filled with a list of weapon indices, from 0 to num-1. num will be filled with the number of weapons found (passed byref).

Example:
new Weapons[32]
new 
numWeaponsiweapon
get_user_weapons
(idWeaponsnumWeapons)
for (
i=0i<numWeapnsi++)

   
weapon Weapons[i]
}
User Contributed Notes
slayerized at gmail dot com Jul-15-05 12:35:48
new Weapons[32]
new 
numWeaponsiweapon
get_user_weapons
(idWeaponsnumWeapons)
for (
i=0i<numWeaponsi++)
{
   
weapon Weapons[i]
}
Just fixing a little typo in the example.