3B00DG4MER Posted March 25, 2014 Posted March 25, 2014 Hello,Today i made Spawn System in a Hospital,Then i have saw that there is Two Hospitals in LS How do i get the Nearest Hospital and Spawn There(The Spawn Part Easy! )
3B00DG4MER Posted March 25, 2014 Author Posted March 25, 2014 getDistanceBeetwenPoints3D I think i can made it Wait if i can't i'll Send u the Code
3B00DG4MER Posted March 25, 2014 Author Posted March 25, 2014 getDistanceBeetwenPoints3D Can you fix that ?! addEventHandler ( "onPlayerWasted", root, function () local x,y,z = getElementPosition( source ) h1 = getDistanceBetweenPoints3D ( x, y, z, 1177.60034117969, -1325.5480957031, 15.078706741333 ) h2 = getDistanceBetweenPoints3D ( x, y, z, 2026.0512695313, -1407.1281738281, 17.190994262609 ) if h1 > h2 then setElementPosition ( source, 1177.60034117969, -1325.5480957031, 15.078706741333 ) else setElementPosition ( source, 2026.0512695313, -1407.1281738281, 17.190994262609 ) end end)
TheGamingMann Posted March 26, 2014 Posted March 26, 2014 You are just setting their positions. I am new to this so it may be wrong but you want to "spawnPlayer" instead of setting the position when they die.
cheez3d Posted March 26, 2014 Posted March 26, 2014 You should have used the search button. viewtopic.php?f=91&t=72910
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