mommytellme Posted May 22, 2014 Share Posted May 22, 2014 I would like to make personal, on short distance visible only. Link to comment
csiguusz Posted May 22, 2014 Share Posted May 22, 2014 (edited) Read: https://wiki.multitheftauto.com/wiki/OnPlayerChat There's a small example: addEventHandler ( "onPlayerChat", root, function ( msg, msgType ) if msgType == 1 then cancelEvent () -- cancel default /me -- then you can handle the message as you want end end ) Edited May 22, 2014 by Guest Link to comment
Karuzo Posted May 22, 2014 Share Posted May 22, 2014 Change msgType == 2 to msgType == 1 Link to comment
csiguusz Posted May 22, 2014 Share Posted May 22, 2014 Sorry, there was a typo. Copy my code again. Edit: Ah, thanks Krzo, you were faster. Link to comment
mommytellme Posted May 22, 2014 Author Share Posted May 22, 2014 It does not act further < It's server-side? Link to comment
csiguusz Posted May 22, 2014 Share Posted May 22, 2014 Yes, If you'd have read the wiki page I gave you, you'd know it. Link to comment
mommytellme Posted May 22, 2014 Author Share Posted May 22, 2014 So, I know about it. I was asked only, in order to make sure . Link to comment
csiguusz Posted May 22, 2014 Share Posted May 22, 2014 That's okay. But you can trust the wiki. If it says serverside then it is serverside. 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