16.03.2016, 18:33
PHP код:
new ServerIp[16];
GetServerVarAsString("bind", ServerIp, sizeof(ServerIp));
if(strcmp(ServerIp, SERVER_IP, false)!=0 || isnull(ServerIp))
{
if((strcmp(ServerIp, "127.0.0.1", false) != 0 && strcmp(ServerIp, "localhost", false) != 0) || isnull(ServerIp)) {SendRconCommand("exit"); print("The ip and port is not correct"); }
}
if(GetServerVarAsInt("port") != SERVER_PORT)
{
SendRconCommand("exit");
}