@Bladell, the method from the topic you linked used for detecting if a player has primary weapons is somehow inneficient:
Code:
//You would need hamsandwich module
stock const m_rgpPlayerItems_CBasePlayer[ 6 ] = { 367 , 368 , ... }
const XO_PLAYER = 5
#define HasPrimaryWeapon(%0) ( get_pdata_cbase(%0, m_rgpPlayerItems_CBasePlayer[ 1 ], XO_PLAYER ) )
Then, just do HasPrimaryWeapon(index). I don't understood what you need, but if you want to get the weapon slot use Ham_ItemSlot.
__________________