Prevent samp fron banning localhost / a ip
#1

I was using around 40 npcs in my server, but i noticed they get banned by samp with some reason "server full attack (1)" or something like that (in console), so i was wondering if there's a way to prevent samp 0.3x from auto banning a specific ip (127.0.0.1 i think)
Reply
#2

If there was something, it would be here: https://sampwiki.blast.hk/wiki/Server.cfg

But there isn't anything. Just make sure the maxnpc value is set to an acceptable number and that there's a delay between NPCs connecting.

The script could lock the server while NPCs are connecting then unlock it when they are all connected.
Reply
#3

I've got a delay of "300ms" between each connect & have maxnpc to 100.

PHP код:
public OnFilterScriptInit()
{
    
Con1 0;
    
Timer1 SetTimer("Connect1"300true);
    
SetTimer("lulz",1000,1);
    return 
1;

PHP код:
forward Connect1();
public 
Connect1()
{
    if(
Con1 51)
    {
        new 
filename[64],scriptname[32];
        
format(filename,sizeof(filename),"daddycar%d.cfg",Con1);
        
format(scriptname,sizeof(scriptname),"scriptfiles/daddycar%d.cfg",Con1);
        if(!
fexist(filename)) file_create(scriptname);
        
format(filename,sizeof(filename),"daddyskin%d.cfg",Con1);
        
format(scriptname,sizeof(scriptname),"scriptfiles/daddyskin%d.cfg",Con1);
        if(!
fexist(filename)) file_create(scriptname);
        
Con1 ++;
    }
    else
    {
        
KillTimer(Timer1);
    }
    
    

i've got 2 timers like that one ^
Reply
#4

Do they get banned on runtime or when you start the server? Increase the interval of the timer if it is upon start-up.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)