Jump to content

help


joedajoester

Recommended Posts

Doesnt work, i get no error, and dont you need a command handler??

function sendMessage2( messageclean, messageType) 
 if string.find(messageclean, "i") and string.find(messageclean, "love") and string.find(messageclean, "bot") then 
  outputChatBox("i love you too!", source, 191, 62, 255) 
 end 
end 

Link to comment

I supposed you was using it with onPlayerChat event.

function sendMessage2( messageclean, messageType) 
    if (string.find(messageclean, "i") and string.find(messageclean, "love") and string.find(messageclean, "bot")) then 
        outputChatBox("i love you too!", source, 191, 62, 255) 
    end 
end 
addEventHandler("onPlayerChat",root,sendMessage2) 

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