Raised This Month: $ Target: $400
 0% 

[HELP] Question Related to Libraries


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-19-2015 , 15:00   [HELP] Question Related to Libraries
Reply With Quote #1

Can anyone explain to me what is this for and why is it usefull?

PHP Code:
#define LIBRARY_TYRANT "zp50_class_tyrant"
#include <zp50_class_tyrant>


public plugin_init()
{
    
register_plugin("[ZP] Admin Commands"ZP_VERSION_STRING"ZP Dev Team")
  
    
// Tyrant Class loaded?
    
if (LibraryExists(LIBRARY_TYRANTLibType_Library))
        
register_concmd("zp_tyrant""cmd_tyrant"_"<target> - Turn someone into a Tyrant"0)
    
}

public 
plugin_natives()
{
    
set_module_filter("module_filter")
    
set_native_filter("native_filter")
}

public 
module_filter(const module[])

    if (
equal(moduleLIBRARY_TYRANT))
        return 
PLUGIN_HANDLED;
    
    return 
PLUGIN_CONTINUE;
}
public 
native_filter(const name[], indextrap)
{
    if (!
trap)
        return 
PLUGIN_HANDLED;
    
    return 
PLUGIN_CONTINUE;

__________________
Depresie is offline
 



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:50.


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