lalucidaniel Posted December 22, 2012 Posted December 22, 2012 Well I followed wikipedia ... made my server prepared a simple team script but.... teams not working, still spawns randomly on map with random skin. Here's the gamemod script /UrbanWarfare /meta.xml /UrbanWarfare.map /UrbanWarfare.lua Union> Asian Empires> Soviet Russia> States of America> and I included them in meta.xml here's what my folder looks like and the other files details ... tell me where I am wrong CLIENT: COMMANDS /admin_commands /meta.xml /commands.lua /client.lua URBAN Warfare /UrbanWarfare /meta.xml /UrbanWarfare.lua /buymenu.lua
Techial Posted December 22, 2012 Posted December 22, 2012 Instead of using math.random put in the actual position read from XML
lalucidaniel Posted December 22, 2012 Author Posted December 22, 2012 Instead of using math.random put in the actual position read from XML ... didnt understand
HeArTBeaT Posted December 22, 2012 Posted December 22, 2012 Do you have "play" game mode running? play game mod? I started MTA server if thats what u mean and loaded resources
Castillo Posted December 22, 2012 Posted December 22, 2012 The "play" game mode spawns you on random spawnpoints defined within the resource.
lalucidaniel Posted December 22, 2012 Author Posted December 22, 2012 The "play" game mode spawns you on random spawnpoints defined within the resource. ok how do I get to it and disable it then?
lalucidaniel Posted December 23, 2012 Author Posted December 23, 2012 Write on the chat: "/stop play". ok did that but now it just remains a black screen ... how do I make it load my script?
manve1 Posted December 23, 2012 Posted December 23, 2012 add this: Server-side: fadeCamera ( source, true ) or Client-side: fadeCamera ( true )
DiSaMe Posted December 23, 2012 Posted December 23, 2012 Your meta.xml has two elements, that's wrong.
Anderl Posted December 23, 2012 Posted December 23, 2012 Here's the gamemod script /UrbanWarfare /meta.xml /UrbanWarfare.map /UrbanWarfare.lua <map mode="TDM & TW & CTF" version="v1.0"> <European Union> <spawnpoint posX="2475.6000976563" posY="-1667.3000488281" posZ="13.699999809265" skins="285" /> </European Union> <Unite Asian Empires> <spawnpoint posX="2748.6999511719" posY="-2450.1999511719" posZ="13.5" skins="122" /> </United Asian Empires> <New Soviet Russia> <spawnpoint posX="237.60000610352" posY="-1923.8000488281" posZ="2.5999999046326" skins="273" /> </New Soviet Russia> <United States of America> <spawnpoint posX="2010.0999755859" posY="-2188.3000488281" posZ="13.199999809265" skins="287" /> </United States of America> <vehicle posX=2412.6000976563 posY=-1649.8000488281 posZ=13.5 model="586" /> </map> This isn't a script, this is a XML file. And you have two errors: 1. What's this? /UrbanWarfare /meta.xml /UrbanWarfare.map /UrbanWarfare.lua 2. You can't spaces in node names. and I included them in meta.xml <meta> <info type="map" name="Urban Warfare" author="HeArTBeaT[TBT]" version="1.0.0" description="Team Death Match , Teritory war , Capture The Flag"></info> <map src="UrbanWarfare.map" dimension="0"></map> <settings> <setting name="#minplayers" value="[ 0 ]"></setting> <setting name="#maxplayers" value="[ 128 ]"></setting> <setting name="#gravity" value="[ 0.008000 ]"></setting> <setting name="#weather" value="[ 0 ]"></setting> <setting name="#time" value="12:0"></setting> <setting name="#locked_time" value="[ false ]"></setting> <setting name="#waveheight" value="[ 0 ]"></setting> <setting name="#gamespeed" value="[ 1 ]"></setting> </settings> </meta> <meta> <info author="HeArTBeaT[TBT]" description="Urban Warfare v1.0" type="UrbanWarfare" gamemodes="Team Deathmatch & Teritory Wars & Capture The flag" /> <map src="UrbanWarfare.map" /> <script src="UrbanWarfare.lua" /> <script src="commands.lua" /> <script src="client.lua" type="client" /> <script src="script.lua" type="script" /> </meta> As CrystalMV said, you have two in your meta file. CLIENT: COMMANDS /admin_commands /meta.xml /commands.lua /client.lua URBAN Warfare /UrbanWarfare /meta.xml /UrbanWarfare.lua /buymenu.lua What the.. is this? It would be better if you posted exactly how files are in this way: File name.extension:[[ FILE CONTENT HERE ]] Another file name.extension: [[ FILE CONTENT HERE ]]
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