prog

saybermDmrc

Jan 10th, 2010
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. ;script pour auto-voice with mode +mD
  2. raw 355:*:{
  3. if ($4 != $null) {
  4. set %chandeaf $3
  5. userhost $4-6
  6. }
  7. halt
  8. }
  9. raw 366:*:{ halt }
  10. ;script pour activation/d�sactivation auto du timer deaf si les modes +mD set/unset par un Op ( modif: 10 janvier 2010 � 22:25 )
  11. on 1:MODE:#:{
  12. if (mn !isin $chan($chan).mode) {
  13. if (Dm isin $chan($chan).mode && $timer(deaf $+ $chan) == $null) {
  14. if ($me isop $chan) { .timerdeaf $+ $chan 0 12 .names -d $chan | msg $chan * autovoice ON (deaf) }
  15. elseif ($eval($+(%,acc.,$chan),2) >= 25) { .timerdeaf $+ $chan 0 12 .names -d $chan | msg $chan * autovoice ON (deaf) }
  16. else { notice @ $+ $chan ATTENTION: le chan $chan est en mode Deaf! }
  17. }
  18. elseif ($timer(deaf $+ $chan) != $null && Dm !isin $chan($chan).mode) { .timerdeaf $+ $chan off | msg $chan * autovoice OFF (no deaf) }
  19. }
  20. elseif ($timer(deaf $+ $chan) != $null) { .timerdeaf $+ $chan off | msg $chan * autovoice OFF (Max modesC exceeded) }
  21. }
  22. raw 302:*:{
  23. if (%chandeaf != $null) {
  24. var %i = 1, %voicenick
  25. while (%i < $0) {
  26. inc %i
  27. if (+ isin $eval($+($,%i),2)) { var %z = $replace($eval($+($,%i),2),=+,!) }
  28. else { var %z = $replace($eval($+($,%i),2),=-,!) }
  29. var %nname = $gettok(%z,1,33)
  30. if ($level(%z) == 4) {
  31. if (x ison %chandeaf && $eval($+(%,acc.,%chandeaf),2) >= 75) { .msg x ban %chandeaf $mask(%z,2) 40D 100 Proxy blacklisted -sayber script- }
  32. elseif ($me isop %chandeaf) {
  33. timer 1 0 .raw kick %chandeaf %nname Proxy
  34. if ($mask(%z,4) !isban %chandeaf) { .ban -u3600 %chandeaf $mask(%z,4) | set -u10 $+(%,$mask(%z,4)) %chandeaf }
  35. }
  36. }
  37. elseif ($level(%z) == 6) {
  38. if (x ison %chandeaf && $eval($+(%,acc.,%chandeaf),2) >= 100) { .msg x ban %chandeaf $mask(%z,2) 6 100 blacklisted -sayber script- }
  39. elseif ($me isop %chandeaf) { timer 1 0 .raw kick %chandeaf %nname blacklisted | .ban -u3600 %chandeaf $address(%n.name,2) }
  40. }
  41. else { set %voicenick %voicenick %nname }
  42. }
  43. if ($me isop %chandeaf) { .mode %chandeaf +vvvvvv %voicenick }
  44. elseif ($eval($+(%,acc.,%chandeaf),2) >= 25) { .msg x voice %chandeaf %voicenick }
  45. unset %chandeaf
  46. }
  47. }
  48.  
Add Comment
Please, Sign In to add comment