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.

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

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.

The artist formerly known as [MTA]MrBump

Posted
Lazyness??

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

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

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

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