Jump to content

Anti Flood


chytrak

Recommended Posts

Tak dalsi uzitecna blbustka do modu, kdyz se vam nekdo pokusi floodovat server pres program dostane ban, oni ho ty napady pak prejdou...

 

Do

public OnPlayerConnect(playerid)

 

Vlozime kod

new ip[24];
GetPlayerIp(playerid, ip, 24);
if(strcmp(ip, "255.255.255.255", true) == 0)
{
Ban(playerid);
}

Link to comment
Share on other sites

  • 2 years later...

to je bombardovani ciloveho stroje packetama....v sampu se to driv dalo delat neviditelnejma botama...kazdou milisekundu to pripojilo a hned odpojilo jednoho hrace...kdyz si program na to zapnul tak 10x tak si byl schopnej zaplnit server s 200 slotama tak ze se tam nikdo uz nepripojil....pomoci PHP se to dela treba pomoci mereni pingu...to taky dokaze celkem nadelat paseku...ale v tuhel dobu se samp servery nemusej bajt floodovani jelikoz to je chraneny uz od zakladu

Link to comment
Share on other sites

to je bombardovani ciloveho stroje packetama....v sampu se to driv dalo delat neviditelnejma botama...kazdou milisekundu to pripojilo a hned odpojilo jednoho hrace...kdyz si program na to zapnul tak 10x tak si byl schopnej zaplnit server s 200 slotama tak ze se tam nikdo uz nepripojil....pomoci PHP se to dela treba pomoci mereni pingu...to taky dokaze celkem nadelat paseku...ale v tuhel dobu se samp servery nemusej bajt floodovani jelikoz to je chraneny uz od zakladu

tak pred floodem te malo co ochrani ja osobne pouzivam iptables ale to taky neni 100%

jinak floodujou mne vg i wtls a to uz dele jak dva mesice..

ale prakticky to malo kdy poznate spise se to zobrazi jako zalagnuti protoze tomu nekdy zabrani iptables asi z 80% ale nekdy ne a potom to udela paseku

Link to comment
Share on other sites

Kua mam tam erro pls help

 

 

C:\Documents and Settings\Dominik.ACERASPIRE5100\Plocha\muj mod.pwn(1932) : error 021: symbol already defined: "ip"

Link to comment
Share on other sites

Kua mam tam erro pls help

 

 

C:\Documents and Settings\Dominik.ACERASPIRE5100\Plocha\muj mod.pwn(1932) : error 021: symbol already defined: "ip"

 

Si to predelej treba na tohle:

 

new tenhledebilnierrornebuduuzmit[24];
GetPlayerIp(playerid, tenhledebilnierrornebuduuzmit, 24);
if(strcmp(tenhledebilnierrornebuduuzmit, "255.255.255.255", true) == 0)
{
Ban(playerid);
}

Link to comment
Share on other sites

B4RR0N":1mwg3w6v]
Kua mam tam erro pls help

 

 

C:\Documents and Settings\Dominik.ACERASPIRE5100\Plocha\muj mod.pwn(1932) : error 021: symbol already defined: "ip"

 

Si to predelej treba na tohle:

 

new tenhledebilnierrornebuduuzmit[24];
GetPlayerIp(playerid, tenhledebilnierrornebuduuzmit, 24);
if(strcmp(tenhledebilnierrornebuduuzmit, "255.255.255.255", true) == 0)
{
Ban(playerid);
}

 

 

thx a peknej new :d:D

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...