}
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.