Jump to content

TDM spawnpoints


edzits

Recommended Posts

Hey,im new to MTA Server managmenting,and i recently made some maps and upgraded my server with some nice resources,but i cant figure out a basic thing.How do i make the spawns in tdm(red vs blue) to be like this:Red team spawns in their HQ,and Blue team in theirs.Currently,they spawn randomly on one of the spawnpoints i made.

Link to comment

Searched the whole spawnpoint menu with F3.Cant find anything on team.

EDIT:I checked out some other gamemodes,and for example CTF has this ''team" thing,where you create the team(Color,name ect.) and then when you create the spawnpoint,you can choose for which team is it.

Link to comment

most tdma-maps have a syntax like this

<base team="Police" red="0" green="0" blue="255" >
	<weapon model="3" ammo="1"/>
	<weapon model="23" ammo="60"/>
	<weapon model="31" ammo="500"/>
	<weapon model="29" ammo="300"/>
	<weapon model="34" ammo="15"/>
	<skin model="285"/>
	<skin model="286"/>
	<skin model="287"/>
	<spawn posX="974.30" posY="-761.07" posZ="112.06" rot="124" randx="5" randy="5" randz="0"/>
</base>
 
<base team="Terrorist" red="255" green="0" blue="0" >
	<weapon model="5" ammo="1"/>
	<weapon model="24" ammo="20"/>
	<weapon model="30" ammo="500"/>
	<weapon model="28" ammo="300"/>
	<weapon model="34" ammo="15"/>
	<skin model="121"/>
	<skin model="111"/>
	<skin model="124"/>
	<spawn posX="866.911" posY="-861.42" posZ="77.48" rot="356" randx="5" randy="5" randz="0"/>
</base> 

looking at this you should be able to figure out how to make them work correctly. pickups, objects, vehicles and markers should work without any changes

(the rand x y z values in "spawn" mean how many units the spawn points can vary, this is useful cause it will prevent the massive spawn at the beginning to be all in the same spot and everyone is stuck)

Link to comment

Thanks!I will try it now,hope it works out!

EDIT:Hey uhm,this might be strange,but where do i put the code you posted?

EDIT2:I figured it out,the BASE code has to be in the .map file.Now that i know how to make solid spawn points,i noticed a new isue.

The player is automaticly moved to one of the teams.No choice.How do i edit that?

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