Raised This Month: $51 Target: $400
 12% 

Lisiting plugins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ben_yaa
Member
Join Date: Feb 2011
Old 03-22-2014 , 08:14   Lisiting plugins
Reply With Quote #1

Hello, I am making a plugin and I want to list the plugins running in the server by their .smx name..
So my question is: Is this possible? And if so, how can I do it?
I have searched all over the Internet and couldn't find an answer..
ben_yaa is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 03-22-2014 , 13:46   Re: Lisiting plugins
Reply With Quote #2

Create an iterator with GetPluginIterator, cycle through each with MorePlugins and ReadPlugin then get the filename from each handle using GetPluginFilename.
__________________
11530 is offline
ben_yaa
Member
Join Date: Feb 2011
Old 03-22-2014 , 16:31   Re: Lisiting plugins
Reply With Quote #3

Thanks, it's working
But I was mistaken asking for only RUNNING plugins..
I want to list ALL the installed plugins(running and not running)..
Possible?

Last edited by ben_yaa; 03-22-2014 at 17:07.
ben_yaa is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 03-22-2014 , 18:01   Re: Lisiting plugins
Reply With Quote #4

Use OpenDirectory and ReadDirEntry.
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword is offline
ben_yaa
Member
Join Date: Feb 2011
Old 03-22-2014 , 18:22   Re: Lisiting plugins
Reply With Quote #5

Thanks!
But how do I use it?
I mean, how do I print the file type(SMX)?

EDIT:
NVM got it, thanks

Last edited by ben_yaa; 03-22-2014 at 18:35.
ben_yaa is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode