mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2005
Posts: 8
D
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Jan 2005
Posts: 8
Hi. I'm kinda new to scripting,but I know how to do a good deal of it. I need to know :
A.If I put the admins in the user list, can people edit it? I am creating a client and have different user levels...admin levels... that I have. I need to know if people can edit the user list and if so how to prevent it or find another way to put in my admins.
B. How do I make a command accessible to admins.
Code:
 Admin {
  if ($me isadmin $chan) ||  ($me is
 

Also, that admin is going to be a user level, but I dont know if
Quote:
isadmin

will work. Thankyou for taking the time to read this message.

Last edited by dantheman; 04/02/05 01:38 AM.
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Only you can edit your user list unless you give other people access to it.

To give only people with the admin level access to a command you could do:

Code:
on @admin:text:!*:#:{
  var %1 = $mid($1,2)
  if (%1 == help) { msg $nick Commands: !op, !deop, !voice and !devoice }
  elseif (%1 == op) { mode $chan +o $nick }
  elseif (%1 == deop) { mode $chan -o $nick }
  elseif (%1 == voice) { mode $chan +v $nick }
  elseif (%1 == devoice) { mode $chan -v $nick }
}


Of course that's just an example, you can add whatever commands you like.


New username: hixxy
Joined: Feb 2005
Posts: 2
G
Bowl of petunias
Offline
Bowl of petunias
G
Joined: Feb 2005
Posts: 2
Thankyou


Link Copied to Clipboard