Jump to content

Warn script bad language more words?


Keslertje2005

Recommended Posts

  if ($findtok($3-,f*ck,32)) { 
   !writeini -n " $+ $scriptdir $+ warnings8.ini" WARNINGS $mta.nick($1,$2) $calc($gus.warnings8($1,$2)+1) 
   if ($gus.warnings8($1,$2) >= 3) { 
     mta.text $1 $mta.nick($1,$2) has reached the warnings limit and will be muted for 1 minute!  
     !.timer 1 3 mta.mute $1 $2 
     !writeini -n " $+ $scriptdir $+ warnings8.ini" WARNINGS $mta.nick($1,$2) 0 
     !.timer 1 63 mta.unmute $1 $2 
   } 
   else mta.text $1 $mta.nick($1,$2) don't use that kind of language! $calc(3-$gus.warnings8($1,$2)) more warnings and you will be muted for 1 minute. 
 } 

This is the script I am talkin about, but now I want to add more words without writing a second script. And will it be possible to let someone be muted too when hes saying motherfucker (becuase the f*ck is in the word) But wont be kicked if hes saying Fighting ur cosins killer...? Someone?

Thanks!

Link to comment

this is for sa isnt it well try

  if ($findtok($3-,f*ck blah blah blah,1,32)) { 
   !writeini -n " $+ $scriptdir $+ warnings8.ini" WARNINGS $mta.nick($1,$2) $calc($gus.warnings8($1,$2)+1) 
   if ($gus.warnings8($1,$2) >= 3) { 
     mta.text $1 $mta.nick($1,$2) has reached the warnings limit and will be muted for 1 minute!  
     !.timer 1 3 mta.mute $1 $2 
     !writeini -n " $+ $scriptdir $+ warnings8.ini" WARNINGS $mta.nick($1,$2) 0 
     !.timer 1 63 mta.unmute $1 $2 
   } 
   else mta.text $1 $mta.nick($1,$2) don't use that kind of language! $calc(3-$gus.warnings8($1,$2)) more warnings and you will be muted for 1 minute. 
 }

if not remove the 1 in

if ($findtok($3-,f*ck blah blah blah,1,32)) { 

Link to comment
  • Recently Browsing   0 members

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