Advertisement
xKevinn

Untitled

Aug 10th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. Set(&savechat,%@&chatclean%)
  2. IFMATCHES(%&savechat%,"([a-z0-9\-_]{3,16}): (.+))
  3. Set(@&spam[0],%@&spam[1]%)
  4. Set(@&spam[1],%@&spam[2]%)
  5. Set(@&spam[2],%@&spam[3]%)
  6. Set(@&spam[3],%@&spam[4]%)
  7. Set(@&spam[4],%@&spam[5]%)
  8. Set(@&spam[5],%@&spam[6]%)
  9. Set(@&spam[6],%@&spam[7]%)
  10. Set(@&spam[7],%@&spam[8]%)
  11. Set(@&spam[8],%&savechat%)
  12. ENDIF
  13.  
  14. FOREACH(@&spam[],&msg,#count)
  15. IF(@&spam[%#count%] = %&savechat%)
  16. Inc(#total)
  17. ENDIF
  18. NEXT
  19.  
  20. IF(#total > 2)
  21. IFMATCHES(%&savechat%,"([a-z0-9\-_]{3,16}): (.+)",&pspam,1)
  22. INDEXOF(@&swarning[],#pos,%&pspam%)
  23. IF(#pos > -1)
  24. IF(@#mutetime[%#pos%] = 20)
  25. Echo(/tempban %&pspam% 2h Multiple warnings for spam)
  26. ELSE
  27. Echo(/mute %&pspam% %@#mutetime[%#pos%]%m)
  28. Inc(@#mutetime[%#pos%],5)
  29. IF(%@#mutetime[%#pos%]% = 20)
  30. Log(/m %&pspam% Please watch the spam. Next time you will be &ctemp banned &7for &c2 hours)
  31. ELSE
  32. Log(/m %&pspam% Please watch the spam. Next time you will be &cmuted &7for &c%@#mutetime[%#pos%]% minutes)
  33. ENDIF
  34. ENDIF
  35. UnSet(@&spam[])
  36. ELSE
  37. PUSH(@&swarning[],%&pspam%)
  38. INDEXOF(@&swarning[],#pos,%&pspam%)
  39. Set(@#mutetime[%#pos%],5)
  40. Echo(/f c p)
  41. Wait(5t)
  42. Echo(%&pspam% - Please watch the spam.)
  43. UnSet(@&spam[])
  44. ENDIF
  45. ENDIF
  46. ENDIF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement