Jump to content

MTA:MA - Flood timeout 'bug'.


Aeron

Recommended Posts

To much "mta.say"'s or "mta.msg"'s in one event can time-out all players.

Therefor I made varity of "mta.say" and "mta.msg", which adds a delay and prevents flooding the server.

What do YOU do:

1. Add the following code in a EMPTY script file.

2. Replace in ALL scripts (Except from the edit-protection scripts: GRS for example) "mta.say" with "mta.tsay" and "mta.msg" with "mta.tmsg"

alias mta.tsay {
 var %a = 1,%b = 0
 while (%a <= $timer(0)) {
   if (mta.say* iswm $timer(%a).com) {
     !inc %b
   }
   !inc %a
 }
 !.timer 1 %b mta.say $1-
}
alias mta.tmsg {
 var %a = 1,%b = 0
 while (%a <= $timer(0)) {
   if (mta.msg* iswm $timer(%a).com) {
     !inc %b
   }
   !inc %a
 }
 !.timer 1 %b mta.msg $1-
}

Aeron out.

Link to comment

This should also fix the 0x093249blah error.

Also, if it still doesn't sort itself, turn off as many things as you can in GRS (welcome message, gstats, nickserv) as GRS on it's own can cause the timeout bug. /me slaps Oli

Link to comment
  • 1 month later...

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...