Raised This Month: $ Target: $400
 0% 

Check of new plugins are installed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kacperz1
Junior Member
Join Date: Jul 2007
Old 07-06-2007 , 06:03   Check of new plugins are installed
Reply With Quote #1

I make a mod (plugin) likes Superhero Mod. And im now stopped at coding it because i dont know how to:

check of new plugins with characters "sh_" are in plugin folder and then how to load some functions from it.

Any help?
kacperz1 is offline
kacperz1
Junior Member
Join Date: Jul 2007
Old 07-06-2007 , 11:46   Re: Check of new plugins are installed
Reply With Quote #2

Somebody know how to do it?
kacperz1 is offline
_Master_
Senior Member
Join Date: Dec 2006
Old 07-07-2007 , 05:10   Re: Check of new plugins are installed
Reply With Quote #3

PHP Code:
    new iPlugins
    
new filename[32], trash[1], status[8]
    
    
iPlugins get_pluginsnum()
    for(new 
iiPluginsi++){
        
        
get_plugin(ifilename31trash0trash0trash0status7)
        
        
// Is this a SH plugin ?
        
if(equal(filename"sh_"3) && (equal(status"running") || equal(status"debug"))){
            
            
//
            //    Plugin found. Place your code here
            //
        
}
    } 

Last edited by _Master_; 07-07-2007 at 05:13.
_Master_ is offline
Reply


Thread Tools
Display Modes

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 21:30.


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