Anti Advertisement

By Froggeh on Sep 05, 2005

Look below -->

//To use this script you need op in a channel :)
//4 Warnings (1 warning, 1 kick, 1 tempban, 1 permban)
//You can prob edit this script your self it is pretty simple to do
//If you need any help join #Froggeh or email me :)

on *:TEXT:*#*:#:{
  inc %adv. [ $+ [ $nick ] ]
  if (%adv. [ $+ [ $nick ] ] == 1) {
    notice $nick Please do not advertise in $chan $+ , i will not warn you again.
    halt
  }
  if (%adv. [ $+ [ $nick ] ] == 2) {
    kick $chan $nick Advertising: You was warned.
    halt
  }
  if (%adv. [ $+ [ $nick ] ] == 3) {
    kick $chan $nick Advertising: 2 Warnings, Temp ban
    ban -u1800 $chan $address($nick,1)
    halt
  }
  if (%adv. [ $+ [ $nick ] ] == 4) {
    kick $chan $nick Advertising: 3 Warnings, Perm ban
    ban $chan $nick $address($nick,1)
    unset %adv. [ $+ [ $nick ] ]
  }
}

Comments

Sign in to comment.
Froggeh   -  Sep 06, 2005

AndrewMiller17 it is #Froggeh @ Quakenet

 Respond  
xDaeMoN   -  Sep 05, 2005

If you use the if-elseif format, you won\'t need the halt commands.

 Respond  
AndrewMiller17   -  Sep 05, 2005

What server is your room on?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.