Mefisto_PL Posted January 12, 2012 Posted January 12, 2012 How Can I make a many spawns ? I want to create for example 6 others spawns.
Mefisto_PL Posted January 12, 2012 Author Posted January 12, 2012 more spawns ... 6 spawns for example.
Fentas Posted January 12, 2012 Posted January 12, 2012 Lets guess that you are probably want to use spawnPlayer. If you want to pick 1 random of 6 locations for your spawn, one of the ways to do it, is using math.random to get a random location from a table containing the x, y, z coordinates of every spawn location.
Thelastride Posted January 12, 2012 Posted January 12, 2012 Like this.Take x y z then put values closer to x value in math.random. spawnPlayer (source, math.random(0,5), 0, 5, 0, 29, 0, 0, spawnTeam)
Mefisto_PL Posted January 15, 2012 Author Posted January 15, 2012 I don't know anything about table.. Can anybody send me link to help or code?
Mefisto_PL Posted January 15, 2012 Author Posted January 15, 2012 I want to make six spawns on player login i have script to save skin and money ..
Thelastride Posted January 15, 2012 Posted January 15, 2012 Then take x y z of locations and put in setElementPosition(player,x,y,z) You must provide something or we can't help.
Mefisto_PL Posted January 15, 2012 Author Posted January 15, 2012 Hmm... It's a next way to make this with xml file and I prefere this way. Because I have a lot of places to 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