Raised This Month: $ Target: $400
 0% 

How To Protect a Private Plugin!!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Estland
Member
Join Date: Nov 2012
Old 08-18-2014 , 10:10   Re: How To Protect a Private Plugin!!
Reply With Quote #4

Use something like:

Code:
#include <amxmodx>

new const g_szServerIP[] = "IP:PORT";

public plugin_init() 
{
    new szIP[20];
    get_user_ip(0, szIP, charsmax(szIP), false);
    
    if( !equal(szIP, g_szServerIP) )
    {
        set_fail_state("This plugin is protected!");
    }
}
Estland 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 13:01.


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