Jump to content

Welcome messeges


Recommended Posts

addEventHandler ( "onPlayerJoin", getRootElement, function() local name = getClientName ( source ) outputChatBox ( "Welcome " .. name .. " to INSERT_SERVER_NAME_HERE", source, 255, 255, 255 ) end ) 

you can change the color to anything you like ;)

EDIT: moo.. hankey beat me to it :P

EDIT2: fixed

Edited by Guest
Link to comment
addEventHandler ( "onPlayerJoin", getRootElement, function() local name = getClientName outputChatBox ( "Welcome " .. name .. " to INSERT_SERVER_NAME_HERE", source, 255, 255, 255 ) end ) 

you can change the color to anything you like ;)

EDIT: moo.. hankey beat me to it :P

you forgot to add which player's name it has to get.

But anyway, the one on the wiki is fine :P

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