AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   check if fail or working (https://forums.alliedmods.net/showthread.php?t=251282)

Alphad 11-09-2014 14:38

check if fail or working
 
how can i check if a plugin is enabled? i want to make a diffrent plugin that will check if a certen plugin is enabled or not. and add it to a "if()"
so if this plugin is enabled it will do something.
if not it will ignore
hope u understand

Nextra 11-09-2014 14:55

Re: check if fail or working
 
http://www.amxmodx.org/api/amxmodx/is_plugin_loaded

Alphad 11-10-2014 00:20

Re: check if fail or working
 
Quote:

Originally Posted by Nextra (Post 2222197)

Could you give me a example how to use in a "if"?

zmd94 11-10-2014 01:17

Re: check if fail or working
 
Maybe?
PHP Code:

#include <amxmodx>

public plugin_cfg()
{
    
// AMXBans Main - name of the plugin
    // If the AMXBans Main plugin is failed
    
if ( is_plugin_loaded("AMXBans Main") != -1)
    {
        
// Print the message to tell about it
        
log_amx("AMXBans Main is failed to load!")
    }




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

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