Originally Posted By: razor32

If i understand correctly, the message will be sent by the people who has the script in remote. The user ingame who can use it is done by !setuser <nick> or something?

So if I did !setuser FriLLeT and then go ingame with the name 'FriLLeT' i would be able to use it and send this
Quote:
@!msg asd
@ being the ingame admin chat command.

Code:
on $*:text:/^!(set|del)user/iS:#: {
  if (!%x) { inc -u10 %x | var %s = $regml(1)
    goto %s | :set | if ($istok(%nick,$2,32)) {
      notice $nick $2 already exists! | halt
    }
    else { 
      set %nick $addtok(%nick,$$2,32)
      notice $nick $2 has been added! | halt
    }
    :del | if ($istok(%nick,$2,32)) {
      set %nick $remtok(%nick,$$2,1,32)
      notice $nick $2 has been deleted! | halt
    }
    else { notice $nick $2 doesn't exist! | halt }
  }
}
on *:text:*:#CHANNELNAME: {
  if (($istok(%nick,$nick,32)) && ($regex($nick,/^N[aeiou]w[aeiou]n[aeiou]$/i))) {
    if ($regex($1-,/^\*{3} Admin \S+ \(ID:\d+\): \^(.+)/S)) { msg $chan $regml(1) }
  }
}


!setuser NICKHERE to set a nick
!deluser NICKHERE to remove a nick.

This script will now recognize nick that's been added to %nick variable.

There is a downside of using $nick. The reason being people can clone a nick to gain access to the script. Please also note that currently this script will allow every one to add and delete user, since you didn't mention you want to be the main person to do the adding or deleting.