Jump to content

Spam


1nsane

Recommended Posts

Posted

Hello. One of these days in scripts PRS1.3 has found the big bug. If flood commands of type !info that flooder not will muted, and scripts start to brake. On one Russian server because of it was the full disorder in which end the server has remained without scripts. What to me to do what flooder will kicked?

Forgive for broken English, I translate through the Internet:)

[PK]INSANE

Posted

var %a = $calc($iif($hget(prstemp,$2) == $null,0,$v1) + 1)

!hadd prstemp $2 %a

if (%a == 3) mta.pm $1 $2 WARNING - DO NO SPAM!!!

elseif (%a == 4) {

mta.text $1 $mta.nick($1,$2) Auto-Muted: 60 secs - Reason: Spamming

mta.mute $1 $2

.timerunmute $+ $2 1 60 mta.unmute $1 $2

}

elseif (%a == !) {

mta.text $1 $mta.nick($1,$2) Auto-Muted: 60 secs - Reason: Spamming

mta.mute $1 $2

.timerunmute $+ $2 1 60 mta.unmute $1 $2

}

!hadd -u2 prstemp $2 %a

}

Try that, i havnt tested, but maybe its my script unbug record :P:P

  • 4 weeks later...
Posted

the spam check line isnt originally added to mta.command,

but u could easily just paste it to the top of mta.command, its this part:

var %a = $calc($iif($hget(prstemp,$2) == $null,0,$v1) + 1) 
  !hadd prstemp $2 %a 
  if (%a == 3) mta.pm $1 $2 WARNING - DO NO SPAM!!! 
  elseif (%a == 4) { 
    mta.text $1 $mta.nick($1,$2) Auto-Muted: 60 secs - Reason: Spamming 
    mta.mute $1 $2  
    .timerunmute $+ $2 1 60 mta.unmute $1 $2 
  } 
  !hadd -u2 prstemp $2 %a 

add it as the very first line in mta.command.

Posted
the spam check line isnt originally added to mta.command,

but u could easily just paste it to the top of mta.command, its this part:

var %a = $calc($iif($hget(prstemp,$2) == $null,0,$v1) + 1) 
  !hadd prstemp $2 %a 
  if (%a == 3) mta.pm $1 $2 WARNING - DO NO SPAM!!! 
  elseif (%a == 4) { 
    mta.text $1 $mta.nick($1,$2) Auto-Muted: 60 secs - Reason: Spamming 
    mta.mute $1 $2  
    .timerunmute $+ $2 1 60 mta.unmute $1 $2 
  } 
  !hadd -u2 prstemp $2 %a 

add it as the very first line in mta.command.

Hmm well lol, im a newbie scripter, but i know quite a bit :P

Posted
Thanks Scooby and BlueTak :wink:

no problem, i would have replied sooner if u had posted in the prs topic tho :)

i dont always look thru all the new posts.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...