Jump to content

help script.


Recommended Posts

Make sure it's a server side and if there's any problem use debug .

local aTable = { 
   -- ['Word'] = { 'Out put of it' }, 
    ['bitch'] = { 'I Love You' }, 
} 
  
addEventHandler('onPlayerChat',root, 
    function ( Massege ) 
        local r,g,b = getPlayerNametagColor ( source ) or 255,255,255 
        for v in pairs ( aTable ) do 
         if string.find ( Massege,v ) then 
            cancelEvent (  ) 
                outputChatBox ( ' '..getPlayerName ( source )..' : '..aTable [ v ] [ 1 ]..' ',root,r,g,b )  
            end 
        end 
    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...