decl String:g_sServerIpHost[32];
decl String:g_sServerPort[128];
decl g_iHostIp;
decl Handle:g_hHostIp;
decl Handle:g_hHostPort;
g_hHostIp = FindConVar("hostip");
g_iHostIp = GetConVarInt(g_hHostIp);
g_hHostPort = FindConVar("hostport");
GetConVarString(g_hHostPort, g_sServerPort, 128);
FormatEx(g_sServerIpHost, 32, "%u.%u.%u.%u:%s", g_iHostIp >> 24 & 255, g_iHostIp >> 16 & 255, g_iHostIp >> 8 & 255, g_iHostIp & 255, g_sServerPort);
if (strcmp("***.***.***.***:*****", g_sServerIpHost, true))
{
SetFailState("[Save Player] Plugin is not intended for this server");
}
return 0;