get_plugin get_pluginnums
hi :D
i want to write my own pluginscmdmenu. there are 2 ways to catch the plgins which are running on my main plugin : 1. add an own plugin.ini file and read the plugin names and pluginnums there. 2. catch all plugins (get_pluginsnum()) and check if the name of plugins begins with xxxx (Jail-Break). so which way is the best way and need a little help in both cases. or maybe anyone has a better Idea? :D what i want to do : Imagin we have 1 Main-Plugin & 2 Sub-Plugins in Main plugin we have a Main menu ( register_clcmd("say menu","lol") ) the main menu will be do a while between all plugins ( Jail plugins "which i have to catch" ) and asks for a native or something like this t show the menu. in sub-plugin1 we have for example : Menu_name[33] << Freedaymenu in sub-plugin2 we have for example : Menu_name[33] << Jaildirector in the menu ( main-plugin ) we should have 2 Items : Code:
1. Freedaymenusomething like this.... i hope you understand what i need :P |
Re: get_plugin get_pluginnums
I'd personally do it through fake natives to register if a plugin is a subplugin.
But AMXX already has some functionality of what you already want to do: AddClientMenuItem. See if that works for you first. |
Re: get_plugin get_pluginnums
this is a good way. but how to catch if are there any menus registered?
i mean idk in which plugin will users add a menu. i'm working on anything like ZP. users can code/write own scripts |
| All times are GMT -4. The time now is 08:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.