Jump to content

MTA:MA - Flood timeout 'bug'.


Aeron

Recommended Posts

Posted

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.

Posted

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

Posted

I did suggest that to Aeron the evening that he was fixing this, I forget the reason he gave that he couldn't do so though.

Posted
Lazyness??

Cant think of any other thing for not making a small update

There is one coming... and yes i'm lazy.

  • 1 month later...
Posted

can u show this with photos i dont get it and cant do it anyways

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...