[Tutorial] - Brisanje objekata iz mape San Andreasa

Započeo elemental., Novembar 11, 2012, 14:22:04 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.


1.) Idite u vaš MTA folder, i onda idite u server/mods/deathmatch/resources i tu napravite novi folder pod imenom "mapa", ali bez navodnika.

2.) Napravite meta.xml i u njega zalijepite ovo:
<meta>
     <min_mta_version client="1.3.0" server="1.3.0" />
    <script src="obrisani.lua" type="server"/>
</meta>

Da objasnim:
<min_mta_version client="1.3.0" server="1.3.0" /> - ovo je minimalna verzija korištenja ove funkcije jer je ova funkcija stigla u verziji 1.3.0
<script src="obrisani.lua" type="server"/> - ovo predstavlja dokument u koji ćemo kasnije postaviti naše obrisane objekte.

3.) Napravite fajl obrisani.lua i u njega dodajte objekte koje želite.
removeWorldModel(ID_Objekta,Radius, Koordinata X, Koordinata Y, Koordinata Z)
Primjer kako obrisati Alhambaru:
removeWorldModel( 5544,2, 1873.7422, -1682.4766, 34.7969)
removeWorldModel(1524,2, 1837.6641, -1640.3828, 13.7578)
removeWorldModel(620,2, 1908.2188, -1741.4844, 10.8047)
removeWorldModel(712,2, 1929.5781, -1736.9063, 21.3906)
removeWorldModel(620,2, 1931.0391, -1726.3281, 10.8047)
removeWorldModel(620,2, 1832.3828, -1694.3125, 9.7188)
removeWorldModel(1537,2, 1837.4375, -1683.9688, 12.3047)
removeWorldModel(1533,2, 1837.4375, -1683.9531, 12.3047)
removeWorldModel(1537,2, 1837.4375, -1686.9844, 12.3125)
removeWorldModel(620,2, 1832.8984, -1670.7656, 9.7188)
removeWorldModel(1533,2, 1837.4375, -1677.9219, 12.2969)
removeWorldModel(1537,2, 1837.4375, -1680.9531, 12.2969)
removeWorldModel(1533,2, 1837.4375, -1680.9375, 12.2969)
removeWorldModel(5408,2, 1873.7422, -1682.4766, 34.7969)
removeWorldModel(620,2, 1931.0391, -1702.2891, 10.8047)
removeWorldModel(712, 1929.5781, -1694.4609, 21.3906)
removeWorldModel(620, 1931.0391, -1667.0313, 10.8047)
removeWorldModel(1311, 1823.4219, -1647.2734, 16.6719)
removeWorldModel(620, 1931.0391, -1637.8984, 10.8047)
removeWorldModel(620, 1855.7188, -1623.2813, 10.8047)
removeWorldModel(620, 1879.5078, -1623.1016, 10.8047)
removeWorldModel(620, 1908.2188, -1622.9844, 10.8047)
removeWorldModel(712, 1929.5781, -1627.6250, 21.3906)


5.) UÄ'ite u MTA i kucajte sljedeću naredbu: /start mapa. Ovo "mapa" označava ime foldera u koji smo postavili meta.xml.

6.) Sada se udaljite od tog objekta i vratite se do njega, i objekta više neće biti, odnosno biti će obrisan. Onda ćete moći mapati bez problema.

NAPOMENA: Koordinate obrisanih objekata morate uzeti iz Map Editora.
Ovo sam našao na google, i nisam testirao. Nadam se da će vam raditi. Mapa ide sticky na 2 dana.


Rekoh ti, nisam testirao. Sad ću testirati, pa ću edit post.
EDIT: Testirano, ne radi ni meni. Neka još neko provjeri. Ukoliko ne bude radilo, brišem temu...
Poslednja Izmena: Novembar 13, 2012, 19:45:07 POSLE PODNE od вιg вυηηу



Testirao sam skriptu i radi bez problema... Vi očito niste otišli van radiusa streamanja. Preporučam da se udaljite dosta i da se vratite, zgrade neće biti...

