Guest User

Untitled

a guest
Oct 22nd, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. on $*:TEXT:/^[!@.]masspm/Si:#blitz-private:{
  2. if ($nick !isop $chan) {
  3. notice $nick Only Ops can use this command.
  4. halt
  5. }
  6. if (%flood) {
  7. notice $nick You can only use this command once every 10 seconds.
  8. halt
  9. }
  10. set -z %flood 10
  11. notice $nick $2-
  12. $msgall($chan,$2-)
  13. }
  14.  
  15.  
  16.  
  17. alias msgall {
  18. ;$1 is channel, $2- is message
  19. var %a = 1
  20. var %b
  21. while (%a <= $nick($1,0)) {
  22. %b = %b $+ $nick($1,%a) $+ $chr(44)
  23. if ($calc(%a % 10) == 0) {
  24. /timer 1 $calc((%a - 10) * 3) $($+(msg,$chr(32),$left(%b,-1),$chr(32),$2-))
  25. %b = $null
  26. }
  27. inc %a
  28. }
  29. if (%b && %a > 10) {
  30. /timer 1 $calc((%a - 9) * 3) $($+(msg,$chr(32),$left(%b,-1),$chr(32),$2-))
  31. }
  32. else if (%b && %a <= 10) {
  33. $($+(msg,$chr(32),$left(%b,-1),$chr(32),$2-))
  34. }
  35. }
Add Comment
Please, Sign In to add comment