- 0
Problema Flood
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
marius15
Buna seara,
Ma puteti Ajuta va rog cu o solutie pentru tipul asta de flood.. ?
[pawn][18:50:47] Incoming connection: 109.97.6.47:12098
[18:50:47] [join] Nikita_Caypen has joined the server (4:109.97.6.47)
[18:50:52] [chat] [Nikita_Caypen]: [CaypDos]: ?â?î? Caypen
[18:50:52] [join] Nikita_Caypen_DVPf has joined the server (4:109.97.6.47)
[18:50:52] [join] Nikita_Caypen_DvJc has joined the server (4:109.97.6.47)
[18:50:52] [join] Nikita_Caypen_DrgR has joined the server (4:109.97.6.47)
[18:50:52] [join] Nikita_Caypen_DYwT has joined the server (4:109.97.6.47)
[18:50:52] [join] Nikita_Caypen_Diiz has joined the server (4:109.97.6.47)
[18:50:52] [join] Nikita_Caypen_Ds2t has joined the server (4:109.97.6.47)
[18:50:52] [part] Nikita_Caypen_Ds2t has left the server (4:2)
[18:50:52] Invalid client connecting from 109.97.6.47
[18:50:52] Invalid client connecting from 109.97.6.47
[18:50:52] Invalid client connecting from 109.97.6.47
[18:50:52] Invalid client connecting from 109.97.6.47
[18:50:52] Invalid client connecting from 109.97.6.47
[18:50:52] Invalid client connecting from 109.97.6.47
[18:50:55] [part] dani1397 has left the server (0:2)
[18:50:55] [part] robyboss16778 has left the server (1:2)
[18:50:55] [part] Nubi has left the server (2:2)
[18:50:55] [part] PapiChulLoOo has left the server (3:2)
[18:50:55] [part] roman has left the server (7:2)
[18:50:55] [part] alexele has left the server (8:2)
[18:50:55] [part] ConnectR has left the server (9:2)
[18:50:55] [part] Oly has left the server (13:2)
[18:50:55] [part] DJ_Smoke has left the server (16:2)
[18:50:55] [part] AsCuNs has left the server (17:2)[/pawn]
Am incercat niste metode ca si :
[pawn] new ConnIP[16];
GetPlayerIp(playerid,ConnIP,16);
new compare_IP[16];
new number_IP = 0;
for(new i=0; i<MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
GetPlayerIp(i,compare_IP,16);
if(!strcmp(compare_IP,ConnIP)) number_IP++;
}
}
if((GetTickCount() - Join_Stamp) < Time_Limit)
exceed=1;
else
exceed=0;
if(strcmp(ban_s, ConnIP, false) == 0 && exceed == 1 )
{
Same_IP++;
if(Same_IP > SAME_IP_CONNECT)
{
Ban(playerid);
Same_IP=0;
}
}
else
{
Same_IP=0;
}
if(number_IP > IP_LIMIT)
Kick(playerid);
GetStampIP(playerid);
return 1;
}
stock GetStampIP(playerid){
new S_IP[16];
Join_Stamp=GetTickCount();
GetPlayerIp(playerid,S_IP,16);
format(ban_s, 16, "%s", S_IP);[/pawn]
Sau "Cartman Protection " Problema e ca, In momentul in care respectivul imi intra Cu Flood,NU BANEAZA doar vinovatul .... Imi Baneaza tot serverul :\.....
2 answers to this question
Recommended Posts