Citat<min_mta_version client="1.3.0" server="1.3.0" /> - ovo je minimalna verzija korištenja ove funkcije jer je ova funkcija stigla u verziji 1.3.0
Došla je u 1.2 krivo si informiran. RemoveWorldModel I ne vidim razlog zašto te uopće koristi nije potrebno, valjda svi imaju verzije od 1.2 na dalje.

Evo vam slika da radi.
Obrisano.
https://dl.dropbox.com/u/9259344/pics/mta-screen_2012-11-13_22-21-20.png
Vraćeno sa restoreAllWorldModels()
https://dl.dropbox.com/u/9259344/pics/mta-screen_2012-11-13_22-22-26.png
Poslednja Izmena: Novembar 13, 2012, 22:27:51 POSLE PODNE od Nik Delgad






[CG]ViPeR

Pitanje jedno ...
Kako napravite meta.xml ?
Jel od nekog fajla ili sta vec ?

ljudi imam problem nece mi na windows 7 da napravi xml file msm moze da se napravi ali ja nz kako na windowsu XP samo napravim txt file i stavim ime meta.xml i samo samo se napravi au sedmici nece teko moze li mi neko reci kako mogu da to sredim bio bih u mnogo zahvalan
Poslednja Izmena: Decembar 11, 2012, 16:20:06 POSLE PODNE od [BTL] Petar√

Napravi običan txt fajl zatim odi na ime fajla i dodaj .xml. Ili dok ti je otvoren txt file sa notepadom odi na save as i stavi na 'saves as type' 'all files' , samo onda staviš za ime meta.xml
Poslednja Izmena: Decembar 15, 2012, 16:14:54 POSLE PODNE od Nik Delgad





ja napravim folder pa u njemu fajl obrisani.lua i meta.xml i u meta ubacim ono sto pise gore a u obrisani.lua ono sto sam uzo objekte i kad udjem u mta pa map editor i onda stisnem T i onda start mapa pise resource could not be found ili probam open pa kucam mapa i nema je :S

EDIT: Resio sam radi sve lepo  ;D
Poslednja Izmena: Decembar 29, 2012, 14:36:45 POSLE PODNE od ...Nikola...

Uzeo sam kodove i napravio po ovome dole kodu i ne zeli mi izbrisati objekte :SS
removeWorldModel(ID_Objekta,Radius, Koordinata X, Koordinata Y, Koordinata Z)

