Jump to content

Script de map


ImPeRiO

Recommended Posts

por ejemplo esto son autos osea un map y carga como resource y no map

function savecarpos(thePlayer,cmd) 
    local veh = getPedOccupiedVehicle(thePlayer) 
    local x,y,z = getElementPosition(veh) 
    local xx,yy,zz = getElementRotation(veh) 
    local model = getElementModel(veh) 
    outputConsole ( "createVehicle("..tostring(model)..","..x..","..y..","..z..","..xx..","..yy..","..zz..")", thePlayer ) 
end 
addCommandHandler("saveveh",savecarpos) 
  
 createVehicle(429,321.29296875,-1809.318359375,4.1593894958496,358.83544921875,0.0274658203125,179.93957519531) 
 createVehicle(543,730.4033203125,-1818.2919921875,12.31348991394,0.6427001953125,0.02197265625,269.13208007813) 
 createVehicle(567,764.6435546875,-1661.16796875,4.2678456306458,358.22021484375,356.72607421875,91.724853515625) 
 createVehicle(587,343.859375,-1809.078125,4.253936290741,1.3787841796875,359.92309570313,0.5328369140625) 
 createVehicle(423,311.7119140625,-1788.7216796875,4.5962352752686,0.845947265625,359.00024414063,359.736328125) 
 createVehicle(475,736.458984375,-1818.208984375,12.396903038025,2.6312255859375,356.044921875,265.72631835938) 
 createVehicle(599,1513.283203125,-1460.8271484375,9.6900320053101,0.516357421875,359.99450683594,359.62097167969) 
 createVehicle(528,1517.9296875,-1460.8984375,9.5451173782349,0.3076171875,0,358.77502441406) 
 createVehicle(490,1514.5439453125,-1479.88671875,9.6287126541138,0.406494140625,359.99450683594,270) 
 createVehicle(562,1521.732421875,-1460.9306640625,9.1597099304199,359.54406738281,359.99450683594,179.10461425781) 
 createVehicle(427,1538.2568359375,-1473.361328125,9.632080078125,0.0164794921875,0,358.95080566406) 
 createVehicle(562,1513.47265625,-1446.46875,13.118132591248,359.54406738281,5.2349853515625,91.873168945313) 
 createVehicle(601,1525.4990234375,-1461.6962890625,9.2587404251099,0.010986328125,0,0.8734130859375) 
 createVehicle(523,1604.208984375,-1683.4091796875,5.4610438346863,359.21997070313,0,270.33508300781) 
 createVehicle(523,1604.2822265625,-1687.89453125,5.4575905799866,359.02221679688,0,270.82946777344) 
 createVehicle(523,1604.2939453125,-1691.7626953125,5.4600706100464,359.208984375,359.99450683594,267.37426757813) 
 createVehicle(523,1604.14453125,-1695.3896484375,5.4559297561646,359.09362792969,0,274.11437988281) 
 createVehicle(523,1604.1484375,-1699.607421875,5.4561715126038,359.14855957031,0,267.64343261719) 
 createVehicle(523,1604.1142578125,-1703.724609375,5.4582109451294,359.08813476563,0.010986328125,270.46142578125) 
 createVehicle(427,1545.8525390625,-1684.46875,6.0224938392639,0.0164794921875,0,269.65942382813) 
 createVehicle(427,1545.646484375,-1680.0703125,6.0223793983459,0.0164794921875,0.0054931640625,268.70361328125) 
 createVehicle(596,1536.125,-1678.6123046875,13.105146408081,359.6923828125,359.99450683594,178.97277832031) 
 createVehicle(596,1536.341796875,-1666.4716796875,13.108006477356,359.70336914063,359.99450683594,178.97277832031) 
 createVehicle(596,1577.3662109375,-1615.0634765625,13.102165222168,359.68688964844,0,131.18774414063) 
 createVehicle(596,1566.2412109375,-1615.529296875,13.101774215698,359.70336914063,359.92309570313,135.01098632813) 
 createVehicle(599,1595.5380859375,-1711.8310546875,6.0765900611877,0.52734375,359.99450683594,0.318603515625) 
 createVehicle(599,1591.6611328125,-1711.6953125,6.0805249214172,0.516357421875,359.99450683594,358.93981933594) 
 createVehicle(599,1587.646484375,-1711.576171875,6.0783324241638,0.5218505859375,359.99450683594,359.54956054688) 
 createVehicle(599,1583.453125,-1711.4853515625,6.0803389549255,0.516357421875,359.99450683594,0.186767578125) 
 createVehicle(596,1578.45703125,-1711.9384765625,5.6123538017273,359.6923828125,359.99450683594,359.89562988281) 
 createVehicle(596,1574.4716796875,-1711.8115234375,5.611762046814,359.6923828125,0,358.06091308594) 
 createVehicle(596,1570.3984375,-1712.1259765625,5.6647024154663,359.83520507813,0,0.1702880859375) 
 createVehicle(596,1558.919921875,-1712.037109375,5.621720790863,359.71984863281,0,0.4119873046875) 
 createVehicle(596,1527.9990234375,-1688.1171875,5.6119198799133,359.6923828125,359.99450683594,89.675903320313) 
 createVehicle(601,1564.630859375,-1712.5615234375,5.6493992805481,0.010986328125,0,0.823974609375) 
 createVehicle(596,1527.8359375,-1684.02734375,5.6120557785034,359.6923828125,0,89.71435546875) 
 createVehicle(411,1530.51953125,-1644.125,5.6177086830139,0,0,0.1922607421875) 
 createVehicle(411,1534.681640625,-1644.3203125,5.6177091598511,0,0,359.22546386719) 
 createVehicle(522,1538.5537109375,-1644.1435546875,5.4472641944885,358.73107910156,0,357.53356933594) 
 createVehicle(522,1546.54296875,-1650.908203125,5.4520020484924,358.79150390625,0,269.35729980469) 
 createVehicle(596,1546.39453125,-1654.9130859375,5.6119289398193,359.6923828125,0,269.59899902344) 
 createVehicle(596,1546.4453125,-1659.013671875,5.6109457015991,359.68688964844,0,270.46691894531) 
 createVehicle(596,1545.8447265625,-1663.369140625,5.6120157241821,359.6923828125,359.99450683594,270.26916503906) 
 createVehicle(497,1567.0908203125,-1652.9013671875,28.580690383911,0.2471923828125,359.71984863281,92.367553710938) 
 createVehicle(451,1526.671875,-1643.6708984375,5.597282409668,359.53308105469,359.99450683594,0.3021240234375) 
 createVehicle(437,1801.310546875,-1906.197265625,13.533012390137,0.0164794921875,0.0274658203125,299.94323730469) 
 createVehicle(437,1802.0009765625,-1912.46875,13.529179573059,0.010986328125,0.098876953125,301.0693359375) 
 createVehicle(437,1801.9072265625,-1918.9306640625,13.526443481445,0.010986328125,0.02197265625,300.18493652344) 
 createVehicle(437,1802.087890625,-1924.9150390625,13.523477554321,0.010986328125,0.02197265625,298.828125) 
 createVehicle(431,1779.265625,-1906.921875,13.482857704163,359.45068359375,359.96704101563,57.299194335938) 
 createVehicle(431,1778.455078125,-1914.373046875,13.483870506287,359.45617675781,359.98901367188,56.409301757813) 
 createVehicle(431,1779.0595703125,-1921.611328125,13.487091064453,359.46716308594,0.0714111328125,55.464477539063) 
 createVehicle(431,1778.8544921875,-1928.7216796875,13.485743522644,359.49462890625,0.0933837890625,57.041015625) 
 createVehicle(402,1776.37109375,-1885.8876953125,13.218332290649,0.0054931640625,0,269.6923828125) 
 createVehicle(518,1790.78125,-1885.5712890625,13.067925453186,0.0054931640625,359.91760253906,268.34106445313) 
 createVehicle(498,1836.55859375,-1854.48828125,13.453766822815,359.4287109375,0.142822265625,0.90087890625) 
 createVehicle(480,1841.0654296875,-1870.9697265625,13.162157058716,359.736328125,359.99450683594,358.83544921875) 
 createVehicle(585,1834.767578125,-1871.19140625,12.971707344055,359.53857421875,359.89013671875,359.58801269531) 
 createVehicle(585,1764.83203125,-1860.6982421875,13.080035209656,359.59899902344,5.0482177734375,90.736083984375) 
 createVehicle(533,1877.7705078125,-1926.7490234375,13.173785209656,359.99450683594,5.4437255859375,269.81323242188) 
 createVehicle(533,2052.3056640625,-1903.640625,13.255942344666,359.98901367188,359.96704101563,359.03869628906) 
 createVehicle(579,2062.2021484375,-1920.1064453125,13.472823143005,359.26391601563,0.0054931640625,178.65417480469) 
 createVehicle(516,2065.802734375,-1903.97265625,13.380964279175,359.98901367188,0,0.1593017578125) 
 createVehicle(448,2100.728515625,-1785.0234375,12.995652198792,359.45617675781,359.85717773438,180.69213867188) 
 createVehicle(448,2102.0908203125,-1784.98046875,12.988326072693,359.35729980469,359.85168457031,181.44470214844) 
 createVehicle(448,2104.0107421875,-1784.884765625,12.987784385681,359.01672363281,359.92858886719,181.4501953125) 
 createVehicle(535,2333.3984375,-1908.638671875,12.925892829895,10.338134765625,359.75830078125,181.19201660156) 
 createVehicle(409,1666.853515625,-1692.8193359375,15.409365653992,0,0,271.02172851563) 
 createVehicle(409,1667.7646484375,-1697.2490234375,15.409341812134,0,0,269.96154785156) 
 createVehicle(409,1668.1162109375,-1700.6845703125,15.409340858459,0,359.99450683594,270.4833984375) 
 createVehicle(420,1668.6025390625,-1704.19921875,15.389129638672,359.73083496094,359.99450683594,269.12109375) 
 createVehicle(420,1668.33984375,-1707.4091796875,15.387804031372,359.72534179688,0,271.41174316406) 
 createVehicle(574,1645.8759765625,-1702.423828125,15.334540367126,0,359.99450683594,89.67041015625) 
 createVehicle(574,1645.9326171875,-1705.046875,15.334533691406,0,359.99450683594,91.455688476563) 
 createVehicle(574,1646.5234375,-1708.361328125,15.334534645081,0.032958984375,359.98901367188,92.559814453125) 
 createVehicle(420,1669.03125,-1716.1640625,15.388100624084,359.73083496094,359.98352050781,268.76403808594) 
 createVehicle(506,1672.212890625,-1701.361328125,20.188812255859,359.95056152344,359.99450683594,269.50012207031) 
 createVehicle(429,1672.25390625,-1704.53515625,20.164060592651,359.99450683594,0,268.53881835938) 
 createVehicle(581,1666.1015625,-1720.724609375,20.079431533813,359.32983398438,0,176.83044433594) 
 createVehicle(419,1646.6494140625,-1721.0205078125,20.274641036987,0,0,89.467163085938) 
 createVehicle(419,1644.75390625,-1696.205078125,20.260580062866,359.77478027344,0.1483154296875,358.72009277344) 
 createVehicle(419,1681.7919921875,-1474.5634765625,13.258025169373,0,6.0150146484375,269.66491699219) 
 createVehicle(533,1694.3203125,-1507.8486328125,13.255496025085,359.99450683594,0,179.72534179688) 
 createVehicle(533,1808.5849609375,-1433.1708984375,13.138776779175,359.99450683594,0,178.91784667969) 
 createVehicle(481,1906.5859375,-1434.638671875,15.880157470703,358.67065429688,359.99450683594,48.762817382813) 
 createVehicle(481,1908.32421875,-1434.515625,15.885579109192,358.71459960938,0,45.54931640625) 
 createVehicle(481,1965.099609375,-1419.90234375,13.31095123291,14.381103515625,359.67041015625,106.69372558594) 
 createVehicle(481,1966.3642578125,-1424.765625,13.326803207397,14.024047851563,1.7852783203125,97.239990234375) 
 createVehicle(481,1964.580078125,-1431.984375,13.341529846191,14.287719726563,359.89562988281,75.38818359375) 
 createVehicle(416,2037.0546875,-1426.953125,17.141166687012,0.0384521484375,359.60998535156,359.57702636719) 
 createVehicle(416,2036.8447265625,-1419.50390625,17.141248703003,0.0384521484375,359.60998535156,359.01123046875) 
 createVehicle(416,2024.66796875,-1409.4072265625,17.141984939575,0.0384521484375,359.60998535156,89.67041015625) 
 createVehicle(416,1176.9697265625,-1308.9169921875,14.018405914307,3.3837890625,358.35754394531,90.296630859375) 
 createVehicle(416,1177.513671875,-1338.9013671875,14.05499458313,2.274169921875,0.1043701171875,90.2197265625) 
 createVehicle(422,1211.4228515625,-1322.9423828125,13.459171295166,359.13757324219,354.02893066406,358.50036621094) 
 createVehicle(519,1429.90234375,-2493.2578125,14.472977638245,0.54931640625,359.99450683594,268.56079101563) 
 createVehicle(519,1429.9111328125,-2593.1953125,14.467481613159,0.5328369140625,359.99450683594,269.97802734375) 
 createVehicle(535,1846.583984375,-2643.794921875,13.310353279114,359.79125976563,359.98901367188,0.0823974609375) 
 createVehicle(513,1806.4189453125,-2622.232421875,14.100567817688,9.07470703125,0,316.669921875) 
 createVehicle(513,1830.4560546875,-2621.7412109375,14.099370002747,9.085693359375,0,311.14379882813) 
 createVehicle(487,1809.2373046875,-2410.7451171875,13.693243980408,0.3460693359375,359.62646484375,184.27368164063) 
 createVehicle(487,1887.880859375,-2292.9697265625,13.723148345947,0.2691650390625,359.69787597656,274.47143554688) 
 createVehicle(487,1880.75,-2273.1435546875,13.727255821228,0.2581787109375,359.70886230469,278.45947265625) 
 createVehicle(583,1973.962890625,-2179.98046875,13.087228775024,0.7855224609375,0,0.999755859375) 
 createVehicle(583,1976.7958984375,-2179.8857421875,13.087280273438,0.7855224609375,0,0.670166015625) 
 createVehicle(583,1980.630859375,-2179.8740234375,13.087207794189,0.7855224609375,0,359.89013671875) 
 createVehicle(560,1949.734375,-2181.01171875,13.259553909302,359.8681640625,359.99450683594,179.46716308594) 
 createVehicle(560,1944.95703125,-2181.296875,13.252360343933,359.8681640625,359.99450683594,179.80224609375) 
 createVehicle(560,1560.59375,-2254.1953125,13.252654075623,359.90112304688,0,269.31335449219) 
 createVehicle(560,1400.62109375,-2261.994140625,13.251895904541,359.8681640625,359.99450683594,180.63171386719) 
 createVehicle(549,1451.162109375,-2225.2314453125,13.243985176086,359.96704101563,359.9560546875,0.50537109375) 
 createVehicle(549,1365.1162109375,-2217.7646484375,13.244039535522,359.96704101563,359.9560546875,90.873413085938) 
 createVehicle(439,1391.6787109375,-2242.4111328125,13.442797660828,0.054931640625,359.99450683594,359.29138183594) 
 createVehicle(439,1495.630859375,-2211.6552734375,13.442726135254,0.054931640625,0,0.85693359375) 
 createVehicle(480,1533.205078125,-2211.8037109375,13.327200889587,359.736328125,0,359.4287109375) 
 createVehicle(480,1549.703125,-2361.482421875,13.328369140625,359.74182128906,0,180.28564453125) 
 createVehicle(485,1637.8173828125,-2324.263671875,13.116575241089,359.54956054688,352.06787109375,271.34582519531) 
 createVehicle(485,1642.796875,-2324.103515625,13.118339538574,359.57153320313,352.07885742188,271.69189453125) 
 createVehicle(485,1647.7880859375,-2323.998046875,13.114909172058,359.53308105469,352.05688476563,267.90710449219) 
 createVehicle(434,1408.083984375,-2364.8583984375,13.516768455505,359.53857421875,0,180.05493164063) 
 createVehicle(434,1388.1884765625,-2331.728515625,13.514278411865,359.51110839844,0,0.296630859375) 
 createVehicle(492,1365.4052734375,-2358.400390625,13.328665733337,0.010986328125,359.99450683594,90.955810546875) 
 createVehicle(587,1407.982421875,-2313.7177734375,13.273341178894,359.65942382813,0,359.81872558594) 
 createVehicle(507,1387.4296875,-2261.9052734375,13.372554779053,359.76379394531,0,358.91784667969) 
 createVehicle(562,1365.66796875,-2256.8095703125,13.206246376038,359.54406738281,0,89.912109375) 
 createVehicle(495,1245.828125,-2033.6552734375,60.182556152344,2.79052734375,0.0823974609375,88.670654296875) 
 createVehicle(475,1245.5419921875,-2030.2373046875,59.643848419189,1.461181640625,359.97802734375,90.576782226563) 
 createVehicle(442,1276.6328125,-2009.775390625,58.772258758545,359.02770996094,0.10986328125,271.06567382813) 
 createVehicle(500,1277.041015625,-2045.1103515625,59.152507781982,357.76977539063,359.736328125,268.72009277344) 
 createVehicle(559,1246.06640625,-2008.7685546875,59.474731445313,1.6644287109375,0.02197265625,89.088134765625) 
 createVehicle(411,1277.2392578125,-2042.0400390625,58.753383636475,359.21447753906,359.76928710938,270.21423339844) 
 createVehicle(451,1245.6005859375,-2019.1376953125,59.544219970703,1.2744140625,359.97802734375,90.648193359375) 
 createVehicle(451,1280.1357421875,-1814.9794921875,13.091786384583,359.45617675781,359.98901367188,269.07165527344) 
 createVehicle(560,1938.2802734375,-2086.556640625,13.268450737,0.0274658203125,359.90112304688,91.153564453125) 
 createVehicle(579,1947.2353515625,-2126.791015625,13.476937294006,359.45068359375,359.92858886719,89.6923828125) 
 createVehicle(494,1931.9345703125,-2141.4833984375,13.457158088684,359.99450683594,359.99450683594,0.4559326171875) 
 createVehicle(474,1879.736328125,-2020.796875,13.153369903564,359.96704101563,0.0054931640625,359.6484375) 
 createVehicle(474,1886.0283203125,-2020.962890625,13.15389251709,359.93408203125,0.0494384765625,0.6976318359375) 
 createVehicle(408,1807.1083984375,-2022.5625,14.079169273376,1.1151123046875,359.95056152344,89.247436523438) 
 createVehicle(408,1808.1103515625,-2030.677734375,14.088718414307,1.0821533203125,359.99450683594,88.48388671875) 
 createVehicle(408,1807.814453125,-2038.9384765625,14.0872631073,1.197509765625,0.0494384765625,90.494384765625) 
 createVehicle(433,1183.6796875,-1264.107421875,15.627229690552,0,359.99450683594,359.18701171875) 
 createVehicle(485,1105.28515625,-1313.98828125,13.341239929199,359.57153320313,0.7086181640625,91.0986328125) 
 createVehicle(485,1098.822265625,-1314.103515625,13.342076301575,359.54956054688,0.6591796875,90.933837890625) 
 createVehicle(485,1092.6748046875,-1314.1953125,13.34555721283,359.56604003906,0.6591796875,90.774536132813) 
 createVehicle(496,1050.1591796875,-1285.7490234375,13.18528842926,0.0164794921875,356.6162109375,0.41748046875) 
 createVehicle(518,956.28125,-1181.3017578125,16.616191864014,359.97802734375,359.912109375,270.68115234375) 
 createVehicle(483,956.236328125,-1187.2568359375,16.93755531311,359.89562988281,0,269.76928710938) 
 createVehicle(573,849.2294921875,-1294.0537109375,14.286001205444,359.208984375,359.80224609375,272.79602050781) 
 createVehicle(573,768.7509765625,-1090.9189453125,24.731729507446,0.0714111328125,359.02221679688,1.845703125) 
 createVehicle(587,661.3984375,-1288.04296875,13.186493873596,359.65393066406,0,179.62646484375) 
 createVehicle(565,661.287109375,-1281.8916015625,13.08607006073,359.58801269531,359.99450683594,180.34057617188) 
 createVehicle(474,661.2236328125,-1260.2861328125,13.226638793945,0.032958984375,0.15380859375,0.1373291015625) 
 createVehicle(474,530.3740234375,-1290.70703125,17.004816055298,359.97253417969,0,357.56103515625) 
 createVehicle(579,585.5908203125,-1246.2275390625,17.823127746582,0.7086181640625,2.4993896484375,164.34448242188) 
 createVehicle(517,503.189453125,-1455.828125,16.249834060669,11.195068359375,359.52758789063,146.07421875) 
 createVehicle(436,686.728515625,-1569.5244140625,14.00754070282,359.39025878906,359.96704101563,0.1593017578125) 
 createVehicle(479,1344.125,-1754.68359375,13.150276184082,359.65393066406,0.15380859375,270.67565917969) 
 createVehicle(489,1211.5810546875,-1312.3291015625,13.61498260498,359.76379394531,5.350341796875,179.78576660156) 
 createVehicle(440,1211.5966796875,-1349.544921875,13.588926315308,359.17602539063,353.48510742188,0.845947265625) 

