bamby12 Posted February 7, 2011 Posted February 7, 2011 Ok i don't know if its just me or I've missed something but this script wont spawn the player: function spawn (player) spawnPlayer (player, 0, 0, 5) fadeCamera (player, true) setCameraTarget (player, player) end addEventHandler("onPlayerConnect", getRootElement(), spawn) Any ideas guys?
DakiLLa Posted February 7, 2011 Posted February 7, 2011 You should use 'onPlayerJoin' event instead, beacuse 'onPlayerConnect' fires when someone is just connecting to your server. function spawn() --'source' is the player that have joined the server spawnPlayer (source, 0, 0, 5) fadeCamera (source, true) setCameraTarget (source, source) end addEventHandler("onPlayerJoin", getRootElement(), spawn)
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