View Single Post
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