Moji kodovi iz "obrisani.lua": RemoveWorldModel(3578, 5.25, 2235.1641, -2231.8516, 13.2578)
RemoveWorldModel(1226, 4.61, 2240.7813, -2240.8984, 16.3672)
RemoveWorldModel(3569, 9.43, 2234.3906, -2244.8281, 14.9375)
RemoveWorldModel(3569, 9.43, 2226.9688, -2252.1406, 14.9375)
RemoveWorldModel(3569, 9.43, 2219.4219, -2259.5234, 14.8828)
RemoveWorldModel(3569, 9.43, 2212.0938, -2267.0703, 14.9375)
RemoveWorldModel(3569, 9.43, 2204.6328, -2274.4141, 14.9375)
RemoveWorldModel(1226, 4.61, 2217.2188, -2250.3594, 16.3672)
RemoveWorldModel(3627, 22.42, 2220.7813, -2261.0547, 15.9063)
RemoveWorldModel(3578, 5.25, 2194.4766, -2242.8750, 13.2578)
RemoveWorldModel(3627, 22.42, 2195.0859, -2216.8438, 15.9063)
RemoveWorldModel(5244, 25.97, 2198.8516, -2213.9219, 14.8828)
RemoveWorldModel(1226, 4.61, 2215.8047, -2199.2188, 16.3125)
RemoveWorldModel(1226, 4.61, 2223.7422, -2207.1875, 16.3125)
RemoveWorldModel(1226, 4.61, 2207.8750, -2191.2500, 16.3125)
RemoveWorldModel(3574, 11.89, 2193.0625, -2196.6406, 15.1016)
RemoveWorldModel(3574, 11.89, 2174.6406, -2215.6563, 15.1016)
RemoveWorldModel(3574, 11.89, 2183.1719, -2237.2734, 14.8125)
RemoveWorldModel(5131, 57.76, 2151.7344, -2273.2969, 18.6563)
RemoveWorldModel(3574, 11.89, 2193.2578, -2286.2891, 14.8125)
RemoveWorldModel(3627, 22.42, 2169.1172, -2276.5859, 15.9063)
RemoveWorldModel(3578, 5.25, 2165.0703, -2288.9688, 13.2578)
RemoveWorldModel(3287, 4.81, 2152.5938, -2303.8203, 24.4375)
RemoveWorldModel(1226, 4.61, 2202.8047, -2290.1016, 17.4766)
RemoveWorldModel(1226, 4.61, 2184.6250, -2308.3281, 17.4766)
RemoveWorldModel(3574, 11.89, 2165.2969, -2317.5000, 14.8125)
RemoveWorldModel(3574, 11.89, 2179.9219, -2334.8516, 14.8125)
RemoveWorldModel(5126, 22.37, 2197.1875, -2325.5391, 27.5313)
RemoveWorldModel(3286, 5.71, 2144.4297, -2307.9063, 24.3906)
RemoveWorldModel(3258, 15.78, 2140.4219, -2301.9688, 12.9922)
RemoveWorldModel(1226, 4.61, 2130.2891, -2290.0938, 16.3125)
RemoveWorldModel(5129, 36.25, 2148.7813, -2269.6406, 17.3281)
RemoveWorldModel(5130, 7.28, 2139.8594, -2271.7813, 16.6797)
RemoveWorldModel(3631, 3.99, 2140.0391, -2271.5391, 14.1016)
RemoveWorldModel(3631, 3.99, 2149.1406, -2266.9063, 12.8750)
RemoveWorldModel(3631, 3.99, 2142.3047, -2255.8984, 12.8750)
RemoveWorldModel(5268, 15.82, 2143.3047, -2267.4531, 20.2969)
RemoveWorldModel(3577, 2.42, 2131.3281, -2274.6484, 16.0156)
RemoveWorldModel(3577, 2.42, 2131.3438, -2274.6641, 14.4688)
RemoveWorldModel(3577, 2.42, 2126.8359, -2270.4297, 16.0156)
RemoveWorldModel(3577, 2.42, 2126.8516, -2270.4453, 14.4688)
RemoveWorldModel(5171, 4.50, 2124.9453, -2275.4531, 20.1406)
RemoveWorldModel(5260, 6.51, 2161.3438, -2264.9141, 14.0156)
RemoveWorldModel(3631, 3.99, 2163.3750, -2262.6875, 16.3516)
RemoveWorldModel(3631, 3.99, 2161.8516, -2264.0938, 16.3516)
RemoveWorldModel(5262, 7.97, 2152.7109, -2256.7813, 15.2109)
RemoveWorldModel(5269, 4.81, 2146.3750, -2248.7969, 14.6172)
RemoveWorldModel(3633, 1.01, 2142.9141, -2256.3359, 13.9297)
RemoveWorldModel(3633, 1.01, 2140.3828, -2254.1016, 13.9297)
RemoveWorldModel(3632, 0.65, 2144.2969, -2258.1484, 13.9297)
RemoveWorldModel(3633, 1.01, 2150.6953, -2252.9141, 16.2344)
RemoveWorldModel(3632, 0.65, 2149.8125, -2253.3672, 16.2344)
RemoveWorldModel(3633, 1.01, 2158.0078, -2257.2656, 16.2188)
RemoveWorldModel(3633, 1.01, 2154.5078, -2254.4766, 14.2109)
RemoveWorldModel(3633, 1.01, 2153.7734, -2253.0859, 14.2031)
RemoveWorldModel(3632, 0.65, 2150.6641, -2251.5547, 12.7656)
RemoveWorldModel(3632, 0.65, 2150.2813, -2250.8516, 12.7656)
RemoveWorldModel(5132, 15.14, 2163.2891, -2251.6094, 14.1406)
RemoveWorldModel(3633, 1.01, 2167.6641, -2256.7813, 12.7500)
RemoveWorldModel(3633, 1.01, 2167.6641, -2256.7813, 13.7109)
RemoveWorldModel(3633, 1.01, 2167.6641, -2256.7813, 14.6719)
RemoveWorldModel(3577, 2.42, 2170.0781, -2257.6641, 16.0391)
RemoveWorldModel(5259, 6.71, 2168.8438, -2246.7813, 13.9375)
RemoveWorldModel(3632, 0.65, 2167.8047, -2257.3516, 16.3828)
RemoveWorldModel(3632, 0.65, 2167.1719, -2257.1250, 16.4063)
RemoveWorldModel(3632, 0.65, 2169.3516, -2258.0703, 17.2422)
RemoveWorldModel(3632, 0.65, 2168.8281, -2257.5234, 17.2500)
RemoveWorldModel(3632, 0.65, 2158.5703, -2251.0156, 15.8125)
RemoveWorldModel(3632, 0.65, 2158.0469, -2250.5078, 15.8125)
RemoveWorldModel(5261, 7.41, 2152.2578, -2239.4609, 14.5000)
RemoveWorldModel(3577, 2.42, 2160.5625, -2234.8047, 14.5625)
RemoveWorldModel(3577, 2.42, 2160.5781, -2234.8203, 13.0234)
RemoveWorldModel(3630, 5.84, 2217.5859, -2284.6641, 15.2344)
RemoveWorldModel(3630, 5.84, 2227.3828, -2274.7891, 15.2344)
RemoveWorldModel(3585, 5.84, 2231.8359, -2284.6406, 14.1563)
RemoveWorldModel(3585, 5.84, 2234.4297, -2287.3906, 14.1563)
RemoveWorldModel(3564, 4.56, 2243.4766, -2278.0938, 14.1563)
RemoveWorldModel(3585, 5.84, 2246.4297, -2269.3672, 14.1563)
RemoveWorldModel(3585, 5.84, 2252.7031, -2263.0859, 14.1563)
RemoveWorldModel(3564, 4.56, 2262.2813, -2259.2891, 14.1563)
RemoveWorldModel(3630, 5.84, 2242.5156, -2289.0547, 15.1953)
RemoveWorldModel(3577, 2.42, 2249.1875, -2281.2266, 14.4688)
RemoveWorldModel(3577, 2.42, 2249.1719, -2281.2031, 16.0156)
RemoveWorldModel(3630, 5.84, 2261.6016, -2270.0313, 15.1953)
RemoveWorldModel(3577, 2.42, 2234.1094, -2269.5469, 16.0156)
RemoveWorldModel(3577, 2.42, 2234.1250, -2269.5703, 14.4688)
RemoveWorldModel(3577, 2.42, 2240.6094, -2266.6719, 14.4688)
RemoveWorldModel(3577, 2.42, 2240.5938, -2266.6563, 16.0156)
RemoveWorldModel(3631, 2.42, 2243.1250, -2258.4531, 14.2891)
RemoveWorldModel(3633, 1.01, 2241.2031, -2256.6563, 15.3359)
RemoveWorldModel(3633, 1.01, 2243.7344, -2258.8906, 15.3359)
RemoveWorldModel(3577, 2.42, 2246.7031, -2251.8906, 14.4688)
RemoveWorldModel(3632, 0.65, 2245.1172, -2260.7031, 15.3359)
RemoveWorldModel(3576, 3.20, 2253.5469, -2253.9375, 15.2422)


Udjem u MAP EDITOR dodem kod objekata ukucam "/start mapa" i odaljim se u LV pa u SF pa nazad do objekata i objekti nisu obrisani :SS Moze li mi itko pomoci ?
Poslednja Izmena: Decembar 30, 2012, 05:52:01 PRE PODNE od [UC] Tsukasa
Mike Marquez | House of Rave is Trippy Place ! |

ides na start pa ono search i nadjes notepad u njega upises to sto treba i onda File>Save As pa tu imas Save as type i ti klikni i izaberi All Files i onda tu iznad upisi obrisani.lua i save i tako isto i za meta.xml i to je to  ;)  ;D