Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Vayan

Pages: [1]
1
mIRC/pawn Scripting / Re: How To !cmd to /c <cmd> ?
« on: February 07, 2009, 10:52:25 am »
The simpliest way for one command - is just put to it in checking of vcmp.command2 signals. Just add before the string
Code: [Select]
else vcmp.msg %id Error - Invalid System Command $+ , Type "!commands" for a list of commands!The code for checking say command:
Code: [Select]
  elseif ($2 == say) {
    if ($vcmp.cmdcheck(!say,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <text>
    else {
      var %a = 0
      while (%a <=  50) {
        if ($vcmp.name(%a) != Unknown) {
          vcmp.announce  %a  $3-
        }
        !inc %a
      }
    }
  }
Good luck!

Pages: [1]