Argonath RPG - A World of its own

Argonath RPG Community => Hardware/Software support => Resolved issues => Topic started by: Andre9977 on August 25, 2007, 10:32:27 pm

Title: MTA Map Editor
Post by: Andre9977 on August 25, 2007, 10:32:27 pm
Well, im making a map, what i can convert to SA:MP Later. Now i seem i can add all stuff, exept cars... Like how can i add a car in map?
Title: Re: MTA Map Editor
Post by: Dave on August 25, 2007, 10:33:25 pm
cars i think go through script comamnds
Title: Re: MTA Map Editor
Post by: Andre9977 on August 25, 2007, 11:11:48 pm
Omg! I cant script... It is hard!
Title: Re: MTA Map Editor
Post by: Gimli on August 25, 2007, 11:22:26 pm
Use MTA to add cars, then use this tool to convert it to the SAMP format  (http://beerbox.dyndns.org/converter.php).
If you need any help, feel free to ask.


-xcasio ;)
Title: Re: MTA Map Editor
Post by: Dave on August 25, 2007, 11:25:09 pm
MTA SA? if so go ingame

go to the spaawn area in SA:MP and type /save, got to the GTA SA directory and it should bcar ide there, add that into the script along with AddStaticVehicle(the car coordinated go in here)car id //carname
Title: Re: MTA Map Editor
Post by: Andre9977 on August 25, 2007, 11:41:35 pm
Use MTA to add cars, then use this tool to convert it to the SAMP format  (http://beerbox.dyndns.org/converter.php).
If you need any help, feel free to ask.


-xcasio ;)

The point is - With MTA, i can only use one car which is the "Spawn car". Well, i made police cars on the map:
Code: [Select]
CreateVehicle(596, 1595.240479, -1708.690063, 13.202812, 360, -1, -1, 120000); //spawnpoint (5)
CreateVehicle(596, 1595.240479, -1708.690063, 13.202812, 360, -1, -1, 120000); //spawnpoint (6)
CreateVehicle(596, 1595.240479, -1708.690063, 13.202812, 360, -1, -1, 120000); //spawnpoint (7)
CreateVehicle(596, 1595.240479, -1708.690063, 13.202812, 360, -1, -1, 120000); //spawnpoint (8)
CreateVehicle(596, 1595.240479, -1708.690063, 13.202812, 360, -1, -1, 120000); //spawnpoint (9)
CreateVehicle(596, 1595.972778, -1709.216187, 5.710625, 360, -1, -1, 120000); //spawnpoint (10)
CreateVehicle(596, 1591.683350, -1709.307617, 5.710625, 360, -1, -1, 120000); //spawnpoint (11)
CreateVehicle(596, 1588.052856, -1709.602905, 5.710625, 360, -1, -1, 120000); //spawnpoint (12)
CreateVehicle(596, 1583.575562, -1709.468262, 5.710625, 360, -1, -1, 120000); //spawnpoint (13)
CreateVehicle(596, 1578.429077, -1709.276489, 5.710625, 360, -1, -1, 120000); //spawnpoint (14)
CreateVehicle(596, 1574.926392, -1709.500854, 5.710625, 360, -1, -1, 120000); //spawnpoint (15)
CreateVehicle(596, 1570.431641, -1709.496460, 5.710625, 360, -1, -1, 120000); //spawnpoint (16)
CreateVehicle(596, 1535.848267, -1666.315430, 13.202812, 360, -1, -1, 120000); //spawnpoint (17)
CreateVehicle(596, 1535.842285, -1672.943237, 13.202812, 360, -1, -1, 120000); //spawnpoint (18)
CreateVehicle(596, 1540.270630, -1664.219116, 13.370268, 28, -1, -1, 120000); //spawnpoint (19)
CreateVehicle(596, 1545.393188, -1653.087280, 13.378794, 88, -1, -1, 120000); //spawnpoint (20)
CreateVehicle(596, 1521.895264, -1660.013428, 13.359175, 299, -1, -1, 120000); //spawnpoint (21)
CreateVehicle(596, 1521.536621, -1656.054077, 13.359175, 299, -1, -1, 120000); //spawnpoint (22)
CreateVehicle(596, 1521.104858, -1651.899536, 13.359175, 299, -1, -1, 120000); //spawnpoint (23)
CreateVehicle(596, 1551.418701, -1621.666870, 13.366875, 89, -1, -1, 120000); //spawnpoint (24)
CreateVehicle(596, 1558.980835, -1621.719971, 13.366875, 89, -1, -1, 120000); //spawnpoint (25)
CreateVehicle(596, 1565.985840, -1621.772583, 13.366875, 89, -1, -1, 120000); //spawnpoint (26)
CreateVehicle(596, 1549.215820, -1606.682129, 13.202812, 177, -1, -1, 120000); //spawnpoint (27)
CreateVehicle(596, 1553.056641, -1607.065063, 13.202812, 177, -1, -1, 120000); //spawnpoint (28)
CreateVehicle(596, 1556.615234, -1606.987915, 13.202812, 177, -1, -1, 120000); //spawnpoint (29)
CreateVehicle(596, 1560.556763, -1607.211548, 13.202812, 177, -1, -1, 120000); //spawnpoint (30)
CreateVehicle(596, 1564.179932, -1607.234253, 13.202812, 177, -1, -1, 120000); //spawnpoint (31)
CreateVehicle(596, 1568.088379, -1607.588867, 13.202812, 177, -1, -1, 120000); //spawnpoint (32)
CreateVehicle(596, 1916.457153, -1363.598145, 13.480972, 88, -1, -1, 120000); //spawnpoint (33)

