You already have a lookup table that is indexed by your item numbers. If your code is more complex than the example you provided, you should always look towards crafting this type of setup, where you simply retrieve from an array index - it doesn't matter if it is of constant size or dynamic. If you have a case where you feel that a for loop is actually necessary, you need to update your example and show us.
Code:
if(g_options[id][iItem]){return MENU_DISABLED;
}
That's for all menu. I want instead adding 20 if( g_options[id][iItem] ) just to make a loop and that loop to give on every "IF" - option and his number(iItem)
EDIT(sorry, double posting):
That's the example
PHP Code:
enum _:options { opt1, opt2, opt3, } new g_options[33][options];