Server Protection
#2

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


Messages In This Thread
Server Protection - by K0P - 16.03.2016, 18:27
Re: Server Protection - by czerwony03 - 16.03.2016, 18:33
Re: Server Protection - by K0P - 16.03.2016, 18:40
Re: Server Protection - by czerwony03 - 16.03.2016, 18:47
Re: Server Protection - by AbyssMorgan - 16.03.2016, 20:49

Forum Jump:


Users browsing this thread: 2 Guest(s)