Quote:
Originally Posted by Glederson_dom
Tenta por isso no Gamemode
PHP код:
enum infbot
{
vezesconection,
timeconnection,
ipconnection[16]
}
new connectionInfo[infbot];
public OnIncomingConnection(playerid, ip_address[], port)
{
if(!strcmp(ip_address, GetIpServer(), true))return 1;
if(!strcmp(connectionInfo[ipconnection], ip_address, true) && connectionInfo[timeconnection] > gettime())
{
if(connectionInfo[vezesconection] > 3)
{
foreach(Player, i)
{
if(pInfo[i][Logado] == true && pInfo[i][Admin] > moderador)
{
SendClientMessage(i, 0xFFFF00FF, "Suspeita de Boot Attack detectada. Suspeito Name:({FFFFFF}%s, IP: %s{FFFF00})",PlayerName(playerid), ip_address);
}
}
printf("| INFO | Suspeta de attack DDos Boot (IP: %s)", PlayerName(playerid), ip_address);
return BlockIpAddress(ip_address, 60000);
}
connectionInfo[vezesconection]++;
return 1;
}
format(connectionInfo[ipconnection], 16, ip_address);
connectionInfo[vezesconection] = 0;
connectionInfo[timeconnection] = gettime()+2;
return 1;
}
|
Jб usei esse sistema aн mano й bom mбs no caso eu recebo ataques com ips falsos entгo sгo multiplos ips nгo repetem