Raised This Month: $ Target: $400
 0% 

check if fail or working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alphad
Senior Member
Join Date: Jun 2014
Old 11-09-2014 , 14:38   check if fail or working
Reply With Quote #1

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
Alphad is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 11-09-2014 , 14:55   Re: check if fail or working
Reply With Quote #2

http://www.amxmodx.org/api/amxmodx/is_plugin_loaded
__________________
In Flames we trust!
Nextra is offline
Alphad
Senior Member
Join Date: Jun 2014
Old 11-10-2014 , 00:20   Re: check if fail or working
Reply With Quote #3

Quote:
Originally Posted by Nextra View Post
Could you give me a example how to use in a "if"?
Alphad is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 11-10-2014 , 01:17   Re: check if fail or working
Reply With Quote #4

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!")
    }

zmd94 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 17:37.


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