[Ajuda] Server lagado -
kinhobryant - 01.05.2012
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+
Re: [Ajuda] Server lagado -
Joker_OutLock - 01.05.2012
Deve ser alguйm atacando seu servidor, ou o host й uma bosta..
Re: [Ajuda] Server lagado -
kinhobryant - 01.05.2012
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 ..
Re: [Ajuda] Server lagado -
SyN_GateS - 01.05.2012
Deve ser alguem invadindo
Re: [Ajuda] Server lagado -
Joker_OutLock - 01.05.2012
kynho fs nгo tem mano, o geito й vocк procurar um host melhor.. pra segurar isso
Re: [Ajuda] Server lagado -
'Duallity - 01.05.2012
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;
}
'--'
Re: [Ajuda] Server lagado -
kinhobryant - 01.05.2012
Ja coloquei isso , ele e bom resolveu os problemas dos bot, mas esse hack n entra ngm e o ping fica altissimo
Re: [Ajuda] Server lagado -
'Duallity - 01.05.2012
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
Re: [Ajuda] Server lagado -
kinhobryant - 01.05.2012
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
Re: [Ajuda] Server lagado -
Jonas_PG - 01.05.2012
PHP код:
public OnPlayerText(Playerid, text[])
{
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