Guest User

Untitled

a guest
Jul 14th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 3.26 KB | None | 0 0
  1. on *:TEXT:.names *:#:{
  2.   if ($userlvl(%u) == $rootlvl ) {
  3.     if ($2 == on) {
  4.       if ($readini(settings.ini,%ch,names) == enabled) {
  5.         describe $chan .names command is already 4ON6
  6.       }
  7.       else {
  8.         writeini settings.ini %ch names enabled
  9.         describe $chan .names command 4ON6 now. (changed by $nick $+ )
  10.       }
  11.     }
  12.     if ($2 == off) {
  13.  
  14.       if ($readini(settings.ini,%ch,names) == disabled) {
  15.         describe $chan .names command is already 4OFF6.
  16.       }
  17.       else {
  18.         writeini settings.ini %ch names disabled
  19.         describe $chan .names command 4OFF6 now. (changed by $nick $+ )
  20.       }
  21.       halt
  22.       :error
  23.       reseterror
  24.       describe $chan unknown option!
  25.       halt
  26.     }
  27.   }
  28. }
  29. on *:TEXT:.names:#:{
  30.   if ($readini(settings.ini,%ch,names) == enabled) {
  31.     /names $chan
  32.     set %canreplay 0
  33.     timer 1 30 set %canreplay 1
  34.     set -z %namesabuse 600
  35.     writeini settings.ini %ch names disabled
  36.     timer 1 600 writeini settings.ini %ch names enabled
  37.   }
  38.   else describe $chan hey stop spam,you can use next names in $round($calc(%namesabuse / 60),0) $+ minutes!
  39. }
  40. on *:TEXT:.names:#:{
  41.   if ($readini(settings.ini,%ch,names) == enabled) {
  42.     /names $chan
  43.     set %canreplay 0
  44.     timer 1 30 set %canreplay 1
  45.     set -z %namesabuse 600
  46.     writeini settings.ini %ch names disabled
  47.     timer 1 600 writeini settings.ini %ch names enabled
  48.   }
  49.   else describe $chan hey stop spam,you can use next names in $round($calc(%namesabuse / 60),0) $+ minutes!
  50. }
  51.  
  52. alias -l writewhonamesmenu {
  53.   write -c Popup_Who_Names.txt Clear Window: clear $chr(36) $+ active
  54.   write Popup_Who_Names.txt -
  55.   write Popup_Who_Names.txt Close Window: window -c $chr(36) $+ active
  56. }
  57. alias modnameson {
  58.   .enable #rawnames
  59.   writewhonamesmenu
  60.   echo -a Modified /NAMES activated.
  61. }
  62. alias modnamesoff {
  63.   .disable #rawnames
  64.   if ($group(#rawnames).status == off) && ($group(#rawwho).status == off) .remove Popup_Who_Names.txt
  65.   echo -a Modified /NAMES deactivated.
  66. }
  67. alias modwhoon {
  68.   .enable #rawwho
  69.   writewhonamesmenu
  70.   echo -a Modified /WHO activated.
  71. }
  72. alias modwhooff {
  73.   .disable #rawwho
  74.   if ($group(#rawnames).status == off) && ($group(#rawwho).status == off) .remove Popup_Who_Names.txt
  75.   echo -a Modified /WHO deactivated.
  76. }
  77.  
  78.  
  79. #rawnames on
  80. raw 353:*: {
  81.   if (!$window(/names)) window -ik0n1z @/names Popup_Who_Names.txt
  82.   if (!$fline(@/names,*script made by Gummo*,1)) aline -hp 4 @/names Raw /NAMES script made by Gummo
  83.   aline -hp @/names $3 $+ : $4-
  84.   msg %ch [ $+ $remove($4-,@,+,Qfs,amoz,andy,kallek) $+ ]
  85.   halt
  86. }
  87. raw 366:*: {
  88.   if (!$window(/names)) window -ik0n1z @/names Popup_Who_Names.txt
  89.   aline -hp @/names $2 $+ : End of /NAMES list.
  90.   aline -hp @/names -
  91.   echo -a $chan $+ : End of /NAMES list.
  92.   halt
  93. }
  94. #rawnames end
  95.  
  96. #rawwho on
  97. raw 352:*: {
  98.   if (!$window(/who)) window -ik0n1z @/who Popup_Who_Names.txt
  99.   if (!$fline(@/who,*script made by Gummo*,1)) aline -hp 4 @/who Raw /WHO script made by Gummo
  100.   aline -hp @/who $+($2,: $6,!,$3,@,$4) * Realname: $9 * Server: $5
  101.   halt
  102. }
  103. raw 315:*: {
  104.   if (!$window(/who)) window -ik0n1z @/who Popup_Who_Names.txt
  105.   aline -hp @/who $2 $+ : End of /WHO list.
  106.   aline -hp @/who -
  107.   echo -a $2 $+ : End of /WHO list.
  108.   halt
  109. }
  110. #rawwho end
Add Comment
Please, Sign In to add comment