[Ajuda] Converter codigo pra .map
#1

Estou com um codigo de um map aqui mas quero passar ele pra .map para poder editar no MTA dai depois botar na minha GM,como faзo ?
Se alguem puder fazer tambйm agradeзo <3

CУDIGO:
PHP код:
AddStaticVehicleEx(596,1334.0000000,-1737.8000000,13.3000000,0.0000000,-1,-1,15); //Police Car (LSPD)
AddStaticVehicleEx(462,1338.8000000,-1738.1000000,13.5000000,0.0000000,88,89,15); //Faggio
AddStaticVehicleEx(462,1337.4000000,-1737.8000000,13.5000000,0.0000000,88,89,15); //Faggio
AddStaticVehicleEx(462,1338.1000000,-1738.2000000,13.5000000,0.0000000,88,89,15); //Faggio
AddStaticVehicleEx(596,2158.1001000,-910.0000000,82.8000000,0.0000000,-1,-1,15); //Police Car (LSPD)
AddStaticVehicleEx(596,2165.8999000,-910.0999800,81.9000000,0.0000000,-1,-1,15); //Police Car (LSPD)
AddStaticVehicleEx(468,2155.1001000,-903.5999800,85.0000000,273.5000000,157,152,15); //Sanchez
AddStaticVehicleEx(468,2155.2000000,-902.7000100,85.2000000,273.4990000,157,152,15); //Sanchez
AddStaticVehicleEx(468,2155.3000000,-901.7000100,85.4000000,273.4990000,157,152,15); //Sanchez
AddStaticVehicleEx(497,2150.3999000,-908.7999900,87.7000000,177.9990000,-1,-1,15); //Police Maverick
AddStaticVehicleEx(596,2163.3000000,-910.0999800,81.9000000,0.0000000,-1,-1,15); //Police Car (LSPD)
AddStaticVehicleEx(596,2160.7998000,-910.0000000,82.2000000,0.0000000,-1,-1,15); //Police Car (LSPD)
CreateObject(1238,1330.8000000,-1733.0000000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (1)
CreateObject(1238,1331.2002000,-1735.0996000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (2)
CreateObject(1238,1329.2000000,-1735.2000000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (3)
CreateObject(1238,1330.8000000,-1734.0000000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (4)
CreateObject(1238,1326.8000000,-1735.4000000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (5)
CreateObject(1238,1325.6000000,-1735.4000000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (6)
CreateObject(1238,1327.9000000,-1735.3000000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (7)
CreateObject(1238,1324.0000000,-1736.4000000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (8)
CreateObject(1238,1325.8000000,-1732.5000000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (9)
CreateObject(1238,1324.4004000,-1735.4004000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (10)
CreateObject(1238,1324.4004000,-1735.4004000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (11)
CreateObject(1238,1324.4004000,-1735.4004000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (12)
CreateObject(1238,1322.9000000,-1732.5000000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (13)
CreateObject(1238,1324.3000000,-1732.5000000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (14)
CreateObject(1238,1338.1000000,-1737.1000000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (15)
CreateObject(1238,1338.9000000,-1737.6000000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (16)
CreateObject(1238,1336.1000000,-1739.9000000,12.9000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (17)
CreateObject(1238,1336.3000000,-1738.1000000,12.9000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (18)
CreateObject(1238,1339.5000000,-1738.4000000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (19)
CreateObject(1238,1337.1000000,-1737.1000000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (20)
CreateObject(1949,1320.0000000,-1732.7000000,12.4000000,0.0000000,0.0000000,0.0000000); //object(barrier_4andy) (1)
CreateObject(1237,1331.9000000,-1731.6000000,12.4000000,0.0000000,0.0000000,0.0000000); //object(strtbarrier01) (1)
CreateObject(1237,1331.5996000,-1726.5996000,12.5000000,0.0000000,0.0000000,0.0000000); //object(strtbarrier01) (2)
CreateObject(1237,1331.5996000,-1726.5996000,12.5000000,0.0000000,0.0000000,0.0000000); //object(strtbarrier01) (3)
CreateObject(1238,1336.4000000,-1732.3000000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (21)
CreateObject(1238,1336.6000000,-1727.6000000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (22)
CreateObject(1238,1341.2000000,-1732.4000000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (23)
CreateObject(1238,1336.7000000,-1728.4000000,12.7000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (24)
CreateObject(1290,2146.2000000,-913.0000000,89.8000000,0.0000000,0.0000000,0.0000000); //object(lamppost2) (1)
CreateObject(10832,2150.6001000,-906.0000000,84.7000000,0.0000000,0.0000000,0.0000000); //object(gatehouse2_sfse) (1)
CreateObject(7657,2157.1001000,-912.4000200,82.6000000,0.0000000,0.0000000,0.0000000); //object(plasticsgate1) (1)
CreateObject(7657,2158.6001000,-900.7999900,84.7000000,0.0000000,0.0000000,0.0000000); //object(plasticsgate1) (2)
CreateObject(5837,2172.2000000,-911.5999800,82.6000000,0.0000000,0.0000000,184.0000000); //object(ci_guardhouse1) (1)
CreateObject(1238,2176.8000000,-910.0000000,81.6000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (25)
CreateObject(1238,2177.6001000,-911.0999800,81.4000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (26)
CreateObject(1238,2170.7000000,-909.0999800,81.6000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (27)
CreateObject(1238,2174.0000000,-909.5000000,81.6000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (28)
CreateObject(1238,2175.5000000,-909.7000100,81.6000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (29)
CreateObject(1238,2172.7002000,-909.4003900,81.6000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (30)
CreateObject(1238,2172.7002000,-909.4003900,81.6000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (31)
CreateObject(1238,2171.6001000,-909.2000100,81.6000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (32)
CreateObject(1226,2177.1001000,-912.2000100,84.7000000,0.0000000,0.0000000,0.0000000); //object(lamppost3) (1) 
Reply
#2

Vocк deve fazer do mesmo jeito que se faz para converter um mapa do MTA para o Pawn, sу que ao contrбrio.
Entre no site http://www.convertffs.com/ e cole o cуdigo no espaзo em branco, depois ali em ''Input'' provavelmente ao colar o cуdigo vai ficar:
SA-MP CreateObject
SA-MP AddStaticVehicleEx

Em Output deixe como:
MTA 1.0 Object
MTA 1.0 Vehicle

Depois clique em convert, copie o cуdigo e vб atй a pasta de um mapa jб salvo que fica em ''server\mods\deathmatch\resources\'' (na pasta do MTA), abra o arquivo .map e cole o cуdigo convertido. Depois й sу entrar no MTA e abrir o mapa.

Caso jб queira convertido:

Код:
<map edf:definitions="editor_main">
	<meta>
		<info author='convertFFS.com' version='1.0' name='convertFFS map file' description='Converted by convertFFS' type='map' />
	</meta>
	<vehicle model="596" posX="1334.0000000" posY="-1737.8000000" posZ="13.3000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="-1,-1" />
	<vehicle model="462" posX="1338.8000000" posY="-1738.1000000" posZ="13.5000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="88,89" />
	<vehicle model="462" posX="1337.4000000" posY="-1737.8000000" posZ="13.5000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="88,89" />
	<vehicle model="462" posX="1338.1000000" posY="-1738.2000000" posZ="13.5000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="88,89" />
	<vehicle model="596" posX="2158.1001000" posY="-910.0000000" posZ="82.8000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="-1,-1" />
	<vehicle model="596" posX="2165.8999000" posY="-910.0999800" posZ="81.9000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="-1,-1" />
	<vehicle model="468" posX="2155.1001000" posY="-903.5999800" posZ="85.0000000" rotX="0.0000000" rotY="0.0000000" rotZ="273.5000000" color="157,152" />
	<vehicle model="468" posX="2155.2000000" posY="-902.7000100" posZ="85.2000000" rotX="0.0000000" rotY="0.0000000" rotZ="273.4990000" color="157,152" />
	<vehicle model="468" posX="2155.3000000" posY="-901.7000100" posZ="85.4000000" rotX="0.0000000" rotY="0.0000000" rotZ="273.4990000" color="157,152" />
	<vehicle model="497" posX="2150.3999000" posY="-908.7999900" posZ="87.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="177.9990000" color="-1,-1" />
	<vehicle model="596" posX="2163.3000000" posY="-910.0999800" posZ="81.9000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="-1,-1" />
	<vehicle model="596" posX="2160.7998000" posY="-910.0000000" posZ="82.2000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="-1,-1" />
	<object id="object(trafficcone)(1)" model="1238" posX="1330.8000000" posY="-1733.0000000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(2)" model="1238" posX="1331.2002000" posY="-1735.0996000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(3)" model="1238" posX="1329.2000000" posY="-1735.2000000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(4)" model="1238" posX="1330.8000000" posY="-1734.0000000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(5)" model="1238" posX="1326.8000000" posY="-1735.4000000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(6)" model="1238" posX="1325.6000000" posY="-1735.4000000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(7)" model="1238" posX="1327.9000000" posY="-1735.3000000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(8)" model="1238" posX="1324.0000000" posY="-1736.4000000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(9)" model="1238" posX="1325.8000000" posY="-1732.5000000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(10)" model="1238" posX="1324.4004000" posY="-1735.4004000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(11)" model="1238" posX="1324.4004000" posY="-1735.4004000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(12)" model="1238" posX="1324.4004000" posY="-1735.4004000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(13)" model="1238" posX="1322.9000000" posY="-1732.5000000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(14)" model="1238" posX="1324.3000000" posY="-1732.5000000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(15)" model="1238" posX="1338.1000000" posY="-1737.1000000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(16)" model="1238" posX="1338.9000000" posY="-1737.6000000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(17)" model="1238" posX="1336.1000000" posY="-1739.9000000" posZ="12.9000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(18)" model="1238" posX="1336.3000000" posY="-1738.1000000" posZ="12.9000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(19)" model="1238" posX="1339.5000000" posY="-1738.4000000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(20)" model="1238" posX="1337.1000000" posY="-1737.1000000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(barrier_4andy)(1)" model="1949" posX="1320.0000000" posY="-1732.7000000" posZ="12.4000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(strtbarrier01)(1)" model="1237" posX="1331.9000000" posY="-1731.6000000" posZ="12.4000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(strtbarrier01)(2)" model="1237" posX="1331.5996000" posY="-1726.5996000" posZ="12.5000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(strtbarrier01)(3)" model="1237" posX="1331.5996000" posY="-1726.5996000" posZ="12.5000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(21)" model="1238" posX="1336.4000000" posY="-1732.3000000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(22)" model="1238" posX="1336.6000000" posY="-1727.6000000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(23)" model="1238" posX="1341.2000000" posY="-1732.4000000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(24)" model="1238" posX="1336.7000000" posY="-1728.4000000" posZ="12.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(lamppost2)(1)" model="1290" posX="2146.2000000" posY="-913.0000000" posZ="89.8000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(gatehouse2_sfse)(1)" model="10832" posX="2150.6001000" posY="-906.0000000" posZ="84.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(plasticsgate1)(1)" model="7657" posX="2157.1001000" posY="-912.4000200" posZ="82.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(plasticsgate1)(2)" model="7657" posX="2158.6001000" posY="-900.7999900" posZ="84.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(ci_guardhouse1)(1)" model="5837" posX="2172.2000000" posY="-911.5999800" posZ="82.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="184.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(25)" model="1238" posX="2176.8000000" posY="-910.0000000" posZ="81.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(26)" model="1238" posX="2177.6001000" posY="-911.0999800" posZ="81.4000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(27)" model="1238" posX="2170.7000000" posY="-909.0999800" posZ="81.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(28)" model="1238" posX="2174.0000000" posY="-909.5000000" posZ="81.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(29)" model="1238" posX="2175.5000000" posY="-909.7000100" posZ="81.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(30)" model="1238" posX="2172.7002000" posY="-909.4003900" posZ="81.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(31)" model="1238" posX="2172.7002000" posY="-909.4003900" posZ="81.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(trafficcone)(32)" model="1238" posX="2171.6001000" posY="-909.2000100" posZ="81.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />
	<object id="object(lamppost3)(1)" model="1226" posX="2177.1001000" posY="-912.2000100" posZ="84.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" dimension="0" interior="0" />

	<!--
	Objects converted: 42
	Vehicles converted: 12
	Vehicle models found: 4
	----------------------
	In the time this conversion took to finish the US national debt has risen by about $903.06!
	-->
</map>
Reply
#3

Muito obrigado carinha !
+REP
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)