Jump to content

tag


yoya99

Recommended Posts

You can use the event onPlayerChat, and inside that event you need to use cancelEvent. The code would be something like this:

addEventHandler ( "onPlayerChat", root, function ( msg, type )  
    if ( type == 2 ) then 
        cancelEvent ( ); 
    else 
        return false; 
    end 
    local name = getPlayerName ( source ):gsub ( "#%x%x%x%x%x%x", "" ); 
    outputChatBox ( "(Group) "..name..": "..msg, root, 255, 255, 255 ); 
end ) 

Link to comment

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