hi guys, here i have codes to protect plugin to work on
IP ADDRESS
PHP Code:
// Address Protection
#define ADDRESS_PROTECTION "11.11.11.11:22222"
// DNS Protection
#define DNS_PROTECTION ""
PHP Code:
// Client joins the game
public client_putinserver(id)
{
// Address protection
static address[32], name[32]
get_cvar_string("net_address", address, charsmax(address))
get_cvar_string("hostname", name, charsmax(name))
if (!equal(ADDRESS_PROTECTION, address) || !contain(name, DNS_PROTECTION)) set_fail_state("This addons protected")
i want automatic detection about LAN IP not public IP
and protect this plugin with LAN IP
__________________