Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: Dudu on January 04, 2009, 04:53:23 PM

Title: How to add the script in GUS9.0 (Commands) HELP!
Post by: Dudu on January 04, 2009, 04:53:23 PM
How to add the script commands in GUS9.0  ???
ex: /c ann <message>
Please help me!
Title: Re: How to add the script in GUS9.0 (Commands) HELP!
Post by: [NoN]Toiletduck on January 04, 2009, 08:03:16 PM
  }
  elseif ($2 == !ann) {
    if ($vcmp.cmdcheck(!ann,%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
      }
    }


I am not so sure what you want but this is a looped !announce cmd.
Oh and you have to add !ann to your vcmp.cmdcheck, otherwise you cannot put a limit on which players can use it.

;) Enjoy.