View Single Post
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 05-20-2014 , 14:40   Re: menu_item_getinfo function problem
Reply With Quote #8

After analizing a bit more the code of CSDM2 plugins, I think I know the reason why it was written as client commands. The main plugin (csdm_main) registers the Main CSDM menu. But items to that menu can be added also from other plugins with their commands/functions. These items might be also some submenus. These plugins might be loaded or it's possible it will not be loaded (depanding of the configuration on the server). So it cannot be hardcoded in the main plugin which menu should be displayed (because other commands to open other menus are unknown for the main plugin). That was the point of the modular structure of CSDM2. The only way (at least that time it was written) was to use client command and ask the main plugin to run the command (if exists) on the client (admin/user). Do You have guys a good example how it was solved in other modular plugins/mods?
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline