fast_and_furius Posted February 20, 2008 Posted February 20, 2008 hi i will like to know if any one has a script that tells you: Wellcome nickoftheplayer to servername In the chat plese it will realy help me My new name is: [PS]ThePro Whe have 4 servers!!!!! Pothole Studios is back in buissnes! if my signature is too big pm me but dont just delete it plese.
Mr.Hankey Posted February 20, 2008 Posted February 20, 2008 http://development.mtasa.com/index.php?title=OnPlayerJoin the example there is exactly what you want...
norby89 Posted February 20, 2008 Posted February 20, 2008 (edited) 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 EDIT2: fixed Edited February 21, 2008 by Guest
Jumba' Posted February 20, 2008 Posted February 20, 2008 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 you forgot to add which player's name it has to get. But anyway, the one on the wiki is fine
fast_and_furius Posted February 20, 2008 Author Posted February 20, 2008 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 i dont know what to do whit the script i dont know of scripts My new name is: [PS]ThePro Whe have 4 servers!!!!! Pothole Studios is back in buissnes! if my signature is too big pm me but dont just delete it plese.
50p Posted February 20, 2008 Posted February 20, 2008 Why don't you try reading this. - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
norby89 Posted February 22, 2008 Posted February 22, 2008 Copied here, from http://development.mtasa.com/index.php? ... PlayerJoin thank you captain obvious
Oli Posted February 22, 2008 Posted February 22, 2008 lol now now Proud member of Multi Theft Auto Founder of Full Metal Jacket Creator of MTA:mA:GRS http://www.mtafmj.com http://www.full-fat.com
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now