mIRC Home    About    Download    Register    News    Help

Print Thread
#271614 01/05/23 09:45 PM
Joined: Apr 2005
Posts: 111
X
Vogon poet
OP Offline
Vogon poet
X
Joined: Apr 2005
Posts: 111
on *:open:?:{
echo -a $nick
if $nick iswm %permit { .echo -a caca | halt }
else {
echo -a 5812321421412 $nick te mando privado $2- | set %qks $Nick | msgs
}
}

alias msgs {
.notice %qks 58 4,1|9|11|13|8|7|4| Hola Perdon -No-Acepto privado 4,1|9|11|13|8|7|4|
//echo -a %qks %textq
.closemsg %qks
}

.Query
..permitir : //set %permit $addtok(%permit,$snick(#,1),44)
..bloquear : //set %block $addtok(%block,$snick(#,1),44)

doesnt work any help please

XGamerAMD #271615 02/05/23 12:45 PM
Joined: Jan 2012
Posts: 301
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Jan 2012
Posts: 301
Originally Posted by XGamerAMD
doesnt work any help please
From this meager description of the request, it is difficult to understand what is not working and how exactly you want your script to work, so you can only guess.

Nevertheless, if I understood your idea correctly from the code snippet provided, then after making some corrections and changes, I ended up with this code:
Code
menu nicklist {
  Query
  .Allow -> $snick(#,1): set %qallow $addtok(%qallow,$snick(#,1),44) | echo -a 05Allow:12 %qallow
  .Block -> $snick(#,1): set %qblock $addtok(%qblock,$snick(#,1),44) | echo -a 05Block:12 %qblock
}
on *:OPEN:?:*:{
  if ($istok(%qblock,$nick,44)) {
    .timerCLOSE -m 1 0 close -m $nick | echo -a $nick :: User from the blocked list :: $1- | msg1 $nick
  }
  elseif ($istok(%qallow,$nick,44)) { .echo $nick $nick :: User from the allowed list :: }
  else { echo $nick $nick :: User not included in any lists :: | msg2 $nick }
}
alias -l msg1 {
  .query $1 58 4,1|9|11|13|8|7|4| Hello. I'm sorry, I don't accept private messages. 4,1|9|11|13|8|7|4|
}
alias -l msg2 {
  .query $1 58 4,1|9|11|13|8|7|4| Hello. This is an auto answering. Please wait for my response. 4,1|9|11|13|8|7|4|
}

I hope this is exactly what you wanted to do, but you did not succeed. Compare this code with yours and try to understand what has changed and how it works.


🕮 You can also study all the necessary information on the elements and commands used in the help documentation:



🌐 http://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples
Epic #271616 02/05/23 05:28 PM
Joined: Apr 2005
Posts: 111
X
Vogon poet
OP Offline
Vogon poet
X
Joined: Apr 2005
Posts: 111
thnx fot that


Link Copied to Clipboard