Как добавить объект в SAMP
После маппинга нужно сохранить объекты. Для этого следует нажать по кнопке «Save as» и набрать имя. Далее зайдите в корневую папку MTA (C -> Program Files -> MTA San Andreas -> Server -> Mods -> deathmatch -> Resources -> Имя папки, в которую сохранили -> Имя.map) и откройте файл. Там должно быть что-то типа
Этого:
<map edf:definitions="editor_main"> <object id="object (bustopm) (1)" breakable="true" interior="0" collisions="true" alpha="255" model="1257" doublesided="false" scale="1" dimension="0" posX="1601" posY="1583.8" posZ="11.1" rotX="0" rotY="0" rotZ="0"></object> <object id="object (bustopm) (2)" breakable="true" interior="0" collisions="true" alpha="255" model="1257" doublesided="false" scale="1" dimension="0" posX="1475.4" posY="1715.4" posZ="11.1" rotX="0" rotY="0" rotZ="0"></object> <object id="object (bustopm) (3)" breakable="true" interior="0" collisions="true" alpha="255" model="1257" doublesided="false" scale="1" dimension="0" posX="1475.4" posY="1715.4" posZ="11.1" rotX="0" rotY="0" rotZ="0"></object> <object id="object (traincano_LAS) (1)" breakable="true" interior="0" collisions="true" alpha="255" model="4853" doublesided="false" scale="1" dimension="0" posX="890.40002" posY="844.40002" posZ="15" rotX="0" rotY="0" rotZ="30"></object> <object id="object (traincano_LAS) (2)" breakable="true" interior="0" collisions="true" alpha="255" model="4853" doublesided="false" scale="1" dimension="0" posX="885.59998" posY="852.70001" posZ="15" rotX="0" rotY="0" rotZ="30"></object> <vehicle id="vehicle (Voodoo) (1)" paintjob="3" interior="0" alpha="255" model="412" plate="XSLMHDX" dimension="0" color="63,62,69,189,190,198,0,0,0,0,0,0" posX="920.59998" posY="869" posZ="13.3" rotX="0" rotY="0" rotZ="0"></vehicle> <vehicle id="vehicle (Tahoma) (1)" paintjob="3" interior="0" alpha="255" model="566" plate="ZZM9U01" dimension="0" color="82,86,97,245,245,245,0,0,0,0,0,0" posX="916" posY="867.20001" posZ="13.3" rotX="0" rotY="0" rotZ="0"></vehicle> <vehicle id="vehicle (Hotring Racer) (1)" paintjob="3" interior="0" alpha="255" model="494" plate="DXT8MTN" dimension="0" color="37,37,39,100,13,27,0,0,0,0,0,0" posX="900.70001" posY="859.29999" posZ="13.3" rotX="0" rotY="0" rotZ="0"></vehicle> <vehicle id="vehicle (Oceanic) (1)" paintjob="3" interior="0" alpha="255" model="467" plate="8ZA35RK" dimension="0" color="42,119,161,245,245,245,0,0,0,0,0,0" posX="904.79999" posY="860.70001" posZ="13.2" rotX="0" rotY="0" rotZ="0"></vehicle> <vehicle id="vehicle (Phoenix) (1)" paintjob="3" interior="0" alpha="255" model="603" plate="M0ESVWV" dimension="0" color="100,100,100,245,245,245,0,0,0,0,0,0" posX="888.40002" posY="852.20001" posZ="13.4" rotX="0" rotY="0" rotZ="0"></vehicle> <vehicle id="vehicle (Cheetah) (1)" paintjob="3" interior="0" alpha="255" model="415" plate="KG0G5OE" dimension="0" color="37,37,39,245,245,245,0,0,0,0,0,0" posX="884.20001" posY="850.20001" posZ="13.2" rotX="0" rotY="0" rotZ="0"></vehicle> <vehicle id="vehicle (Berkley's RC Van) (1)" paintjob="3" interior="0" alpha="255" model="459" plate="337ODBS" dimension="0" color="48,79,69,48,79,69,0,0,0,0,0,0" posX="873.09998" posY="842.29999" posZ="13.5" rotX="0" rotY="0" rotZ="0"></vehicle> <vehicle id="vehicle (Journey) (1)" paintjob="3" interior="0" alpha="255" model="508" plate="DZZMWEY" dimension="0" color="245,245,245,245,245,245,0,0,0,0,0,0" posX="868.5" posY="840.70001" posZ="13.8" rotX="0" rotY="0" rotZ="0"></vehicle> <vehicle id="vehicle (Mule) (1)" paintjob="3" interior="0" alpha="255" model="414" plate="VKTXPGO" dimension="0" color="61,74,104,245,245,245,0,0,0,0,0,0" posX="857" posY="833.40002" posZ="13.5" rotX="0" rotY="0" rotZ="0"></vehicle> <vehicle id="vehicle (Enforcer) (1)" paintjob="3" interior="0" alpha="255" model="427" plate="S7MPN1R" dimension="0" color="0,0,0,245,245,245,0,0,0,0,0,0" posX="852.5" posY="831" posZ="13.6" rotX="0" rotY="0" rotZ="0"></vehicle> <object id="object (bar_gatebar01) (1)" breakable="true" interior="0" collisions="true" alpha="255" model="966" doublesided="false" scale="1" dimension="0" posX="891.40039" posY="874.2998" posZ="12.4" rotX="0" rotY="0" rotZ="31.998"></object> <object id="object (barrierturn) (1)" breakable="true" interior="0" collisions="true" alpha="255" model="968" doublesided="false" scale="1" dimension="0" posX="891.40039" posY="874.2998" posZ="13.4" rotX="0" rotY="329.996" rotZ="35.25"></object> <object id="object (fenceshit) (1)" breakable="true" interior="0" collisions="true" alpha="255" model="982" doublesided="false" scale="1" dimension="0" posX="846.59998" posY="833.40002" posZ="12.5" rotX="0" rotY="0" rotZ="30"></object> <object id="object (fenceshit) (2)" breakable="true" interior="0" collisions="true" alpha="255" model="982" doublesided="false" scale="1" dimension="0" posX="864.79999" posY="829.29999" posZ="13.1" rotX="0" rotY="0" rotZ="119.998"></object> <object id="object (fenceshit) (3)" breakable="true" interior="0" collisions="true" alpha="255" model="982" doublesided="false" scale="1" dimension="0" posX="887" posY="842.09998" posZ="13.1" rotX="0" rotY="0" rotZ="119.993"></object> <object id="object (fenceshit) (4)" breakable="true" interior="0" collisions="true" alpha="255" model="982" doublesided="false" scale="1" dimension="0" posX="909.20001" posY="854.90002" posZ="13.1" rotX="0" rotY="0" rotZ="119.993"></object> <object id="object (fenceshit3) (1)" breakable="true" interior="0" collisions="true" alpha="255" model="983" doublesided="false" scale="1" dimension="0" posX="923" posY="862.90002" posZ="13.1" rotX="0" rotY="0" rotZ="120"></object> <object id="object (fenceshit3) (2)" breakable="true" interior="0" collisions="true" alpha="255" model="983" doublesided="false" scale="1" dimension="0" posX="924.40002" posY="863.70001" posZ="13.1" rotX="0" rotY="0" rotZ="119.998"></object> <object id="object (fenceshit) (5)" breakable="true" interior="0" collisions="true" alpha="255" model="982" doublesided="false" scale="1" dimension="0" posX="920.70001" posY="877.20001" posZ="13.1" rotX="0" rotY="0" rotZ="29.998"></object> <object id="object (fenceshit) (6)" breakable="true" interior="0" collisions="true" alpha="255" model="982" doublesided="false" scale="1" dimension="0" posX="903.20001" posY="881.90002" posZ="13.1" rotX="0" rotY="0" rotZ="119.998"></object> <object id="object (fenceshit) (7)" breakable="true" interior="0" collisions="true" alpha="255" model="982" doublesided="false" scale="1" dimension="0" posX="851.29999" posY="850.79999" posZ="12.5" rotX="0" rotY="0" rotZ="119.998"></object> <object id="object (fenceshit) (8)" breakable="true" interior="0" collisions="true" alpha="255" model="982" doublesided="false" scale="1" dimension="0" posX="873.5" posY="863.59998" posZ="12.5" rotX="0" rotY="0" rotZ="119.993"></object> <object id="object (strtbarrier01) (3)" breakable="true" interior="0" collisions="true" alpha="255" model="1237" doublesided="false" scale="1" dimension="0" posX="913.90002" posY="886.59998" posZ="12.4" rotX="0" rotY="0" rotZ="0"></object> <object id="object (strtbarrier01) (4)" breakable="true" interior="0" collisions="true" alpha="255" model="1237" doublesided="false" scale="1" dimension="0" posX="912.90002" posY="885.90002" posZ="12.4" rotX="0" rotY="0" rotZ="0"></object> <object id="object (strtbarrier01) (5)" breakable="true" interior="0" collisions="true" alpha="255" model="1237" doublesided="false" scale="1" dimension="0" posX="914.09998" posY="885.40002" posZ="12.4" rotX="0" rotY="0" rotZ="0"></object> <object id="object (des_gravelpile06) (1)" breakable="true" interior="0" collisions="true" alpha="255" model="16305" doublesided="false" scale="1" dimension="0" posX="843.59998" posY="887.20001" posZ="17.5" rotX="0" rotY="0" rotZ="0"></object> <object id="object (lasnfltrail) (1)" breakable="true" interior="0" alpha="255" model="3567" doublesided="false" scale="1" dimension="0" posX="933.20001" posY="882.40002" posZ="13.2" rotX="0" rotY="0" rotZ="0"></object> <object id="object (lasnfltrail) (2)" breakable="true" interior="0" alpha="255" model="3567" doublesided="false" scale="1" dimension="0" posX="926.20001" posY="886" posZ="13.2" rotX="0" rotY="0" rotZ="0"></object> <object id="object (by_weehangr) (1)" breakable="true" interior="0" alpha="255" model="16409" doublesided="false" scale="1" dimension="0" posX="839.40002" posY="824.5" posZ="11.9" rotX="3" rotY="357" rotZ="290"></object> <object id="object (carparkhut01_lvs) (1)" breakable="true" interior="0" alpha="255" model="8407" doublesided="false" scale="1" dimension="0" posX="809" posY="849.90002" posZ="10.6" rotX="0" rotY="0" rotZ="0"></object> <object id="object (bar_gatebar01) (2)" breakable="true" interior="0" collisions="true" alpha="255" model="966" doublesided="false" scale="1" dimension="0" posX="807.5" posY="846" posZ="8.9" rotX="0" rotY="0" rotZ="113.998"></object> <object id="object (barrierturn) (2)" breakable="true" interior="0" collisions="true" alpha="255" model="968" doublesided="false" scale="1" dimension="0" posX="807.5" posY="846" posZ="9.8" rotX="0" rotY="329.996" rotZ="112"></object> <object id="object (DYN_TABLE_2) (1)" breakable="true" interior="0" alpha="255" model="1432" doublesided="false" scale="1" dimension="0" posX="809.70001" posY="858.09998" posZ="10.4" rotX="0" rotY="0" rotZ="0"></object> <object id="object (DYN_TABLE_2) (2)" breakable="true" interior="0" alpha="255" model="1432" doublesided="false" scale="1" dimension="0" posX="806.40002" posY="858.90002" posZ="10.4" rotX="0" rotY="0" rotZ="60"></object> <object id="object (sw_pickupwreck01) (1)" breakable="true" interior="0" alpha="255" model="12957" doublesided="false" scale="1" dimension="0" posX="846.5" posY="843.40002" posZ="12.9" rotX="0" rotY="0" rotZ="0"></object> <object id="object (copbits_sfn) (1)" breakable="true" interior="0" alpha="255" model="9241" doublesided="false" scale="1" dimension="0" posX="919.59998" posY="840.5" posZ="14.4" rotX="0" rotY="0" rotZ="210"></object> </map>
Копируем весь код и идем на сайт convertffs.com. Вставляем туда этот код и нажимаем кнопку «Convert». Получается код вроде
Этого:
CreateObject(1257,1601.0000000,1583.8000000,11.1000000,0.0000000,0.0000000,0.0000000); //object(bustopm) (1) CreateObject(1257,1475.4000000,1715.4000000,11.1000000,0.0000000,0.0000000,0.0000000); //object(bustopm) (2) CreateObject(1257,1475.4000000,1715.4000000,11.1000000,0.0000000,0.0000000,0.0000000); //object(bustopm) (3) CreateObject(4853,890.4000200,844.4000200,15.0000000,0.0000000,0.0000000,30.0000000); //object(traincano_las) (1) CreateObject(4853,885.5999800,852.7000100,15.0000000,0.0000000,0.0000000,30.0000000); //object(traincano_las) (2) CreateObject(966,891.4003900,874.2998000,12.4000000,0.0000000,0.0000000,31.9980000); //object(bar_gatebar01) (1) CreateObject(968,891.4003900,874.2998000,13.4000000,0.0000000,329.9960000,35.2500000); //object(barrierturn) (1) CreateObject(982,846.5999800,833.4000200,12.5000000,0.0000000,0.0000000,30.0000000); //object(fenceshit) (1) CreateObject(982,864.7999900,829.2999900,13.1000000,0.0000000,0.0000000,119.9980000); //object(fenceshit) (2) CreateObject(982,887.0000000,842.0999800,13.1000000,0.0000000,0.0000000,119.9930000); //object(fenceshit) (3) CreateObject(982,909.2000100,854.9000200,13.1000000,0.0000000,0.0000000,119.9930000); //object(fenceshit) (4) CreateObject(983,923.0000000,862.9000200,13.1000000,0.0000000,0.0000000,120.0000000); //object(fenceshit3) (1) CreateObject(983,924.4000200,863.7000100,13.1000000,0.0000000,0.0000000,119.9980000); //object(fenceshit3) (2) CreateObject(982,920.7000100,877.2000100,13.1000000,0.0000000,0.0000000,29.9980000); //object(fenceshit) (5) CreateObject(982,903.2000100,881.9000200,13.1000000,0.0000000,0.0000000,119.9980000); //object(fenceshit) (6) CreateObject(982,851.2999900,850.7999900,12.5000000,0.0000000,0.0000000,119.9980000); //object(fenceshit) (7) CreateObject(982,873.5000000,863.5999800,12.5000000,0.0000000,0.0000000,119.9930000); //object(fenceshit) (8) CreateObject(1237,913.9000200,886.5999800,12.4000000,0.0000000,0.0000000,0.0000000); //object(strtbarrier01) (3) CreateObject(1237,912.9000200,885.9000200,12.4000000,0.0000000,0.0000000,0.0000000); //object(strtbarrier01) (4) CreateObject(1237,914.0999800,885.4000200,12.4000000,0.0000000,0.0000000,0.0000000); //object(strtbarrier01) (5) CreateObject(16305,843.5999800,887.2000100,17.5000000,0.0000000,0.0000000,0.0000000); //object(des_gravelpile06) (1) CreateObject(3567,933.2000100,882.4000200,13.2000000,0.0000000,0.0000000,0.0000000); //object(lasnfltrail) (1) CreateObject(3567,926.2000100,886.0000000,13.2000000,0.0000000,0.0000000,0.0000000); //object(lasnfltrail) (2) CreateObject(16409,839.4000200,824.5000000,11.9000000,3.0000000,357.0000000,290.0000000); //object(by_weehangr) (1) CreateObject(8407,809.0000000,849.9000200,10.6000000,0.0000000,0.0000000,0.0000000); //object(carparkhut01_lvs) (1) CreateObject(966,807.5000000,846.0000000,8.9000000,0.0000000,0.0000000,113.9980000); //object(bar_gatebar01) (2) CreateObject(968,807.5000000,846.0000000,9.8000000,0.0000000,329.9960000,112.0000000); //object(barrierturn) (2) CreateObject(1432,809.7000100,858.0999800,10.4000000,0.0000000,0.0000000,0.0000000); //object(dyn_table_2) (1) CreateObject(1432,806.4000200,858.9000200,10.4000000,0.0000000,0.0000000,60.0000000); //object(dyn_table_2) (2) CreateObject(12957,846.5000000,843.4000200,12.9000000,0.0000000,0.0000000,0.0000000); //object(sw_pickupwreck01) (1) CreateObject(9241,919.5999800,840.5000000,14.4000000,0.0000000,0.0000000,210.0000000); //object(copbits_sfn) (1) /* Objects converted: 31 Vehicles converted: 10 Vehicle models found: 10 ---------------------- In the time this conversion took to finish a hummingbird could have flapped it's wings 0.83 times! */
Выделяем его и вставляем в мод после строк: «public OnGameModeInit() {«.
Компилируем, запускаем мод. Объекты должны добавиться.