Link to comment
Alguien conoce un progama que a un valor de suba un numero esque lo que quiero hacer es esto
col0 = engineLoadCOL('COL/gp_land01.col') 
dff0 = engineLoadDFF("DFF/lod_gp_land01.dff", 0) 
engineSetModelLODDistance(5171, 500) 
engineReplaceCOL(col0, 5171) 
engineReplaceModel(dff0, 5171) 
col1 = engineLoadCOL('COL/gp_land02.col') 
dff1 = engineLoadDFF("DFF/lod_gp_land02.dff", 0) 
engineSetModelLODDistance(5172, 500) 
engineReplaceCOL(col1, 5172) 
engineReplaceModel(dff1, 5172) 

Y que siga asi por que no quiero escribir otras 2000 lineas HELP

En esos casos, yo solamente lo ago a mano.

Es la unica solución.

Link to comment
Alguien conoce un progama que a un valor de suba un numero esque lo que quiero hacer es esto
col0 = engineLoadCOL('COL/gp_land01.col') 
dff0 = engineLoadDFF("DFF/lod_gp_land01.dff", 0) 
engineSetModelLODDistance(5171, 500) 
engineReplaceCOL(col0, 5171) 
engineReplaceModel(dff0, 5171) 
col1 = engineLoadCOL('COL/gp_land02.col') 
dff1 = engineLoadDFF("DFF/lod_gp_land02.dff", 0) 
engineSetModelLODDistance(5172, 500) 
engineReplaceCOL(col1, 5172) 
engineReplaceModel(dff1, 5172) 

Y que siga asi por que no quiero escribir otras 2000 lineas HELP

En esos casos, yo solamente lo ago a mano.

Es la unica solución.

No entendi

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...