Erictemponi

Anti Adv

Oct 28th, 2021
389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.85 KB | None | 0 0
  1. local blockedWords = {
  2.     "[.]com", "[.]br", "[.]ml", "bit[.]ly", "servegame", "zapto", "wow", "pontocom", "pontobr",
  3.     "[.] com", "[.] br", "[.] ml", "bit[.] ly", "bit [.]ly",
  4.     "c o m", "[.] b r", "[.]b r", "[.] m l", "[.]m l", "b i t", "s e r v e g a m e", "z a p t o", "w o w",
  5.     "c  o  m", "b  r", "m  l", "b  i  t", "s  e  r  v  e  g  a  m  e", "z  a  p  t  o", "w  o  w"
  6. }
  7.  
  8. local function antiPublishing (event, player, msg)
  9.     string.lower(msg)
  10.     for i,v in ipairs(blockedWords) do
  11.         if (string.find(msg, v) ~= nil) then
  12.             player:SendBroadcastMessage("Você não pode divulgar outros sites/servidores aqui.")
  13.             return false
  14.         end
  15.     end
  16. end
  17. RegisterPlayerEvent(18, antiPublishing)
  18. RegisterPlayerEvent(19, antiPublishing)
  19. RegisterPlayerEvent(20, antiPublishing)
  20. RegisterPlayerEvent(21, antiPublishing)
  21. RegisterPlayerEvent(22, antiPublishing)
Add Comment
Please, Sign In to add comment