Jump to content

Help . Whats Wrong???


ImJohnMclane

Recommended Posts

alias mta.text {

if (mywordwashere isin $3-) mta.text $1 Sa ei pidanud reeglitest kinni - You didn't stay at rules - AutoMute 120 seconds.

elseif (mywordwashere isin $3-) mta.text $1 Sa ei pidanud reeglitest kinni - You didn't stay at rules - AutoMute 120 seconds.

elseif (mywordwashere isin $3-) mta.text $1 Sa ei pidanud reeglitest kinni - You didn't stay at rules - AutoMute 120 seconds.

elseif (mywordwashere isin $3-) mta.text $1 Sa ei pidanud reeglitest kinni - You didn't stay at rules - AutoMute 120 seconds.

elseif (mywordwashere isin $3-) mta.text $1 Sa ei pidanud reeglitest kinni - You didn't stay at rules - AutoMute 120 seconds.

elseif (mywordwashere isin $3-) mta.text $1 Sa ei pidanud reeglitest kinni - You didn't stay at rules - AutoMute 120 seconds.

!.timer 1 1 mta.mute $1 $2

!.timer 1 121 mta.unmute $1 $2

!.timer 1 121 mta.text $1 Ara rohkem Niimodi Raagi! Do not speak by this language anymore!

}

But this didn't work? . Whats wrong? :o

Greetz,

[XED]Raver. Thanks. :wink:

Link to comment
Try to take out all the elseif and just use if :)

.....

on *:SIGNAL:mta.text:{ 
  var %badwords = bla1 bla2 bla3 bla4 bla5 
  var %a = 1 
  while (%a <= $numtok(%badwords,32)) { 
    if ($gettok(%badwords,%a,32) isin $3-) { 
      mta.badword $1 $2 
      !halt 
    } 
    !inc %a 
  } 
} 
alias mta.badword { 
  mta.text $1 Sa ei pidanud reeglitest kinni - You didn't stay at rules - AutoMute 120 seconds. 
  !.timer 1 1 mta.mute $1 $2 
  !.timer 1 121 mta.unmute $1 $2 
  !.timer 1 121 mta.text $1 Ara rohkem Niimodi Raagi! Do not speak by this language anymore! 
} 

List the words you don't want to see in 'var %badwords = bla1 bla2 bla3 bla4 bla5'

Link to comment
  • Recently Browsing   0 members

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