AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Check of new plugins are installed (https://forums.alliedmods.net/showthread.php?t=57519)

kacperz1 07-06-2007 06:03

Check of new plugins are installed
 
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 07-06-2007 11:46

Re: Check of new plugins are installed
 
Somebody know how to do it?

_Master_ 07-07-2007 05:10

Re: Check of new plugins are installed
 
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
            //
        
}
    } 



All times are GMT -4. The time now is 21:30.

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