Example of plugin with sub-plugins
Hey, can anyone share an example with head-plugin, for example, that has a MySql system, where do you identify the ADMIN, and then how to use sub-plugins, where you shouldn't identify ADMIN anymore, you could just use for example: if( iAdmin[id] ) { .. } and add a random functions... Then create more sub-plugins, with extra features. Or maybe there is a tutorial with that ? But I searched and found - nothing useful.
Like : *ElementsMain.sma // Here will be the main plugin --> * FireElement.sma // Here will be everything for Fire element * WaterElement.sma // Here will be everything for Water element * WindElement.sma // Here will be everything for Wind element * EarthElement.sma // Here will be everything for Earth element |
Re: Example of plugin with sub-plugins
You can see my JumpStats plugin for an example like that.
|
Re: Example of plugin with sub-plugins
Well it's very hard-coded (it's very hard to understand the big code) ;D. Well I think I get it, it's with .inl includes yeah ? Is it ok, to use multiple events in multiple .inl files for example I've my head plugin head.sma and there I hook round_start, and on my sub plugin numer 1, I make a public event with that round_start and do some shit, and on my sub plugin number 2, I make a public event with that round_start and do some other shit...
|
Re: Example of plugin with sub-plugins
If you create a forward using CreateMultiForward(), then you can use that forward in more than 1 plugin.
|
| All times are GMT -4. The time now is 19:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.