Lock/Unlock Input

By Nilbmar on May 12, 2014

Commands:
/lock
/unlock

;------Lock/Unlock Script------;
on *:INPUT:*: {
  if (%locked == yes) { 
    if (unlock isin $1-) {
      set %locked no
    }
    else { halt }
  }
}

alias lock { set %locked yes }
alias unlock { set %locked no }
;---End of Lock/Unlock Script---;

Comments

Sign in to comment.
Vegito   -  May 13, 2014
on *:INPUT:*: {
  if ($1 == /lock) set %locked 1
  elseif ($1 == /unlock || unlock isin $1-) set %locked 0
  if (%locked) halt
}
 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.