bandi94 Posted July 6, 2011 Share Posted July 6, 2011 i downloaded the anti_flood form comunity but if players writ a msg 2 times they get a warning and if they type again the text normaly need to get muted but they get 5-6 warnings and .... they spam ( i set maximum msg to 2 ) so i decided to make my own antispam but i used "onPlayerChat"....... local msg =getPlayerMessage but msg returns nil what function can i use to get the message (text) they write.? Link to comment
JR10 Posted July 6, 2011 Share Posted July 6, 2011 addEventHandler("onPlayerChat", root, function(msg, msgType) msg is defined as the message the player typed. Link to comment
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