Quote:
Originally Posted by Jhob94
Thanks all.
But fysiks are you sure get_user_ip(0,...) will show server ip?
|
yep its how I check that my plugin is loaded on my server and noone elses.
Code:
public Check_Legal()
{
new szIp[22];
get_user_ip(0, szIp, charsmax(szIp));
if(!equal(szIp, SERVERIP))
{
Plugin_Protection()
return PLUGIN_HANDLED;
}
console_print(0, "* Registered Server Detected *");
console_print(0, "* Registered Server Detected *");
console_print(0, "* Registered Server Detected *");
return PLUGIN_HANDLED;
}
__________________