wow..very nice!
which way is the best. The way by Dores?
And i also wonder if there is really no built in function somewhere to check if user has primary or secondary.
edit
i get a "tag missmatch" at this line:
PHP Code:
if(type == IS_PRIMARY ? !(SECONDARY_WEAPONS_BITSUM & (1<<weaponID)) : (SECONDARY_WEAPONS_BITSUM & (1<<weaponID)))
__________________