Hello.
I would like to know, how to set up, so if user writes a command, and the second variable is something else than -cm1 -cm2 or -cm3 it shows - Usage : !command -cm1 -cm2 or -cm3
If you didnt understand look at this.

Code:
on *:TEXT:!command*:*:{
  if ($2 == -cm1) { msg $nick Hello one | halt }
  if ($2 == -cm2) { msg $nick Hello two | halt }
  if ($2 == -cm3) { msg $nick Hello three | halt }

And so if user writes something like !command -cm4 or !command -whatever it shows - Usage : !command -cm1 -cm2 or -cm3

Last edited by spermis; 30/01/09 04:18 PM.