i am trying create an anti divulgation script, but don't works
my code:
function Divulguer (message,messageType)
if string.find ( message, "%d+.%d+.%d+.%d+:%d+" ) or string.find ( message, "%d+.%d+.%d+.%d+" ) or string.find ( message, "mtasa://" ) then
--banPlayer ( source, true, false, true, "x", 0 ) -- Removed For Testing....
outputChatBox ( "IP Found !", root )
else
outputChatBox ( "No IP Found !", root )
end
end
addEventHandler ( "onPlayerChat", root, Divulguer )