Van egy 60 slotos szerverem ebbõl van 9 npc, mióta feltörték a bbe-t már csak 5 mûködik tehát
55 slotom van.
Tegnap kaptam egy kis támadást is de ezt nem részletezem .
Este meg észrevettem hogy már csak 45 slot van , és azóta is ennyi -Már próbáltam pár megoldást de semmi .
Logba vannak ilyenek de mi csatlakozik omg
[11:22:15] Incoming connection: 127.0.0.1:60108
[11:22:15] Incoming connection: 127.0.0.1:59332
[11:22:15] Incoming connection: 127.0.0.1:34261
[11:22:15] Incoming connection: 127.0.0.1:60712
[11:22:15] Incoming connection: 127.0.0.1:38187
[11:22:15] Incoming connection: 127.0.0.1:49658
[11:22:15] Incoming connection: 127.0.0.1:35773
[11:22:15] Incoming connection: 127.0.0.1:52038
[11:22:15] Incoming connection: 127.0.0.1:58977
[11:22:26] Incoming connection: 37.220.227.4:62265
Idézet a gl_npcs.pwn fájlból:
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;
}
Idézet a gl_npcs.pwn fájlból:
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid)) {
printf(\"Npc connected return 0; (gl_npcs fs)\");
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;
}
Ezt hogy lehetne átalakítani, hogy faszául kivédje a külsõ NPC támadásokat?
Vagy ez jobban mûködik mint a többi Anti Npc ami a neten van?