oh, and also:
Code:
#define has_primary(%1) has_weapon_slot(%1,SLOT_PRIMARY)
#define has_secondary(%1) has_weapon_slot(%1,SLOT_SECONDARY)
#define has_knife(%1) has_weapon_slot(%1,SLOT_KNIFE)
#define has_grenade(%1) has_weapon_slot(%1,SLOT_GRENADE)
#define has_c4(%1) has_weapon_slot(%1,SLOT_C4)