Jump to content

How to disable /me?


Recommended Posts

Posted (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 by Guest

Owner of [HUN]Magyar Play Szerver 1.4, IP: 31.220.43.153:22003

Posted

Sorry, there was a typo. Copy my code again.

Edit:

Ah, thanks Krzo, you were faster. :)

Owner of [HUN]Magyar Play Szerver 1.4, IP: 31.220.43.153:22003

Posted

That's okay. But you can trust the wiki. If it says serverside then it is serverside.

Owner of [HUN]Magyar Play Szerver 1.4, IP: 31.220.43.153:22003

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...