This plugin adds three things:
1.) A forward: OnCategoryReady() which is called once categories are ready to be set.
2.) A native: SetPluginCategory(Handle:plugin,const String:category[],maxsize) which sets the plugin's category (Fairly self explanatory).
3.) A command: sm_plugins_list which supports these categories by default: all (which displays all plugins, regardless of category) and misc (which displays all uncategorized plugins).
Note: This was something I just quickly whipped up, there will likely be bugs, issues, and the code is not incredibly optimized (although in this case that isn't as much of an issue)
Note2: This has not been tested ingame yet, only in server console.
Attached Files
 plugin_cat.inc (116 Bytes)
											plugin_cat.inc (116 Bytes)							 plugin_cats.smx (4.0 KB)
											plugin_cats.smx (4.0 KB)							 Get Plugin or				Get Source (plugin_cats.sp - 3.4 KB)
											Get Plugin or				Get Source (plugin_cats.sp - 3.4 KB)													Wyświetl pełny artykuł


 Forum
 
Forum
 Użytkownicy
 
Użytkownicy
 Kalendarz
 
Kalendarz
 Dodatki SourceMod
 
Dodatki SourceMod



 
	![[forums.alliedmods.net]  Plugin Categories: post #1](https://amxx.pl/public/style_images/tctc91_luminous/icon_share.png) 
					