I used the converter and here is the code ^^
Now i add it to my pawno script?
Title: Re: MTA Map Editor
Post by: Dave on August 25, 2007, 11:43:38 pm
ye...ut u might have to change the CreateVehilce to CreateStaticVehicle or AddstaticVehicle
Title: Re: MTA Map Editor
Post by: Andre9977 on August 25, 2007, 11:47:51 pm
Could u send me some RP script files please. Well the story is - Had a account on mtavcsux (called Andre9977 so i thought that i have nothing to hide) and now they blocked me from sa-mp.com forums (Huhm, big asses)
Posted on: 26-08-2007, 01:46:04
I will send a email to [email protected] bc i really got nothing to hide and they cant ban me for having account, can they?
Title: Re: MTA Map Editor
Post by: Dave on August 25, 2007, 11:51:02 pm
can do, i'll give i my filterscript and command test script to fiddle around with :)
and i will send you a RP script if u want, i have PEN1LS
Title: Re: MTA Map Editor
Post by: Andre9977 on August 26, 2007, 11:55:59 am
Code: [Select]
AddStaticVehicle(487,1544.3810,-1354.1403,329.6510,0.9474,54,29); // heli1
AddStaticVehicle(487,1668.1875,-1267.6479,233.5519,80.6809,3,29); // heli2
AddStaticVehicle(487,1423.8759,-1189.4307,195.2232,272.4731,3,29); // heli
AddStaticVehicle(487,1427.8669,-1206.7137,195.2205,253.2966,3,29); // heli
AddStaticVehicle(487,1514.6334,-1067.3450,181.3798,269.2993,3,29); // heli
AddStaticVehicle(487,1532.8845,-1074.3094,181.3804,271.0264,3,29); // heli
AddStaticVehicle(487,1667.1321,-1222.7820,233.5480,288.6899,3,29); // heli
AddStaticVehicle(487,1560.2428,-1358.4150,329.6322,89.3433,3,29); // heli
AddStaticVehicle(487,1654.5442,-1637.0603,83.9570,201.0777,3,29); // heli
AddStaticVehicle(596, 1595.240479, -1708.690063, 13.202812, 360, -1, -1, 120000); //spawnpoint (5)
AddStaticVehicle(596, 1595.240479, -1708.690063, 13.202812, 360, -1, -1, 120000); //spawnpoint (6)
AddStaticVehicle(596, 1595.240479, -1708.690063, 13.202812, 360, -1, -1, 120000); //spawnpoint (7)
AddStaticVehicle(596, 1595.240479, -1708.690063, 13.202812, 360, -1, -1, 120000); //spawnpoint (8)
AddStaticVehicle(596, 1595.240479, -1708.690063, 13.202812, 360, -1, -1, 120000); //spawnpoint (9)
AddStaticVehicle(596, 1595.972778, -1709.216187, 5.710625, 360, -1, -1, 120000); //spawnpoint (10)
AddStaticVehicle(596, 1591.683350, -1709.307617, 5.710625, 360, -1, -1, 120000); //spawnpoint (11)
AddStaticVehicle(596, 1588.052856, -1709.602905, 5.710625, 360, -1, -1, 120000); //spawnpoint (12)
AddStaticVehicle(596, 1583.575562, -1709.468262, 5.710625, 360, -1, -1, 120000); //spawnpoint (13)
AddStaticVehicle(596, 1578.429077, -1709.276489, 5.710625, 360, -1, -1, 120000); //spawnpoint (14)
AddStaticVehicle(596, 1574.926392, -1709.500854, 5.710625, 360, -1, -1, 120000); //spawnpoint (15)
AddStaticVehicle(596, 1570.431641, -1709.496460, 5.710625, 360, -1, -1, 120000); //spawnpoint (16)
AddStaticVehicle(596, 1535.848267, -1666.315430, 13.202812, 360, -1, -1, 120000); //spawnpoint (17)
AddStaticVehicle(596, 1535.842285, -1672.943237, 13.202812, 360, -1, -1, 120000); //spawnpoint (18)
AddStaticVehicle(596, 1540.270630, -1664.219116, 13.370268, 28, -1, -1, 120000); //spawnpoint (19)
AddStaticVehicle(596, 1545.393188, -1653.087280, 13.378794, 88, -1, -1, 120000); //spawnpoint (20)
AddStaticVehicle(596, 1521.895264, -1660.013428, 13.359175, 299, -1, -1, 120000); //spawnpoint (21)
AddStaticVehicle(596, 1521.536621, -1656.054077, 13.359175, 299, -1, -1, 120000); //spawnpoint (22)
AddStaticVehicle(596, 1521.104858, -1651.899536, 13.359175, 299, -1, -1, 120000); //spawnpoint (23)
AddStaticVehicle(596, 1551.418701, -1621.666870, 13.366875, 89, -1, -1, 120000); //spawnpoint (24)
AddStaticVehicle(596, 1558.980835, -1621.719971, 13.366875, 89, -1, -1, 120000); //spawnpoint (25)
AddStaticVehicle(596, 1565.985840, -1621.772583, 13.366875, 89, -1, -1, 120000); //spawnpoint (26)
AddStaticVehicle(596, 1549.215820, -1606.682129, 13.202812, 177, -1, -1, 120000); //spawnpoint (27)
AddStaticVehicle(596, 1553.056641, -1607.065063, 13.202812, 177, -1, -1, 120000); //spawnpoint (28)
AddStaticVehicle(596, 1556.615234, -1606.987915, 13.202812, 177, -1, -1, 120000); //spawnpoint (29)
AddStaticVehicle(596, 1560.556763, -1607.211548, 13.202812, 177, -1, -1, 120000); //spawnpoint (30)
AddStaticVehicle(596, 1564.179932, -1607.234253, 13.202812, 177, -1, -1, 120000); //spawnpoint (31)
AddStaticVehicle(596, 1568.088379, -1607.588867, 13.202812, 177, -1, -1, 120000); //spawnpoint (32)
AddStaticVehicle(596, 1916.457153, -1363.598145, 13.480972, 88, -1, -1, 120000); //spawnpoint (33)

