Yes it is, this is probably not the best solution but it should atleast make you aware of how you could do it wink

Code:
;%commandoutput is what the command should output
;%commandname would be the variable for the command name
;%commandname.switch is the variable we turn on/off to toggle the %commandname
;You can replace these variables with static text, if you do not wish to use variables

on *:TEXT:$(%commandname *):#: {
if ($2 == on) {
 if (%commandname.switch == $null) {
  var -g %commandname.switch = 1
  msg # %commandname is now turned ON
 }
  else {
  msg # %commandname is already turned ON
  }
}

if ($2 == off) {
 if (%commandname.switch != $null) {
  unset -g %commandname.switch
  msg # %commandname is now turned OFF
 }
  else {
  msg # %commandname is already turned OFF
  }
}
}

on *:TEXT:%commandname:#: {
 if (%commandname.switch == 1) { 
  msg # %commandoutput
 } 
  else {
  msg # Sorry but %commandname is currently turned OFF
  }
}


Last edited by TillableToast; 23/05/16 01:23 AM.

Life is potato.