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).