#define WEAPONS CSW_P90 new bool:bWeapon[ WEAPONS ] function( ) { ..... new weaponid = get_weaponid( szWeapon ) // my bool : bWeapon[ weaponid ] }