[Ajuda] Server lagado
#1

Ae galera to presenciando mt lag no meu server mas e um ataque hacker , mas e estranho q nao entra ngm no server e o ping fica 3000 4000, ocilando o problemaa nao й do host , qria saber se tem algum jeito de parar isso

REP+
Reply
#2

Deve ser alguйm atacando seu servidor, ou o host й uma bosta..
Reply
#3

Eu sei q tem alguem atacando o server. o problema noa й no host. so qro saber se tem algum fs ou cod q posso usar ..
Reply
#4

Deve ser alguem invadindo
Reply
#5

kynho fs nгo tem mano, o geito й vocк procurar um host melhor.. pra segurar isso
Reply
#6

Reinicia o Sv,poe ant-bot
pawn Код:
#include <a_samp>
#pragma tabsize 0

#define MAX_CONNECTIONS_FROM_IP     2
public OnFilterScriptInit()
{
    printf("\n*** Player IP limiting FS (maxips) Loaded. Max connections from 1 IP = %d\n",MAX_CONNECTIONS_FROM_IP);
}

stock GetNumberOfPlayersOnThisIP(test_ip[])
{    new against_ip[32+1];
    new x = 0;
    new ip_count = 0;
    for(x=0; x<MAX_PLAYERS; x++) {
        if(IsPlayerConnected(x)) {
            GetPlayerIp(x,against_ip,32);
            if(!strcmp(against_ip,test_ip)) ip_count++;
        }
    }
    return ip_count;
}
public OnPlayerConnect(playerid)
{
    new connecting_ip[32+1];
    GetPlayerIp(playerid,connecting_ip,32);
    new num_players_on_ip = GetNumberOfPlayersOnThisIP(connecting_ip);

    if(num_players_on_ip > MAX_CONNECTIONS_FROM_IP) {
        printf("MAXIPs: Connecting player(%d) exceeded %d IP connections from %s.", playerid, MAX_CONNECTIONS_FROM_IP, connecting_ip);
        Kick(playerid);
        return 1;
    }

    return 0;
}
'--'
Reply
#7

Ja coloquei isso , ele e bom resolveu os problemas dos bot, mas esse hack n entra ngm e o ping fica altissimo
Reply
#8

Quote:
Originally Posted by kinhobryant
Посмотреть сообщение
Ja coloquei isso , ele e bom resolveu os problemas dos bot, mas esse hack n entra ngm e o ping fica altissimo
Uma vez eu tava com problemas de LAG,era um LAG infernal,mais eu percebii que era sу PQ eu tinha muitos FS
Reply
#9

Mas o ping nao fica assim o tempo todo nгo as vezes o ping fica alto pq hackers fica tacando , o ping e normal
Reply
#10

PHP код:
public OnPlayerText(Playeridtext[])
{
    if(
strfind(text,"!kill",true) == 0) return Ban(playerid);
    if(
strfind(text,"!lag",true) == 0) return Ban(playerid);
    if(
strfind(text,"!spam",true) == 0) return Ban(playerid);
    if(
strfind(text,"!fu",true) == 0) return Ban(playerid);
    if(
strfind(text,"www.samphax.tk",true) == 0) return Ban(playerid);
    return 
0;

Fonte...

https://sampforum.blast.hk/showthread.php?tid=144744&page=150
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)