Allentus Posted October 14, 2012 Share Posted October 14, 2012 Hello people! I am currently running my Test server,with some small scripts made by me. So i would like to ask you about a explanation how to create a spawning point so when i join the server or anyone else to be spawned in one location. I would appreciate every tutorial or already done script from the Community! Thanks in advance! P.S;Hope this is the right section Link to comment
Woods. Posted October 14, 2012 Share Posted October 14, 2012 (edited) local spawnX, spawnY, spawnZ = 1959.55, -1714.46, 10 function joinHandler() spawnPlayer(source, spawnX, spawnY, spawnZ) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("Welcome to My Server", source) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler) Edited October 14, 2012 by Guest Link to comment
Baseplate Posted October 14, 2012 Share Posted October 14, 2012 function spawn () spawnPlayer(source, x, y, z) end addEventHandler("onPlayerConnect", root, spawn) Even Woods's code (Wiki ) works but I gave u the needed structure and you gotta change the x y and z Link to comment
Allentus Posted October 14, 2012 Author Share Posted October 14, 2012 Thanks a lot guys! Great community like always Please some free moderator feel free to lock the topic. Link to comment
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