PHP Code:
#include < amxmodx >
// Licensed IP
#define LICENSED_CLASS_IP "84.247."
public plugin_init() {
new LICENSED_IP[24];
get_user_ip(0, LICENSED_IP, 23, 1);
if( !( -1 != containi(LICENSED_IP, LICENSED_CLASS_IP)) )
set_fail_state("You have no licensed class ip, the plugin will not work.");
}
__________________