Kajamaz Posted March 4, 2012 Author Share Posted March 4, 2012 How do i set where players spawn after they die? Thanks :) Link to comment Share on other sites More sharing options...
Ruins of Hell Posted March 4, 2012 Share Posted March 4, 2012 Server-side:```' ********************************************' Default starting location [Server Only]Public Const START_MAP As Long = 1Public Const START_X As Long = 5Public Const START_Y As Long = 5```(Note that this will also change their start location!)* * *To just change the on death location, but not the start location, find:```Call PlayerWarp(index, START_MAP, START_X, START_Y)```and change them to whatever you want (START_MAP is map, START_X is x, START_Y is y).* * *But if you want to change it for a specific map, you can edit the BootMap, BootX, and BootY in Properties of the map editor (or you could do it for every map, but I highly recommend the above solutions). Link to comment Share on other sites More sharing options...
Kajamaz Posted March 4, 2012 Author Share Posted March 4, 2012 @Soul:> Server-side:> > ```> ' ********************************************> ' Default starting location [Server Only]> Public Const START_MAP As Long = 1> Public Const START_X As Long = 5> Public Const START_Y As Long = 5> > ```> (Note that this will also change their start location!)> > * * *> > To just change the on death location, but not the start location, find:> ```> Call PlayerWarp(index, START_MAP, START_X, START_Y)> > ```> and change them to whatever you want (START_MAP is map, START_X is x, START_Y is y).> > * * *> > But if you want to change it for a specific map, you can edit the BootMap, BootX, and BootY in Properties of the map editor (or you could do it for every map, but I highly recommend the above solutions).UMM, what do i exactly modify? and how do i modify any files??? Link to comment Share on other sites More sharing options...
Ruins of Hell Posted March 4, 2012 Share Posted March 4, 2012 @Kajamaz:> UMM, what do i exactly modify? and how do i modify any files???[Do you have Visual Basic 6 installed? If not, read this guide.](http://www.touchofdeathforums.com/smf/index.php/topic,68399.msg736833.html#msg736833) Link to comment Share on other sites More sharing options...
Kajamaz Posted March 5, 2012 Author Share Posted March 5, 2012 @Soul:> [Do you have Visual Basic 6 installed? If not, read this guide.](http://www.touchofdeathforums.com/smf/index.php/topic,68399.msg736833.html#msg736833)Ok, i will install, but what files do i modify? Link to comment Share on other sites More sharing options...
Justn Posted March 5, 2012 Share Posted March 5, 2012 After u get vb6 and install it you just open the server.vbp or client.vbp to edit things nothing else Link to comment Share on other sites More sharing options...
Kajamaz Posted March 10, 2012 Author Share Posted March 10, 2012 OK, BUT WHAT FILES, I OPENED IT, THERE IS LIKE A CRAP LOAD! Link to comment Share on other sites More sharing options...
TWIN BLADEZ Posted March 10, 2012 Share Posted March 10, 2012 In your server.vbp right at the bottom of "ModConstants". Link to comment Share on other sites More sharing options...
Ruins of Hell Posted March 10, 2012 Share Posted March 10, 2012 @Kajamaz:> OK, BUT WHAT FILES, I OPENED IT, THERE IS LIKE A CRAP LOAD!Control + F and then selecting 'Current Project' will let you search the entire project.[And here it is in slideshow form.](http://php.webuda.com/eclipse/guide/ctrlf/slideshow.html) Link to comment Share on other sites More sharing options...
Jimmy93 Posted March 10, 2012 Share Posted March 10, 2012 Open map editor go to propertise then change the BOOTx/y/map or what it is to where you want them to pop up after dying? Link to comment Share on other sites More sharing options...
Kajamaz Posted March 10, 2012 Author Share Posted March 10, 2012 Thanks, but where is Call PlayerWarp(index, START_MAP, START_X, START_Y) located, thanks :) Link to comment Share on other sites More sharing options...
Ruins of Hell Posted March 10, 2012 Share Posted March 10, 2012 @Jimmy93:> Open map editor go to propertise then change the BOOTx/y/map or what it is to where you want them to pop up after dying?Yeah, I mentioned that in my above post. But you'd have to do this for every map.@Kajamaz:> Thanks, but where is Call PlayerWarp(index, START_MAP, START_X, START_Y) located, thanks :)I made this as obvious as I could. Open up server.vbp. Now press and hold Control and then press F. Then follow the tutorial link I posted above [here it is again](http://php.webuda.com/eclipse/guide/ctrlf/slideshow.html). Then type in "Call PlayerWarp(index, START_MAP, START_X, START_Y)". If you did it right it should be highlighted. Finally you can change START_MAP, START_X, and START_Y to whatever you want. For example, if I wanted to them to spawn on Map 4, X 15, and Y 26, I would remove the old one and change it to:```Call PlayerWarp(index, 4, 15, 26)```Then compile the server. Go to the top-left corner and click "File". Then click "Make server.exe". Rejoice. Link to comment Share on other sites More sharing options...
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