Slots full even there are no players
#1

IM SHOCKED!

- 17 players are online, when i enter in server sometimes it shows 'server is full' when we get connected, our id is like 108 or 68 even just 17 players are online! How to fix that? we have 247 slots
Reply
#2

Do you have npc's?
Reply
#3

It's possible you or someone else has connected NPC's to the server, if you own the server than you'll want to try adding something like this to your script(or even as an FS):

pawn Код:
#include <a_samp>

public OnPlayerConnect(playerid) {
    if(IsPlayerNPC(playerid)) {
        new playerIP[32];
        GetPlayerIp(playerid, playerIP, sizeof(playerIP));
       
        if(strcmp(playerIP, "127.0.0.1", true) == 0)
        {
            return 1; // coming from your server
        }
        else
        {
            new playerName[24];
            GetPlayerName(playerid, playerName, sizeof(playerName));
           
            printf("NPC %s tried to connect from %s, and has been kicked.", playerName, playerIP);
            return Kick(playerid);
        }
    }
   
    return 1;
}
Reply
#4

What's on your server log?
Reply
#5

I believe SAMP is having a flood.
Reply
#6

It's actually NPCs use what abagail posted
Reply
#7

I'm having the same issue, my maxnpc is 0 and it says the server is full with more than half of slots empty.

Server_log.txt

Quote:

