[Ajuda] Server nгo "ligando"
#2

Quote:
Originally Posted by BaianoIn
View Post
eu baixei um GM com uma proteзгo, ele pede para colocar o IP e a porta do do servidor em que vai deixб-lo On

pawn Code:
#define PROTECTED_IP    "25.200.167.189"//Esse й o ip do meu hamachi onde deixo serve on pata teste
#define PROTECTED_PORT  1597//essa й a porta que uso
os cods da proteзгo

public OnGameModeInit()

pawn Code:
#if PROTECTED == 1
    {
        new ServerIP[20], ServerPort;

        GetServerVarAsString("bind",ServerIP,20);
        ServerPort = GetServerVarAsInt("port");

        if(strcmp(ServerIP,PROTECTED_IP,false) != 0 || !strlen(ServerIP)) // Check server IP.
        {
            print("1This server has not the permission to use this gamemode..");
            print("Server shutting down in 5 seconds");
            SetTimer("Exit",5000,false);

            return 0;
        }
        else if(ServerPort != PROTECTED_PORT) // If  server port is different, end server.
        {
            print("2This server has not the permission to use this gamemode.");
            print("Server shutting down in 5 seconds");
            SetTimer("Exit",5000,false);
            return 0;
        }
    }
    #endif
Sу que mesmo adequando o IP e Porta e servidor nгo funciona ele liga mais nгo carrega veiculos objetos etc...

Abra o seu server.cfg

e colocar


PHP Code:
bind 25.200.167.189 
qual quer coisa sу da uma olhada > https://sampforum.blast.hk/showthread.php?tid=337359
Reply


Messages In This Thread
Server nгo "ligando" - by BaianoIn - 14.03.2014, 17:08
Re: Server nгo "ligando" - by Dieguinho - 14.03.2014, 17:39

Forum Jump:


Users browsing this thread: 1 Guest(s)