Jump to content

Chat


yToPzz

Recommended Posts

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)

 

Link to comment
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

Link to comment
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

Link to comment
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 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...