Jump to content

help


joedajoester

Recommended Posts

Posted

Whats wrong with this?

function connect() 
 outputChatBox("Hello, i am your assistant. You can ask me questions and i will perform tasks. You can even ask for a car, or weapon. You can also talk to me! Go ahead, have fun!", getRootElement(), 0, 255, 0) 
end 
addEventHandler("onPlayerConnect", getRootElement(), connect) 

Posted
function connect() 
 outputChatBox("Hello, i am your assistant. You can ask me questions and i will perform tasks. You can even ask for a car, or weapon. You can also talk to me! Go ahead, have fun!", source, 0, 255, 0) 
end 
addEventHandler("onPlayerJoin", getRootElement(), connect) 

"onPlayerConnect" event is when a player CONNECTS to the server, not when he joins.

Posted

Doesnt work i get no error.

function connect() 
 outputChatBox("Hello, i am your assistant. You can ask me questions and i will perform tasks. You can even ask for a car, or weapon. You can also talk to me! Go ahead, have fun!", source, 0, 255, 0) 
end 
addEventHandler("onPlayerJoin", getRootElement(), connect) 

Posted

make it with two outputChatBox

function connect() 
 outputChatBox("Hello, i am your assistant. You can ask me questions and i will perform tasks.", source, 0, 255, 0) 
 outputChatBox("You can even ask for a car, or weapon. You can also talk to me! Go ahead, have fun!", source, 0, 255, 0) 
end 
addEventHandler("onPlayerJoin", getRootElement(), connect) 

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