Posts: 23
Threads: 2
Joined: Sep 2010
Reputation:
0
Hi!
I've got problems with my server!
An idiot is regularly sending invisible bots. They fill the server. At the moment they fill the server with 197 slots - only 3 players can connect.
solutions?
Posts: 785
Threads: 22
Joined: Jun 2007
Reputation:
0
Theres nothing you can do against it, other than hoping the attacker will stop.
Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by 101
pawn Код:
public OnPlayerConnect(playerid) { if(IsPlayerNPC(playerid)) { new ip_addr_npc[64+1]; new ip_addr_server[64+1]; GetServerVarAsString("bind",ip_addr_server,64); GetPlayerIp(playerid,ip_addr_npc,64); if(!strlen(ip_addr_server)) { ip_addr_server = "127.0.0.1"; } if(strcmp(ip_addr_npc,ip_addr_server,true) != 0) { // this bot is remote connecting printf("NPC: Got a remote NPC connecting from %s and I'm kicking it.",ip_addr_npc); Kick(playerid); return 0; } printf("NPC: Connection from %s is allowed.",ip_addr_npc); } return 1; }
Maybe, this? Will work?
|
Yeah, that's not going to work.
Attacking bots connect as normal players.
Posts: 1,701
Threads: 110
Joined: Aug 2010
Reputation:
0
I do not know how the attacking bots are working but here might be a solution:
Check the IP of the bots or from the one who's sending them and Range Ban him...idk it might work