yToPzz Posted July 18, 2022 Posted July 18, 2022 this is an anti disclosure and even the player being kicked the message is still sent can anyone solve it? function onPlayerChat(msg,type) if (msg:lower():find("mtasa") or msg:find("://")) and msg:find("%d") then cancelEvent() source:kick("Divulgação!") end end addEventHandler("onPlayerChat", root, onPlayerChat)
Tekken Posted July 18, 2022 Posted July 18, 2022 function onPlayerChat(msg,type) if (msg:lower():find("mtasa") or msg:find("://")) or msg:find("%d") then --the 3rd operation was and instead of or :) cancelEvent() source:kick("Divulgação!") end end addEventHandler("onPlayerChat", root, onPlayerChat) This should work
yToPzz Posted July 18, 2022 Author Posted July 18, 2022 1 hour ago, Tekken said: function onPlayerChat(msg,type) if (msg:lower():find("mtasa") or msg:find("://")) or msg:find("%d") then --the 3rd operation was and instead of or :) cancelEvent() source:kick("Divulgação!") end end addEventHandler("onPlayerChat", root, onPlayerChat) This should work Thanks
yToPzz Posted July 18, 2022 Author Posted July 18, 2022 6 hours ago, Tekken said: function onPlayerChat(msg,type) if (msg:lower():find("mtasa") or msg:find("://")) or msg:find("%d") then --the 3rd operation was and instead of or :) cancelEvent() source:kick("Divulgação!") end end addEventHandler("onPlayerChat", root, onPlayerChat) This should work solved it but it doesn't just block mtasa:// it blocks any type of bind
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now