Jump to content

Help me with the first war server on mta.


Recommended Posts

I am curently working on the first war server on mta. I dont know how to set spawnpoints. Can someone please show me how to do this. If you want i will make you admin. I need four spawn points that i can set as diffrent team spawns when i figure out how to make teams.

team 1

206.34617614746

1869.1193847656

26.802911758423

team 2

395.21270751953

2531.3767089844

19.408805847168

team 3

-494.02850341797

2604.3735351563

62.109283447266

team 4

-875.64477539063

1987.8249511719

62.585556030273

thanks for the help.

This is my second server and im still dumb.

mta wiki didnt help me at all.

Link to comment

There's a spawnmanager resource which should come with MTA. I can remember it being buggy last time I used it, back when I started, (aah, the good ol days) but I guess it should work fine right now. Otherwise, I'll just try to fix it.

For as far as I can see, you can use either createSpawnpoint, or the map syntax which appears to be as follows:

<spawnpoint posX="" posY="" posZ="" [ rot="" skin="" interior="" dimension="" ] />

And you can use them with spawnPlayerAtSpawnpoint.

EDIT: After a peek in the resource, I can say it's far from fine. The code looks like a huge mess, and there are bugs like:

...
setElementData ( sp, "interior", rot )
setElementData ( sp, "dimension", interior )
...

Which of course doesn't make any sense. I'll just try re-writing it, having to make your own spawnpoints system shouldn't be necessary.

Link to comment

I understand i shouldnt need my own spawn resource but since its the first mta war server and im going to have to have a place were you pick what team you on i think it is needed. Im really bad at scripting. i made a spawn resource and it wouldnt work for some reson. ill look at the resource and see.

thank you

juggalo101

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