Aeron

MTA:MA - Flood timeout 'bug'.

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.

Share this post


Link to post

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

Share this post


Link to post

Couldnt you this just put in a MTA:MA update/revision?

Share this post


Link to post

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.

Share this post


Link to post

Lazyness??

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

Share this post


Link to post
Lazyness??

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

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

Share this post


Link to post
Guest

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

Share this post


Link to post

No

This topic is way too old, and i thought this problem is fixed anyways.

Share this post


Link to post

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.