This work and how to make it for 3 ips
PHP Code:
#include <amxmodx>
new const VERSION[] = "0.0.1"
new const SERVERIP[] = "173.21.157.21"
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
}
exp:
PHP Code:
new const SERVERIP[] = "173.21.157.21", "173.21.157.22", "173.21.157.23"
its posbile for 3 ips ??
__________________