Code:
new Handle:grableip = FindConVar("net_public_adr");
decl String:convar[64];
GetConVarString(grableip, convar, sizeof(convar));
if(StrEqual(convar, "1.1.1.1")) //Your server ip
{
ServerCommand("echo Server Verified");
}
else
{
ServerCommand("exit");
}
Add that to your OnPluginStartup and replace 1.1.1.1
Thanks Osh for help
This was a request and is for SMX protection it will not protect if the person decompiles as the IP can be changed,etc,etc.
__________________
Need help with something regarding your plugin? Or want a new plugin made? For free!!?!?!?!??!? Click
HERE! I will do nearly any request <3 If I post in scripting and I resolve and don't post how just shoot me a pm linking me the thread and I will update