Problem | Server Crashing
#1

Hey all,

there is a hackers that come in to my server and crash him with a commands like this:
1) /report 99999999999999999999999999999999999999999999999999 999999999999999999
2) /crash 99999999999999999999999999999999999999999999999999 9999999999999

and every thing with numbers !

how can i unblock this?
that for 20 numbers only!?
Reply
#2

Quote:
Originally Posted by -PunisheR-
Hey all,

there is a hackers that come in to my server and crash him with a commands like this:
1) /report 99999999999999999999999999999999999999999999999999 999999999999999999
2) /crash 99999999999999999999999999999999999999999999999999 9999999999999

and every thing with numbers !

how can i unblock this?
that for 20 numbers only!?
you could set the command so your allowed only enter a maximum of 3 numbers.
also i seen a command in the Useful Commands #1 room about people using dynamic ip, the command does something to people with a dynamic ip.. it's called /bigpwn
Reply
#3

i didn't get it,

i asked for a function that block command numbers up 20..
Reply
#4

I am guessing you are using strval in these functions? is that so? Well, here is a work around for it:

pawn Code:
stock strvalEx(const string[])
{
  if(strlen(string)>40)
  {
    return 0;
  }
  return strval(string);
}
All this function does is count if the string is longer then 40, e.g. 40 numbers in this case. If it is, it will return 0, meaning the result for you will be 0. If it isn't, it will return the number the user has entered. You can shorten this at any time, as you desire its needs.
Reply
#5

or use /ban on the person.

Extremo: Nice function but: what if the person types a long message at a report?

eg: User has been flying with a car and is using godmode (more than 40 chars,, probably. Didn't count) and the message won't be sended.
Reply
#6

Quote:
Originally Posted by [NT
mamoru ]
or use /ban on the person.

Extremo: Nice function but: what if the person types a long message at a report?

eg: User has been flying with a car and is using godmode (more than 40 chars,, probably. Didn't count) and the message won't be sended.
using /ban wont solve it because if the person is using a dynamic ip he can just go and change his ip, then re-join the game
Reply
#7

that's it? just enter the stock into the mode?

i believe that to do :
strvalEx();
in OnPlayerCommandText ?
Reply
#8

Quote:
Originally Posted by -PunisheR-
that's it? just enter the stock into the mode?

i believe that to do :
strvalEx();
in OnPlayerCommandText ?
pllus using it instead of strval in ur functions where u need the limit
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)