get the fuc*ing net_address! its always shows a real IP..
the ip cvar its only works if used in command line of HLDS like: ./hlds_run -game cstrike +ip xxx.xxx.xxx.xxx
Ps.
For get a: xxx.xxx.xxx.xxx:27015 for example, you need to get 2 cvars: ip cvar and port cvar
And later use in a string or in a format() funcions... net_address its only use one cvar
>>
Quote:
Originally Posted by Blizzard_87
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;
}
|
Send-me any plugin with using this and i will be breaking whole file using a fake cvars..
__________________