Jump to content

Help


Flipi

Recommended Posts

  • Moderators
Posted

oh sorry, my bad.

as far I know /me is already in mta. It isn't a resource.

messageType: An integer value representing the message type:

0: normal message

1: action message (/me)

2: team message

  • Moderators
Posted

But you can overwrite it with lua.*

  
addEventHandler( "onPlayerChat",root, 
function (msg,msgType) 
    if msgType == 2 then 
        outputChatBox(getPlayerName(source) .. " " .. msg,root,255,0,0) 
        cancelEvent() 
    end 
end) 

updated

Posted
But you can overwrite it with lua.*
  
addEventHandler( "onPlayerChat",root, 
function (msg,msgType) 
    if msgType == 2 then 
        outputChatBox(getPlayerName(source) .. " " .. msg,root,255,0,0) 
        cancelEvent() 
    end 
end) 

updated

:o! thanks

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