Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Set(&savechat,%@&chatclean%)
- Set(@&spam[0],%@&spam[1]%)
- Set(@&spam[1],%@&spam[2]%)
- Set(@&spam[2],%@&spam[3]%)
- Set(@&spam[3],%@&spam[4]%)
- Set(@&spam[4],%@&spam[5]%)
- Set(@&spam[5],%@&spam[6]%)
- Set(@&spam[6],%@&spam[7]%)
- Set(@&spam[7],%@&spam[8]%)
- Set(@&spam[8],%&savechat%)
- FOREACH(@&spam[],&msg,#count)
- IF(@&spam[%#count%] = %&savechat%)
- Inc(#total)
- ENDIF
- NEXT
- IF(#total > 2)
- IFMATCHES(%&savechat%,"([a-z0-9\-_]{3,16}): (.+)",&pspam,1)
- IFMATCHES(%&pspam%,"%PLAYER%|near|online")
- Stop()
- ENDIF
- INDEXOF(@&swarning[],#pos,%&pspam%)
- IF(#pos > -1)
- IF(@#mutetime[%#pos%] = 15)
- Echo(/tempban %&pspam% 2h Multiple warnings for spam)
- ELSE
- Echo(/mute %&pspam% %@#mutetime[%#pos%]%m)
- Inc(@#mutetime[%#pos%],5)
- IF(%@#mutetime[%#pos%]% = 15)
- Echo(/m %&pspam% Please watch the spam. Next time you will be &ctemp banned &7for &c2 hours)
- ELSE
- Echo(/m %&pspam% Please watch the spam. Next time you will be &cmuted &7for &c%@#mutetime[%#pos%]% minutes)
- ENDIF
- ENDIF
- UnSet(@&spam[])
- ELSE
- PUSH(@&swarning[],%&pspam%)
- INDEXOF(@&swarning[],#pos,%&pspam%)
- Set(@#mutetime[%#pos%],5)
- IF(@&cmode = "f");Echo(/f c p);Wait(5t);ENDIF
- Echo(&6%&pspam% &e- Please watch the spam.)
- UnSet(@&spam[])
- ENDIF
- ENDIF
- ENDIF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement