thgm Posted November 21, 2010 Share Posted November 21, 2010 function joinHandler() local x = 1611 local y = -1668 local z = 10 local skinID = 280 spawnPlayer(source, thePlayer, x, y, z, skinID) fadeCamera(source, true) setCameraTarget(source, source) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler) Link to comment
Aibo Posted November 21, 2010 Share Posted November 21, 2010 you have thePlayer passed to spawnPlayer function instead of X and skinID instead of rotation, therefore skin id is not passed at all. spawnPlayer(source, x, y, z, 0, skinID) Link to comment
thgm Posted November 21, 2010 Author Share Posted November 21, 2010 Thank you btw: how to put team? i need to add that to that script or to create new?: spawnTeam = createTeam ("Teamname", 255, 0, 0) -- Create team to spawn. function spawnOnLogin (prevA, curA, autoLogin) outputChatBox ("Welcome to ...", source, 255, 0, 0, false) spawnPlayer (source, 0, 0, 5, 0, math.random (0,288), 0, 0, spawnTeam) -- spawns player with random skin fadeCamera (source, true) setCameraTarget (source, source) end addEventHandler("onPlayerLogin", getRootElement(), spawnOnLogin) 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