Very simple user protection

By Repz on Dec 30, 2005

once loaded you will receive instructions..

Very very simple protection script, Which may come in handy incase you dont have one!

If the protected user is banned the person who banned him will be deopd devoiced banned and kicked
If protected user is kicked, Same as above
If protected user os deop'd same as above

on *:load: {
  echo -a chance NICKNAME to the protected users nickname, Then the script starts working.
}

on *:BAN:*: {
  IF ($BNICK == NICKNAME) {
    mode $chan -bb+o $bnick $bhost $bnick
    mode $chan +b-ohv $nick $nick $nick
    msg $chan I am banning and kicking $nick For attempting to ban a protected user!
    inc %kickss 1
    kick $chan $nick GoodBye!(Come back in twenty Minutes!-=- Kick Count: %kickss)
    .timer 1 12000 mode $chan -b $nick
  }
}

on *:kick:*: {
  if ($knick == NICKNAME) {
    mode $chan +b-ohv $nick $nick $nick 
    msg $chan I am banning and kicking $nic$nickk For attempting to ban a protected user!
    kick $chan $nick GoodBye!(Come back in twenty Minutes!-=- Kick Count: %kickss)
    .timer 1 12000 mode $chan -b $nick
  }
}

on *:deop:*: {
  if ($opnick == NICKNAME) {
    mode $chan +o $opnick
    mode $chan +b-ohv  $nick $nick $nick
    kick $chan $nick GoodBye! (Come back in twenty Minutes!-=- Kick Count: %kickss)
  }
}

Comments

Sign in to comment.
Repz   -  Dec 31, 2005

OK, I\'ll look into it, I\'ve been scripting a week so i don\'t know all commands like that, I only know very basic stuff :O

 Respond  
UK-Sw1ft   -  Dec 31, 2005

or you just use $istok, if ($istok(NICKNAME1 NICKNAME2 ect, $bnick,32)) { . works just as gd.

 Respond  
CaRe_Taker   -  Dec 30, 2005

Coulndt you have that reading from a txt file on protected users ?

 Respond  
Repz   -  Dec 30, 2005

One thing i did think of was, Were it says, If ($bnick == NICKNAME) {, i think its possible to use multi protection by changing it to, ($bnick == NICKNAME) || ($bnick == NICKNAME2) {

Ill try that and if it works ill update it, That should make the script a lil more better,, cos its then multi users.

 Respond  
Repz   -  Dec 30, 2005

Well, One reason is I have been scripting for almost 9 days, And for me that snippet like my other two is pretty advanced for me, I will learn how to do it in a while, Sorry :|

 Respond  
RoninWarrior   -  Dec 30, 2005

why not use levels and have it chrck to see if the level is there then peroform the command so it can protect more then 1 nick ?

 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.