Vice City Multiplayer

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

Title: How to add the script in GUS9.0 (Commands) HELP!
Post by: Dudu on January 04, 2009, 06: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, 10:03:16 pm
 
Code: [Select]
}
  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.