[17:22:23] Incoming connection: 177.39.227.120:4394
[17:22:24] Incoming connection: 177.162.252.89:8852
[17:22:24] Incoming connection: 195.77.232.71:62946
[17:22:24] Incoming connection: 115.156.214.28:20003
[17:22:24] Incoming connection: 158.203.244.109:15913
[17:22:24] Incoming connection: 177.123.66.187:62866
[17:22:24] Incoming connection: 65.69.154.15:30588
[17:22:24] Incoming connection: 177.95.159.109:18821
[17:22:24] Incoming connection: 201.35.22.255:3848
[17:22:24] Incoming connection: 177.145.165.64:5490
[17:22:24] Incoming connection: 201.12.82.21:55510
[17:22:24] Incoming connection: 177.100.70.195:55547
[17:22:24] Incoming connection: 201.78.81.196:48244
[17:22:24] Incoming connection: 177.32.139.137:17734
[17:22:24] Incoming connection: 201.222.187.20:13837
[17:22:24] Incoming connection: 177.211.221.6:55483
[17:22:25] Incoming connection: 177.34.177.91:32480
[17:22:25] Incoming connection: 201.215.237.193:54872
[17:22:25] Incoming connection: 177.122.1.123:10607
[17:22:25] Incoming connection: 75.185.95.20:16898
[17:22:25] Incoming connection: 186.253.219.37:49218
[17:22:25] Incoming connection: 177.107.172.214:64360
[17:22:25] Incoming connection: 201.251.134.207:47154
[17:22:25] Incoming connection: 65.122.178.15:25312
[17:22:26] Incoming connection: 131.218.195.40:1156
[17:22:26] Incoming connection: 197.200.96.105:56048
[17:22:26] Incoming connection: 163.48.174.62:9335
[17:22:26] Incoming connection: 86.80.224.1:59064
[17:22:26] Incoming connection: 177.2.150.13:40231
[17:22:27] Incoming connection: 177.146.241.14:62497
[17:22:27] Incoming connection: 201.104.61.124:20493
[17:22:27] Incoming connection: 177.157.103.219:20367
[17:22:27] Incoming connection: 168.183.157.74:37107
[17:22:27] Incoming connection: 177.142.236.132:22998
[17:22:27] Incoming connection: 184.8.231.18:50836
[17:22:27] Incoming connection: 195.130.62.52:762
[17:22:27] Incoming connection: 65.188.179.113:35659
[17:22:27] Incoming connection: 177.63.113.231:798
[17:22:27] Incoming connection: 201.74.60.99:54417
[17:22:27] Incoming connection: 177.156.197.165:64191
[17:22:28] Incoming connection: 201.215.175.166:47526
[17:22:28] Incoming connection: 63.235.98.5:65504
[17:22:28] Incoming connection: 177.222.7.188:47435
[17:22:28] Incoming connection: 201.138.72.63:12888
[17:22:28] Incoming connection: 177.132.241.242:42893
[17:22:28] Incoming connection: 201.203.245.47:41216
[17:22:28] Incoming connection: 173.117.123.109:6909
[17:22:28] Incoming connection: 201.122.189.19:47006
[17:22:28] Incoming connection: 53.9.5.81:32932
[17:22:28] Incoming connection: 182.62.199.95:63129
[17:22:29] Incoming connection: 201.136.155.230:24252
[17:22:29] Incoming connection: 177.96.53.174:64048
[17:22:29] Incoming connection: 201.4.153.57:19682
[17:22:29] Incoming connection: 120.212.219.50:50788
[17:22:29] Incoming connection: 201.225.201.170:46983
[17:22:29] Incoming connection: 201.1.225.6:32919
[17:22:29] Incoming connection: 173.45.226.59:30525
[17:22:30] Incoming connection: 177.136.4.239:61482
[17:22:30] Incoming connection: 201.240.92.159:40500
[17:22:30] Incoming connection: 5.194.165.66:2956
[17:22:30] Incoming connection: 49.247.3.63:32951
[17:22:30] Incoming connection: 162.254.65.66:39778
[17:22:30] Incoming connection: 201.240.28.114:37995
[17:22:30] Incoming connection: 177.149.237.56:5239
[17:22:30] Incoming connection: 151.16.215.89:13775
[17:22:30] Incoming connection: 67.114.182.51:25268
[17:22:30] Incoming connection: 177.104.86.84:35760
[17:22:30] Incoming connection: 15.61.249.62:60055
[17:22:30] Incoming connection: 177.155.218.223:46421
[17:22:30] Incoming connection: 177.107.31.217:16576
[17:22:30] Incoming connection: 37.89.194.118:594
[17:22:30] Incoming connection: 92.35.103.104:41505
[17:22:30] Incoming connection: 201.14.222.217:47963
[17:22:31] Incoming connection: 201.134.192.142:55398
[17:22:31] Incoming connection: 177.236.180.99:20067
[17:22:31] Incoming connection: 82.203.90.3:1909
[17:22:31] Incoming connection: 190.207.117.48:45363
[17:22:31] Incoming connection: 152.135.76.23:16271
[17:22:31] Incoming connection: 201.65.55.236:60450
[17:22:31] Incoming connection: 201.197.173.232:481
[17:22:31] Incoming connection: 201.132.122.154:63498
[17:22:32] Incoming connection: 112.192.13.102:48664
[17:22:32] Incoming connection: 177.80.231.139:46747
[17:22:32] Incoming connection: 42.102.104.116:18678
[17:22:32] Incoming connection: 201.138.125.159:55809
[17:22:32] Incoming connection: 182.66.75.122:49072
[17:22:32] Incoming connection: 177.255.49.71:35662
[17:22:32] Incoming connection: 177.162.100.34:23103
[17:22:32] Incoming connection: 177.27.35.162:60291
[17:22:32] Incoming connection: 133.37.131.10:53421
[17:22:32] Incoming connection: 177.237.38.248:38903
[17:22:32] Incoming connection: 177.62.232.148:21682
[17:22:32] Incoming connection: 177.242.26.83:9497
[17:22:32] Incoming connection: 77.149.222.69:12025
[17:22:32] Incoming connection: 177.182.173.197:35601
[17:22:32] Incoming connection: 201.34.198.230:53678
[17:22:32] Incoming connection: 177.103.229.117:22630
[17:22:33] Incoming connection: 60.72.136.17:47985
[17:22:33] Incoming connection: 177.162.194.125:32151
[17:22:33] Incoming connection: 201.198.60.200:8232
[17:22:33] Incoming connection: 177.104.110.159:13968
[17:22:33] Incoming connection: 196.204.170.11:22635
[17:22:33] Incoming connection: 201.44.92.236:14084
[17:22:33] Incoming connection: 214.56.213.71:13186
[17:22:33] Incoming connection: 201.33.191.63:9872
[17:22:33] Incoming connection: 83.174.249.55:25105
[17:22:33] Incoming connection: 201.74.101.174:11481
[17:22:33] Incoming connection: 123.186.138.9:45580
[17:22:33] Incoming connection: 217.19.108.114:35799
[17:22:33] Incoming connection: 106.1.33.57:2548
[17:22:33] Incoming connection: 177.87.88.196:8565
[17:22:33] Incoming connection: 201.200.138.1:21568
[17:22:33] Incoming connection: 201.35.198.27:15806
[17:22:33] Incoming connection: 177.209.62.169:36157
[17:22:33] Incoming connection: 201.33.255.107:34123
[17:22:33] Incoming connection: 124.210.1.80:16985
[17:22:34] Incoming connection: 177.185.119.209:58679
[17:22:34] Incoming connection: 177.243.188.152:47490
[17:22:34] Incoming connection: 177.15.20.187:6651
[17:22:34] Incoming connection: 201.152.114.166:18965
[17:22:34] Incoming connection: 126.212.233.6:8910
[17:22:34] Incoming connection: 104.23.176.90:57810
[17:22:34] Incoming connection: 221.69.187.107:35246
[17:22:34] Incoming connection: 201.85.86.76:31568
[17:22:34] Incoming connection: 177.76.100.221:7854
[17:22:34] Incoming connection: 209.98.158.23:20302
[17:22:34] Incoming connection: 201.124.215.48:2636
[17:22:34] Incoming connection: 201.222.216.152:49029
[17:22:34] Incoming connection: 70.36.176.21:26288
[17:22:34] Incoming connection: 73.97.200.61:19979
[17:22:35] Incoming connection: 201.160.4.108:31224
[17:22:35] Incoming connection: 201.137.15.154:17827
[17:22:35] Incoming connection: 218.155.101.70:35911
[17:22:35] Incoming connection: 70.234.41.123:7521
[17:22:35] Incoming connection: 177.157.79.106:6802
[17:22:35] Incoming connection: 177.95.196.75:10229
[17:22:35] Incoming connection: 201.52.13.184:48153
[17:22:35] Incoming connection: 177.171.209.8:9411
[17:22:35] Incoming connection: 201.23.53.54:6742
[17:22:36] Incoming connection: 201.149.1.127:44787
[17:22:36] Incoming connection: 81.210.236.118:29541
[17:22:36] Incoming connection: 69.26.194.1:47821
[17:22:36] Incoming connection: 218.27.80.77:5620
[17:22:36] Incoming connection: 177.48.142.25:4889
[17:22:37] Incoming connection: 201.201.141.178:44125
[17:22:37] Incoming connection: 177.86.237.249:21062
[17:22:37] Incoming connection: 201.236.14.41:62522
[17:22:37] Incoming connection: 201.9.66.145:53363
[17:22:37] Incoming connection: 177.145.211.78:34462
[17:22:37] Incoming connection: 201.78.191.67:54984
[17:22:37] Incoming connection: 141.146.149.116:10562
[17:22:37] Incoming connection: 222.98.122.104:54760
[17:22:37] Incoming connection: 201.78.166.144:2819
[17:22:37] Incoming connection: 201.79.154.174:44390
[17:22:38] Incoming connection: 80.197.113.53:56950
[17:22:38] Incoming connection: 78.106.110.53:1654
[17:22:38] Incoming connection: 125.233.101.54:62616
[17:22:38] Incoming connection: 175.51.240.82:51551
[17:22:38] Incoming connection: 201.218.14.214:58199
[17:22:38] Incoming connection: 134.178.246.31:6985
[17:22:38] Incoming connection: 74.41.158.127:36634
[17:22:38] Incoming connection: 173.140.13.30:6160
[17:22:38] Incoming connection: 177.89.75.219:34843
[17:22:38] Incoming connection: 177.186.20.212:39226
[17:22:38] Incoming connection: 212.209.18.124:24970
[17:22:39] Incoming connection: 177.6.59.120:8748
[17:22:39] Incoming connection: 132.160.232.18:45040
[17:22:39] Incoming connection: 177.18.232.233:48980
[17:22:39] Incoming connection: 201.23.75.194:28946
[17:22:39] Incoming connection: 177.49.33.17:48773
[17:22:39] Incoming connection: 177.34.7.28:8951
[17:22:39] Incoming connection: 201.148.153.82:22867
[17:22:40] Incoming connection: 201.241.112.21:62138
[17:22:40] Incoming connection: 175.181.109.100:50867
[17:22:40] Incoming connection: 177.97.43.1:9626
[17:22:40] Incoming connection: 5.209.252.13:5824
[17:22:40] Incoming connection: 177.69.254.11:52022
[17:22:40] Incoming connection: 157.177.222.101:15488
[17:22:40] Incoming connection: 201.5.50.83:56438
[17:22:40] Incoming connection: 186.14.157.67:11833
[17:22:40] Incoming connection: 177.255.4.148:10609
[17:22:40] Incoming connection: 201.238.210.176:42919
[17:22:40] Incoming connection: 201.147.40.73:24634
[17:22:40] Incoming connection: 177.121.101.172:41207
[17:22:40] Incoming connection: 177.157.9.205:46728
[17:22:40] Incoming connection: 4.196.48.78:18218
[17:22:41] Incoming connection: 78.218.160.29:7334
[17:22:41] Incoming connection: 201.43.236.80:9774
[17:22:41] Incoming connection: 201.168.182.55:27171
[17:22:41] Incoming connection: 177.173.198.114:26639
[17:22:41] Incoming connection: 177.102.150.106:5599
[17:22:41] Incoming connection: 78.193.81.54:2565
[17:22:41] Incoming connection: 177.251.228.110:26148
[17:22:41] Incoming connection: 193.63.27.74:33205
[17:22:41] Incoming connection: 201.188.129.19:56941
[17:22:41] Incoming connection: 200.128.103.30:65166
[17:22:42] Incoming connection: 177.100.54.111:2959
[17:22:42] Incoming connection: 201.83.50.36:20695
[17:22:42] Incoming connection: 72.105.247.38:23321
[17:22:42] Incoming connection: 201.1.235.142:52998
[17:22:42] Incoming connection: 201.255.243.176:42875
[17:22:42] Incoming connection: 177.142.165.54:46635
[17:22:42] Incoming connection: 177.107.78.82:57797
[17:22:42] Incoming connection: 201.52.9.82:24517
[17:22:42] Incoming connection: 177.106.153.59:62966
[17:22:42] Incoming connection: 177.196.61.39:24261
[17:22:42] Incoming connection: 222.84.215.25:50489
[17:22:42] Incoming connection: 92.119.172.28:63744
[17:22:42] Incoming connection: 177.38.115.203:46417
[17:22:42] Incoming connection: 201.209.53.4:3652
[17:22:42] Incoming connection: 177.129.202.109:61171
[17:22:42] Incoming connection: 201.190.35.255:38739
[17:22:43] Incoming connection: 63.196.212.78:38522
[17:22:43] Incoming connection: 177.63.155.100:34981
[17:22:43] Incoming connection: 201.192.229.7:35952
[17:22:43] Incoming connection: 70.14.167.116:8122
[17:22:43] Incoming connection: 201.50.235.242:27726
[17:22:43] Incoming connection: 177.197.248.35:46136
[17:22:43] Incoming connection: 121.197.5.33:8579
[17:22:43] Incoming connection: 132.17.213.47:39371
[17:22:43] Incoming connection: 201.33.93.185:40200
[17:22:43] Incoming connection: 177.207.218.56:4248
[17:22:43] Incoming connection: 95.25.85.28:10140
[17:22:43] Incoming connection: 99.81.231.70:20507
[17:22:43] Incoming connection: 31.68.108.99:19245
[17:22:43] Incoming connection: 177.213.227.225:261
[17:22:43] Incoming connection: 110.72.194.75:14495

Reply
#8

The thing that confused me was that I didn't know they even took up slot ID's; but I guess they do, so that's why your playerid's were so high.

Anyways:
https://sampforum.blast.hk/showthread.php?tid=333955

Fix: https://sampforum.blast.hk/showthread.php?tid=551128
Reply
#9

Quote:
Originally Posted by Aasim
Посмотреть сообщение
I'm having the same issue, my maxnpc is 0 and it says the server is full with more than half of slots empty.

Server_log.txt
Use this
pawn Код:
#include <a_samp>

public OnPlayerConnect(playerid) {
    if(IsPlayerNPC(playerid)) {
        new playerIP[32];
        GetPlayerIp(playerid, playerIP, sizeof(playerIP));
       
        if(strcmp(playerIP, "127.0.0.1", true) == 0)
        {
            return 1; // coming from your server
        }
        else
        {
            new playerName[24];
            GetPlayerName(playerid, playerName, sizeof(playerName));
           
            printf("NPC %s tried to connect from %s, and has been kicked.", playerName, playerIP);
            return Kick(playerid);
        }
    }
   
    return 1;
}
Reply
#10

I have this problem too.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)