Ok this is the code i got. added it to PWN file, but in-game they are not there. What am i doing wrong?
Title: Re: MTA Map Editor
Post by: Skole on August 26, 2007, 01:04:50 pm
Code: [Select]
AddStaticVehicle(modelid,X-coord,Y-coord,Z-coord,Angle,Color1,Color2);
Example:
Code: [Select]
AddStaticVehicle(513,324.7664,2546.0984,16.4876,178.8663,-1,-1); // stuntplane LV

( -1 = Random color, when spawn. )
Title: Re: MTA Map Editor
Post by: Andre9977 on August 26, 2007, 01:06:44 pm
So, colors are the trouble?
I change it to some other and it is cool?
Title: Re: MTA Map Editor
Post by: Dave on August 26, 2007, 01:10:21 pm
there are some problems in your code, after the first 5 or so car spawns there are spaces replace these with , it might work
Title: Re: MTA Map Editor
Post by: Andre9977 on August 26, 2007, 01:13:15 pm
there are some problems in your code, after the first 5 or so car spawns there are spaces replace these with , it might work
Sorry, i tried...
Posted on: 26-08-2007, 15:11:28
Code: [Select]
AddStaticVehicle(487,1544.3810,-1354.1403,329.6510,0.9474,54,29); // heli1
AddStaticVehicle(487,1668.1875,-1267.6479,233.5519,80.6809,3,29); // heli2
AddStaticVehicle(487,1423.8759,-1189.4307,195.2232,272.4731,3,29); // heli
AddStaticVehicle(487,1427.8669,-1206.7137,195.2205,253.2966,3,29); // heli
AddStaticVehicle(487,1514.6334,-1067.3450,181.3798,269.2993,3,29); // heli
AddStaticVehicle(487,1532.8845,-1074.3094,181.3804,271.0264,3,29); // heli
AddStaticVehicle(487,1667.1321,-1222.7820,233.5480,288.6899,3,29); // heli
AddStaticVehicle(487,1560.2428,-1358.4150,329.6322,89.3433,3,29); // heli
AddStaticVehicle(487,1654.5442,-1637.0603,83.9570,201.0777,3,29); // heli
AddStaticVehicle(596,1595.240479,-1708.690063,13.202812,360.-1,-1,120000); // police
AddStaticVehicle(596,1595.240479,-1708.690063,13.202812,360.-1,-1,120000); // police
AddStaticVehicle(596,1595.240479,-1708.690063,13.202812,360.-1,-1,120000); // police
AddStaticVehicle(596,1595.240479,-1708.690063,13.202812,360.-1,-1,120000); // police
AddStaticVehicle(596,1595.240479,-1708.690063,13.202812,360.-1,-1,120000); // police
AddStaticVehicle(596,1595.972778,-1709.216187,5.710625,360.-1,-1,120000); // police
AddStaticVehicle(596,1591.683350,-1709.307617,5.710625,360.-1,-1,120000); // police
AddStaticVehicle(596,1588.052856,-1709.602905,5.710625,360.-1,-1,120000); // police
AddStaticVehicle(596,1583.575562,-1709.468262,5.710625,360.-1,-1,120000); // police
AddStaticVehicle(596,1578.429077,-1709.276489,5.710625,360.-1,-1,120000); // police
AddStaticVehicle(596,1574.926392,-1709.500854,5.710625,360.-1,-1,120000); // police
AddStaticVehicle(596,1570.431641,-1709.496460,5.710625,360.-1,-1,120000); // police
AddStaticVehicle(596,1535.848267,-1666.315430,13.202812,360.-1,-1,120000); // police
AddStaticVehicle(596,1535.842285,-1672.943237,13.202812,360.-1,-1,120000); // police
AddStaticVehicle(596,1540.270630,-1664.219116,13.370268,28.-1,-1,120000); // police
AddStaticVehicle(596,1545.393188,-1653.087280,13.378794,88.-1,-1,120000); // police
AddStaticVehicle(596,1521.895264,-1660.013428,13.359175,299.-1,-1,120000); // police
AddStaticVehicle(596,1521.536621,-1656.054077,13.359175,299.-1,-1,120000); // police
AddStaticVehicle(596,1521.104858,-1651.899536,13.359175,299.-1,-1,120000); // police
AddStaticVehicle(596,1551.418701,-1621.666870,13.366875,89.-1,-1,120000); // police
AddStaticVehicle(596,1558.980835,-1621.719971,13.366875,89.-1,-1,120000); // police
AddStaticVehicle(596,1565.985840,-1621.772583,13.366875,89.-1,-1,120000); // police
AddStaticVehicle(596,1549.215820,-1606.682129,13.202812,177.-1,-1,120000); // police
AddStaticVehicle(596,1553.056641,-1607.065063,13.202812,177.-1,-1,120000); // police
AddStaticVehicle(596,1556.615234,-1606.987915,13.202812,177.-1,-1,120000); // police
AddStaticVehicle(596,1560.556763,-1607.211548,13.202812,177.-1,-1,120000); // police
AddStaticVehicle(596,1564.179932,-1607.234253,13.202812,177.-1,-1,120000); // police
AddStaticVehicle(596,1568.088379,-1607.588867,13.202812, 177.-1,-1,120000); // police
AddStaticVehicle(596,1916.457153,-1363.598145,13.480972, 88.-1,-1,120000); // police

Well it is here, now. Maybe it has some other buugs...?
Title: Re: MTA Map Editor
Post by: Dave on August 26, 2007, 01:19:39 pm
I might go and redo the spawn points for the police, it might be easier using a FS
SimplePortal 2.3.7 © 2008-2025, SimplePortal