Jump to content

I spawn somewhere different


swag_k_dog

Recommended Posts

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...