First, check if player has a primary weapon, and if positive, save that weapon entity index.
// weapon offset
#define m_pNext 42
// player offset
#define m_rgpPlayerItems_slot1 368
new iFirstPrimaryWeapon = get_pdata_cbase(id, m_rgpPlayerItems_slot1, 5)
Then, check if that weapon is linked with anither weapon :
Code:
if( iFirstPrimaryWeapon > 0 )
{
new iOtherPrimary = get_pdata_cbase(iFirstPrimaryWeapon, m_pNext, 4)
if( iOtherPrimary )
{
//this player has at least 2 primary weapons
}
}
__________________