SA-MP Forums Archive
Server is full issue - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Server is full issue (/showthread.php?tid=535999)



Server is full issue - Jefff - 06.09.2014

Kalcor do something with that, my host is blocking this noob but after few minutes is new attack type with "invisible bots"


Re: Server is full issue - Abagail - 06.09.2014

This can probably be fixed with scripting. What kind of bots? Do they show up as normal players or NPC's? If they are connecting as a NPC you can detect if it's spoofed by checking the IP. Ex,

pawn Код:
public OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(playerid))
    {
        new pIP[16];
        GetPlayerIp(playerid, pIP, 16);
        if(strcmp(pIP, "127.0.0.1", true)) return true;
        else return Kick(playerid);
    }
    return true;
}
Or it another case if they are spamming connection you may want to kick them. This would be detected with gettime.


Re: Server is full issue - Jefff - 07.09.2014

Its flood Incomming Connection they even dont connect to server


Re: Server is full issue - Abagail - 07.09.2014

Are you running 0.3x? It might be something that was patched in 0.3x(not the main release how-ever).

Does anything show up in the server log?


Re: Server is full issue - Lordzy - 07.09.2014

If it's a flood through connections, consider using "minconnectiontime" server variable.


Re: Server is full issue - Jefff - 07.09.2014

Its 0.3z R4, what is default value of minconnectiontime ?


Re: Server is full issue - Lordzy - 07.09.2014

Quote:
Originally Posted by Jefff
Посмотреть сообщение
Its 0.3z R4, what is default value of minconnectiontime ?
It's probably 0 which isn't safe for you atm.


Re: Server is full issue - Jefff - 07.09.2014

But this flood is not only one ip but many different


Re: Server is full issue - Lordzy - 07.09.2014

Quote:
Originally Posted by Jefff
Посмотреть сообщение
But this flood is not only one ip but many different
"minconnectiontime" manages the connection globally, not per IP. So if you set it to 100 and if 2 connections (2 different persons) connect together, one among them will be ignored. Only after 100ms the next connection will be received by the server.


Re: Server is full issue - Jefff - 07.09.2014

26 fake connections per second so what makes sense setting minconnectiontime to 100 od 1000ms 1/26 chance to connect?