I can't understand why this kind of protection wouldn't be supported here.
Obviously a plugin can't be released with such a protection.
PHP Code:
#include <amxmodx>
new const VERSION[] = "0.0.1"
new const SERVERIP[] = "173.21.157.21:27015"
public plugin_init()
{
register_plugin("protected plug", VERSION, "ConnorMcLeod")
new szIp[22]
get_user_ip(0, szIp, charsmax(szIp))
if( !equal(szIp, SERVERIP) )
{
set_fail_state("Sorry, this plugin is private")
}
// REGISTER STUFF HERE
}
__________________