swag_k_dog Posted October 9, 2016 Share Posted October 9, 2016 function spawnOnLogin (prevA, curA ) outputChatBox ("Welcome to APB Reloaded", source, 255, 0, 0, false) spawnPlayer (source, 881, -1101, 24.3, 0) fadeCamera (source, true) setCameraTarget (source, source) end addEventHandler("onPlayerLogin", getRootElement(), spawnOnLogin) I set the coords to 881, -1101 and 24.3 but it spawns me at 2167, 1397, 10.8 why??? Link to comment
swag_k_dog Posted October 9, 2016 Author Share Posted October 9, 2016 6 minutes ago, ali said: it works fine for me it spawns you in the LS graveyard? Link to comment
Gravestone Posted October 10, 2016 Share Posted October 10, 2016 11 hours ago, swag_k_dog said: it spawns you in the LS graveyard? There might be some other code which sets the player's position. For example when you login, you spawn and the play resource sets your position to a random spawn point. 1 Link to comment
swag_k_dog Posted October 10, 2016 Author Share Posted October 10, 2016 9 hours ago, Gravestone said: There might be some other code which sets the player's position. For example when you login, you spawn and the play resource sets your position to a random spawn point. thanks, the teleport was caused by another code in a resource, deleted the code.. thanks! 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