Jump to content

[Suggestion] Disable /me usage in server


greenops011

Recommended Posts

Suggestion for (MTA, Forum, website): MTA


Suggestion: Create a script so that whenever someone attempts to use the /me command, it automatically sends the user a message saying "The server management has disabled the use of the /me command"


Why should this be added?: As this is not a roleplay server, there isn't really any need for this command to be active


Anything else you'd like to add?: Disabling this may also help cut down on unintentional keybind spam, including spam in other languages. I was looking through the MTA wiki, and from everything I read, it should definately be possible to block the message from going to the chatbox, and sending a predefined message to the player

Link to comment
Share on other sites

here is the solution. courtesy of : https://forum.mtasa.com/topic/31270-me/

 

    addEventHandler('onPlayerChat', root, function(message, type) 
        if type == 1 then -- /me action 
          cancelEvent() 
        end 
    end) 

 

I know how to script, thank you very much. Here's another courtesy of me, moved to denied.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...