SA-MP Forums Archive
[HELP] Strange DDoS Attack - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Strange DDoS Attack (/showthread.php?tid=74101)



[HELP] Strange DDoS Attack - Whiteagle - 19.04.2009

Hello,

Some cheaters are making my game mod crash by writing some big number strings in the chat.

The mod freezes and it became a regular server

I'm using CRP mode and we have OOC, IC & several distance chat's [You can only read the chat from people arround you]

How can i fix this problem?

Thanks,
Whiteagle


Re: [HELP] Strange DDoS Attack - Torekk - 19.04.2009

Range IP banning their IP's? That's the only way I could think about. Means you search for their IP's, then open the samp.bans file and when their IP is 198.34.64.75 as an example, you add 198.34.64.*. You can then look after some days if they stopped and remove the IP again, most guys won't repeat it.


Re: [HELP] Strange DDoS Attack - Backwardsman97 - 19.04.2009

or add in checks to those commands that they type big numbers into


Re: [HELP] Strange DDoS Attack - Karlip - 19.04.2009

It's not a goddamn DDoS.

Use sscanf.


Re: [HELP] Strange DDoS Attack - Mr187 - 19.04.2009

first off DDos would shut down your server so can't be that. 2nd what gamemode you using?


Re: [HELP] Strange DDoS Attack - Redirect Left - 19.04.2009

Quote:
Originally Posted by Mr187
2nd what gamemode you using?
Quote:
Originally Posted by Whiteagle
I'm using CRP mode and we have OOC, IC & several distance chat's [You can only read the chat from people arround you]
If you're going to help, try reading.


Re: [HELP] Strange DDoS Attack - Mr187 - 19.04.2009

Quote:
Originally Posted by Jolteon | RD Left
Quote:
Originally Posted by Mr187
2nd what gamemode you using?
Quote:
Originally Posted by Whiteagle
I'm using CRP mode and we have OOC, IC & several distance chat's [You can only read the chat from people arround you]
If you're going to help, try reading.
CRP? wtf is that? is it Godfather edit or what?


Re: [HELP] Strange DDoS Attack - ICECOLDKILLAK8 - 19.04.2009

Try this
pawn Код:
// Top of script
#define MAX_COMMAND 100 // Maximum command length

// OnPlayerCommandText
if(strlen(cmdtext) >= MAX_COMMAND)
{
  return SendClientMessage(playerid, color, "SERVER: Unknown Command"); // Make them think the command is unknown
}



Re: [HELP] Strange DDoS Attack - Mr187 - 19.04.2009

well see, if its a Godfather edit and if someone spams up your chat with 99/99/999999999999999999999 etc. thats them using a bug with the birthday system. what you gotta do is limit it.


Re: [HELP] Strange DDoS Attack - Whiteagle - 19.04.2009

Thanks to all!!!!

JeNkStAX you Rock

Fixed.

[ Range IP Banning would not work, dyn. ip addresses are the most common thing here in portugal ]

For those of you that've been asking CRP it's Carlito's RP and it is not a GF edit, topic: http://forum.sa-mp.com/index.php?topic=91010.0