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)
function sendMessage2( messageclean, messageType)
if (string.find(messageclean, "i") and string.find(messageclean, "hate") and string.find(messageclean, "bot")) then
outputChatBox("Ill note that", source, 191, 62, 255)
end
end
addEventHandler("onPlayerChat",root,sendMessage2)
function sendMessage2( messageclean, messageType)
if (string.find(messageclean, "hi") and string.find(messageclean, "bot")) then
outputChatBox("Hello", source, 191, 62, 255)
end
end
addEventHandler("onPlayerChat",root,sendMessage2)
function sendMessage2( messageclean, messageType)
if (string.find(messageclean, "how") and string.find(messageclean, "are") and string.find(messageclean, "bot")) then
outputChatBox("I'm doing great", source, 191, 62, 255)
end
end
addEventHandler("onPlayerChat",root,sendMessage2)
function sendMessage2( messageclean, messageType)
if (string.find(messageclean, "i") and string.find(messageclean, "a") and string.find(messageclean, "infernus")) then
executeCommandHandler ( "sv infernus", source )
end
end
addEventHandler("onPlayerChat",root,sendMessage2)