mIRC Home    About    Download    Register    News    Help

Print Thread
Question concering != #13782 02/03/03 01:36 PM
Joined: Feb 2003
Posts: 20
F
fallen248 Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2003
Posts: 20
OK, i want members to be able to msg a bot and have the bot tell the member the chankey, well i have this so far and it works however i need it to NOT ALLOW people who's userlever does not equal either 1, 2 , or 3. ..What do i have to do to make that part work?


on *:TEXT:!chankey*:?:{
if (%userlevel == 1) {
.notice $nick The Current Channel Key is %chankey
}
elseif (%userlevel == 2) {
.notice $nick The Current Channel Key is %chankey
}
elseif (%userlevel == 3) {
.notice $nick The Current Channel Key is %chankey
}
elseif (%userlevel != 1,2,3) {
.notice $nick You Do Not have correct access to this command
}}

Re: Question concering != #13783 02/03/03 03:13 PM
Joined: Dec 2002
Posts: 2,985
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
(%userlevel != 1 && %userlevel != 2 && %userlevel != 3) {

Re: Question concering != #13784 02/03/03 04:29 PM
Joined: Dec 2002
Posts: 774
T
theRat Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
Code:
on *:TEXT:!chankey*:?:{
  if (%userlevel isnum 1-3) {
    .notice $nick The Current Channel Key is %chankey
  }
  else {
    .notice $nick You Do Not have correct access to this command
  }
}


But where do you set the %userlevel variable???
Everytime %userlevel(which is variable, did you mean $userlevel identifier??) is 1, 2 or 3, anyone can send !chankey to bot and get the key...


Code:
//if ( khaled isgod ) echo yes | else echo no