Author Topic: How to add the script in GUS9.0 (Commands) HELP!  (Read 2630 times)

0 Members and 1 Guest are viewing this topic.

Offline Dudu

  • Street Thug
  • *
  • Posts: 30
    • View Profile
How to add the script in GUS9.0 (Commands) HELP!
« on: January 04, 2009, 06:53:23 pm »
How to add the script commands in GUS9.0  ???
ex: /c ann <message>
Please help me!
« Last Edit: January 04, 2009, 07:26:07 pm by Dudu »

Offline [NoN]Toiletduck

  • Wiseguy
  • **
  • Posts: 65
    • View Profile
Re: How to add the script in GUS9.0 (Commands) HELP!
« Reply #1 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.
« Last Edit: January 04, 2009, 10:08:36 pm by [NoN]Toiletduck »