Quote:
I was making this basic script (Seen below)
And I was wondering... How can I do it so if the user in the channel is in admin.txt that he can access every command. But if the person isnt in admin.txt that he can only access +v / -v
Code:
 on *:TEXT:*:#: {
[color:red]if ($nick iswm $read(admin.txt,w,$+(*,$nick,*))) { [/color]
  if ($1 == +h) mode $chan +h $2 
  if ($1 == -h) mode $chan -h $2 
  if ($1 == +o) mode $chan +o $2 
  if ($1 == -o) mode $chan -o $2 
  if ($1 == +a) mode $chan +a $2 
  if ($1 == -a) mode $chan -a $2 
  if ($1 == +q) mode $chan +q $2 
  if ($1 == -q) mode $chan -q $2 
[color:red]}
else {[/color]
  if ($1 == +v) mode $chan +v $2 
  if ($1 == -v) mode $chan -v $2 
[color:red]}[/color] 
}