Quote:
Originally Posted by fysiks
If you know a plugin that already does it, you can look at its code to see how the author did it.
Basically, you loop through all the items in the array and create the menu item based the iteration of the array.
PHP Code:
for( new i = 0; i < sizeof(test[]); i++ ) { menu_additem(menu, test[i], "", 0); }
|
I don't understand the code from the plugin .Can you make me a clearly example ? And how can I make an option to be available only from players with ADMIN_LEVEL_H. Like menu_additem(menu,"item",0,ADMIN_LEVEL_H). And how to make the menu handler.