Timer Admin/op ECT. V.3.1

By Weasel on May 22, 2009

say !timerop
!timeradm <seconds?
!timerhp <nick
!timerv

**YOU REQUEST AND YOU RECIVE! NOW ONLY OPERATORS CAN USE THIS COMMAND****
%%NEW NOW HOPS CAN USE THS%%

on *:text:!timerop*:#: {
  if ($nick isop #) { mode $chan +o $2 | timer1 1 $3 mode $chan -o $2 }
  if ($nick ishop #) { mode $chan +o $2 | timer1 1 $3 mode $chan -o $2 }
}
on *:text:!timeradm*:#: {
  if ($nick isop #) { mode $chan +a $2 | timer1 1 $3 mode $chan -a $2 }
  if ($nick ishop #) { mode $chan +a $2 | timer1 1 $3 mode $chan -a $2 }
}
on *:text:!timerhp*:#: {
  if ($nick isop #) { mode $chan +h $2 | timer1 1 $3 mode $chan -h $2 }
  if ($nick ishop #) { mode $chan +h $2 | timer1 1 $3 mode $chan -h $2 }
} 
on *:text:!timerv*:#: {
  if ($nick isop #) { mode $chan +v $2 | timer1 1 $3 mode $chan -v $2 }
  if ($nick ishop #) { mode $chan +v $2 | timer1 1 $3 mode $chan -v $2 }
}

Comments

Sign in to comment.
Spanky   -  May 29, 2009

*[size=29]me lols [/size]*

 Respond  
Weasel   -  May 29, 2009

me notes that weasel is bad at learning new things :p

/me is considering deleting PATX

 Respond  
PATX   -  May 28, 2009

me notes that weasel is bad at learning new things :p

 Respond  
Weasel   -  May 27, 2009

maybe he needs to google bbcode
i don't need to <_<

 Respond  
Spanky   -  May 27, 2009

[size=20] maybe he needs to google bbcode [/size]

 Respond  
Spanky   -  May 27, 2009

i dont think he will [.quote][./quote] [.code] [./code]

just take the . out >.>

 Respond  
napa182   -  May 26, 2009

[quote][quote][quote][quote][quote][quote][quote]

it's hard for Weasel to understand things

[/quote][/quote][/quote][/quote][/quote][/quote][/quote]

do ya think he will get it now??? ;x

 Respond  
sunslayer   -  May 26, 2009

you type that in the comment box ex:

{code}codes are soooo cool.
{/code}
is this:

codes are soooo cool.

again change { and } to [ and ]

 Respond  
Weasel   -  May 26, 2009

don't get it

 Respond  
sunslayer   -  May 26, 2009

for codes {code} and {/code}
quotes: {quote} and {/quote}
just replace { } with [ ] (dont hold shift)

 Respond  
napa182   -  May 26, 2009

another thing with the timers you used if you say did !timerop nick then you did !timerop someother nick it would reset the timer so you should use somthing like this

$+(.,timer,.,$2) 1 $3

that way it will set a timer for each nick you mode, and not reset them.

 Respond  
Weasel   -  May 26, 2009

how do you do the thing where it says Code: (then in yellow some code?)

 Respond  
Weasel   -  May 26, 2009

Hmm. do you want if regular users try and use it it kicks them??

 Respond  
napa182   -  May 26, 2009

@Kirbeh_Pr0nz
um on ur ex: you have

if ($nick isop #) && ($nick ishop #)

and that wont work unless you have both +o and +h modes

you should have used

if ($nick isop #) || ($nick ishop #)

or better yet

if ($nick(#,$nick,oh))
 Respond  
Kirbeh_Pr0nz   -  May 26, 2009

something else to make your recent code shorter.

on *:text:!timerop*:#: {
  if ($nick isop #) { mode $chan +o $2 | timer1 1 $3 mode $chan -o $2 }
  if ($nick ishop #) { mode $chan +o $2 | timer1 1 $3 mode $chan -o $2 }
}

can be

on *:text:!timerop*:#: {
  if ($nick isop #) || ($nick ishop #) { mode $chan +o $2 | timer1 1 $3 mode $chan -o $2 }
 Respond  
PATX   -  May 25, 2009

cool. i think it is ur first KINDA useful one lol.

 Respond  
Kirbeh_Pr0nz   -  May 23, 2009

ok, i completely redid this snippet.

on *:text:*:#: {
  if (!$3) { halt }
  elseif ($1 == !timerop) {
    if ($nick isop $chan) {
      if ($2 isop $chan) { halt }
      else mode # +o $2 $3 | .timerOP 1 $3 mode # -o $2 
    }
    else .notice $nick You are NOT allowed to use this command
  }
  elseif ($1 == !timeradm) {
    if ($nick isop $chan) {
      if ($2 isprotect $chan) { halt } 
      else mode # +a $2 $3 | .timerADM 1 $3 mode # -a $2 
    }
    else .notice $nick You are NOT allowed to use this command
  }
  elseif ($1 == !timerhop) {
    if ($nick isop $chan) { 
      if ($2 ishop $chan) { halt }
      else mode # +h $2 $3 | .timerHOP 1 $3 mode # -h $2 
    }
    else .notice $nick You are NOT allowed to use this command
  }  
  elseif ($1 == !timervce) {
    if ($nick isop $chan) {
      if ($2 isvoice $chan) { halt }
      else mode # +v $2 $3 | .timerVCE 1 $3 mode # -v $2 
    }
    else .notice $nick You are NOT allowed to use this command
  }
}

here, if a person is already voiced, and u use the !timervce command on that nick, it will halt, do to the fact that it will take the voice away after the given amount of time. Same goes for ops, admins, and halfops. Only Ops are allowed to use these commands. also it will halt if you do not specify a time (in seconds).

 Respond  
Jethro   -  May 23, 2009

Keep it up, Weasel. I know you ain't no quitter.

 Respond  
slacker   -  May 22, 2009
on $@*:text:/^!timer\s([oahv]{1})\s(\w+)\s(\d+)$/iS:#: { if ($nick(#,$nick,oh) && $regml(2) ison #) { mode # $+(+,$regml(1)) $regml(2) | $+(.,timer,.,$regml(2)) 1 $calc($regml(3) *60) mode $chan $+(-,$regml(1)) $regml(2) } }

trigger !timer
ex: !timer v Weasel 30

 Respond  
sunslayer   -  May 22, 2009

atleast this code is some what useful

u can get rid of all the /'s btw

maybe add so that only ops/hops can use it?

 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.