SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 03/05/2016, 02:29 PM   #1
RedSmokeR
Little Clucker
 
Join Date: May 2016
Posts: 27
Reputation: 0
Post Distance In Money Bag Script.

Hi Guyz,i want to make a distance system between player and money bag,that will show the distance between the player and moneybag,Here's MoneyBag Script:
Code:
#include <a_samp>

enum mbinfo
{
	Float:XPOS,
	Float:YPOS,
	Float:ZPOS,
	Position[50]
};

new Float:MBSPAWN[][mbinfo] =
{
  // Positions, (X, Y, Z, Location)
    {713.073852, 912.842224, -19.096578, "The Quarry"},
    {688.145507, 844.974914, -28.631895, "The Quarry"},
    {586.370788, 913.020202, -34.194843, "The Quarry"},
    {503.419708, 970.914550, -24.997589, "The Quarry"},
    {499.296356, 971.732788, -25.047336, "The Quarry"},
    {458.502136, 891.120666, -27.374114, "The Quarry"},
    {628.248901, 735.500732, -0.903092, "The Quarry"},
    {627.924438, 1046.961303, 25.122577, "The Quarry"},
    {792.460510, 915.044189, 20.112213, "The Quarry"},
    {320.508636, 848.626281, 19.967500, "The Quarry"},
    {361.191741, 829.137329, 21.289638, "The Quarry"},
    {462.726348, 973.174621, 5.403401, "The Quarry"},
    {484.878112, 962.291137, 5.981633, "The Quarry"},
    {591.441650, 706.663513, 9.760972, "The Quarry"},
    {770.800415, 746.815368, 27.704566, "The Quarry"},
    {434.217102, 898.344543, 2.117520, "The Quarry"},
    {488.367218, 810.184814, 1.804343, "The Quarry"},
    {528.185913, 816.695800, -11.858360, "The Quarry"},
    {568.221130, 824.427429, -22.127143, "The Quarry"},
    {575.399353, 872.569091, -35.329307, "The Quarry"},
    {623.156188, 892.809875, -41.102825, "The Quarry"},
    {418.428070, 1409.390625, 8.565642, "The Petroleum"},
    {475.849548, 1325.585083, 11.321235, "The Petroleum"},
    {541.844848, 1556.681152, 0.482253, "The Petroleum"},
    {597.308898, 1535.999389, 3.586513, "The Petroleum"},
    {669.860534, 1422.952880, 10.887602, "The Petroleum"},
    {559.382812, 1371.361328, 16.322978, "The Petroleum"},
    {438.514587, 1268.192016, 9.017544, "The Petroleum"},
    {585.843322, 1485.281738, 12.073791, "The Petroleum"},
    {229.331573, 1478.390502, 10.151371, "Green Palms"},
    {152.056015, 1447.338256, 10.156622, "Green Palms"},
	{133.937881, 1377.117065, 10.158605, "Green Palms"},
	{205.768768, 1352.408081, 10.151306, "Green Palms"},
    {210.495468, 1395.340332, 10.151283, "Green Palms"},
	{215.108322, 1467.936157, 14.921875, "Green Palms"},
	{215.115737, 1467.059326, 23.734375, "Green Palms"},
    {187.969940, 1371.305786, 23.734375, "Green Palms"},
	{246.766662, 1360.596679, 10.707500, "Green Palms"},
	{246.478836, 1362.749633, 23.370285, "Green Palms"},
    {222.136520, 1424.068847, 10.585937, "Green Palms"},
   	{95.363838, 1831.129028, 17.205287, "Area 69"},
	{189.325698, 1940.272949, 17.213102, "Area 69"},
	{193.302978, 1940.295654, 17.212646, "Area 69"},
	{261.569244, 1807.425537, 25.498508, "Area 69"},
	{201.875762, 1873.929809, 12.774854, "Area 69"},
	{238.924987, 1863.955078, 11.460937, "Area 69"},
	{221.148391, 1822.212890, 7.531250, "Area 69"},
	{245.811523, 1813.676025, 4.710937, "Area 69"},
	{257.617523, 1819.045043, 1.007812, "Area 69"},
	{280.195648, 1840.170532, 11.534780, "Area 69"},
	{282.369171, 1874.492065, 8.757812, "Area 69"},
	{266.978424, 1858.773071, 8.757812, "Area 69"},
	{262.194854, 1886.633789, -30.390625, "Area 69"},
	{268.940002, 1883.556152, -30.093750, "Area 69"},
	{268.277374, 1891.600708, -12.862023, "Area 69"},
	{268.972656, 1876.503906, -3.470956, "Area 69"},
	{275.735778, 1892.228881, 8.437500, "Area 69"},
	{246.438491, 1830.403930, 12.210659, "Area 69"},
	{134.512237, 1952.987426, 18.978763, "Area 69"},
	{-41.510822, 1178.722290, 18.961349, "Fort Carson"},
	{2.213922, 1119.721435, 19.450517, "Fort Carson"},
	{17.874195, 1076.159057, 19.804994, "Fort Carson"},
	{-95.816307, 1164.927001, 19.312730, "Fort Carson"},
	{-100.357772, 1127.539672, 19.323959, "Fort Carson"},
	{-117.773254, 1132.638061, 19.326152, "Fort Carson"},
	{-190.864791, 1218.766357, 19.306653, "Fort Carson"},
	{-218.729446, 1147.502807, 19.328531, "Fort Carson"},
	{-378.680541, 1103.303466, 19.314443, "Fort Carson"},
	{-312.767395, 1175.458740, 19.307266, "Fort Carson"},
	{-209.111099, 1216.520629, 23.436161, "Fort Carson"},
	{-170.258102, 1176.971801, 24.155366, "Fort Carson"},
	{-172.726379, 1182.572753, 26.504249, "Fort Carson"},
	{-824.523559, 1444.919677, 13.547593, "Las Barrancas"},
	{-811.227539, 1479.601074, 26.136028, "Las Barrancas"},
	{-778.594482, 1477.787719, 28.764667, "Las Barrancas"},
	{-801.825866, 1513.152099, 21.131435, "Las Barrancas"},
	{-730.415039, 1539.924682, 40.065593, "Las Barrancas"},
	{-733.456970, 1553.795654, 39.189163, "Las Barrancas"},
	{-737.410278, 1593.716186, 26.656929, "Las Barrancas"},
	{-774.510375, 1616.915771, 26.687776, "Las Barrancas"},
	{-835.524841, 1597.141967, 26.505504, "Las Barrancas"},
	{-888.960021, 1553.529907, 25.501276, "Las Barrancas"},
	{-862.112548, 1536.867919, 25.737701, "Las Barrancas"},
	{-856.268554, 1528.398559, 25.737701, "Las Barrancas"},
	{-303.303192, 2744.042236, 61.440700, "Las Payasadas"},
	{-210.072189, 2814.655273, 64.240028, "Las Payasadas"},
	{-164.061630, 2767.596435, 62.252616, "Las Payasadas"},
	{-166.319808, 2730.175537, 65.696540, "Las Payasadas"},
	{-213.414306, 2719.982177, 62.687500, "Las Payasadas"},
	{-287.109222, 2687.127441, 65.852340, "Las Payasadas"},
	{-268.482818, 2667.310546, 62.670055, "Las Payasadas"},
	{-282.033843, 2651.087402, 67.323928, "Las Payasadas"},
	{-307.318756, 2652.917236, 68.252456, "Las Payasadas"},
	{-237.491958, 2663.685546, 63.858531, "Las Payasadas"},
	{-153.610809, 2711.833984, 62.144855, "Las Payasadas"},
	{-235.506256, 2826.033935, 61.760990, "Las Payasadas"},
	{123.295402, 2427.276123, 16.638261, "Verdant Meadows"},
	{152.007369, 2417.473388, 19.140531, "Verdant Meadows"},
	{209.578689, 2415.689697, 16.322700, "Verdant Meadows"},
	{237.976455, 2432.690185, 16.626625, "Verdant Meadows"},
	{276.434844, 2430.887695, 16.041940, "Verdant Meadows"},
	{313.228027, 2415.748046, 19.511663, "Verdant Meadows"},
	{349.762481, 2451.393310, 20.452396, "Verdant Meadows"},
	{412.917022, 2432.326904, 16.054676, "Verdant Meadows"},
	{435.414642, 2561.705078, 16.089130, "Verdant Meadows"},
	{414.310363, 2533.625732, 19.148437, "Verdant Meadows"},
	{401.180969, 2544.245849, 19.631122, "Verdant Meadows"},
	{390.938781, 2607.264160, 16.049514, "Verdant Meadows"},
	{334.645782, 2677.588867, 15.882289, "Verdant Meadows"},
	{306.708404, 2629.444335, 16.256523, "Verdant Meadows"},
	{271.063079, 2611.989257, 16.041421, "Verdant Meadows"},
	{172.383773, 2606.412597, 16.116966, "Verdant Meadows"},
	{154.106018, 2630.396240, 16.041749, "Verdant Meadows"},
	{115.394462, 2631.614501, 15.986257, "Verdant Meadows"},
	{104.371681, 2582.203613, 16.044742, "Verdant Meadows"},
	{14.670138, 2560.055419, 15.932084, "Verdant Meadows"},
	{9.903661, 2435.500732, 16.019382, "Verdant Meadows"},
 	{-2452.078125, 2438.356933, 14.555831, "Bayside"},
	{-2417.809570, 2456.555908, 25.779113, "Bayside"},
	{-2406.699462, 2469.222656, 12.183320, "Bayside"},
	{-2415.591552, 2386.210205, 7.998282, "Bayside"},
	{-2386.701904, 2398.892578, 8.845354, "Bayside"},
	{-2407.274902, 2477.111816, 11.345425, "Bayside"},
	{-2403.085449, 2553.951904, 23.601562, "Bayside"},
	{-2286.216552, 2572.171142, 23.416145, "Bayside"},
	{-2262.795410, 2573.447753, 8.214822, "Bayside"},
	{-2675.145996, 2322.950927, 25.147560, "Bayside"},
	{-2336.536376, 2480.192138, 1.275272, "Bayside"},
	{-2625.399658, 2245.826171, 6.694106, "Bayside"},
	{-2634.328125, 2240.306152, 14.622048, "Bayside"},
	{-2627.168457, 2234.247070, 12.825107, "Bayside"},
	{-2629.958984, 2243.830566, 12.611998, "Bayside"},
	{-2624.168212, 2245.396972, 6.268455, "Bayside"},
	{-2551.672851, 2432.413330, 18.866594, "Bayside"},
	{-2293.487060, 2225.002685, 4.982191, "Bayside"},
	{-2578.585693, 2520.823730, 21.721471, "Bayside"},
	{-2497.177978, 2455.601562, 17.332534, "Bayside"},
	{-2299.505859, 2277.234619, 4.978750, "Bayside"},
	{-2353.547119, 2430.278320, 7.510148, "Bayside"},
 	{1316.041870, 275.046447, 31.049236, "Montgomery"},
	{1304.498779, 150.734161, 23.841037, "Montgomery"},
	{1424.074584, 234.264190, 19.554687, "Montgomery"},
	{1397.934692, 289.888427, 23.555511, "Montgomery"},
	{1377.866699, 317.458984, 19.554687, "Montgomery"},
	{1236.187255, 304.846252, 24.757812, "Montgomery"},
	{1239.561157, 288.248535, 25.755512, "Montgomery"},
	{1264.523315, 269.752105, 22.237289, "Montgomery"},
	{1283.437011, 264.630554, 23.762454, "Montgomery"},
	{1352.665161, 199.973419, 19.554687, "Montgomery"},
	{1363.234741, 195.539321, 23.227035, "Montgomery"},
	{1417.051757, 260.263885, 24.656915, "Montgomery"},
	{1414.501342, 363.570312, 19.164152, "Montgomery"},
	{1397.685424, 357.668762, 19.415740, "Montgomery"},
	{1374.767822, 366.475738, 21.055135, "Montgomery"},
	{1291.057983, 392.483947, 19.531446, "Montgomery"},
	{1282.783935, 385.586151, 27.555513, "Montgomery"},
	{1238.631103, 370.964813, 27.555509, "Montgomery"},
	{1183.289062, 230.991256, 19.561769, "Montgomery"},
	{1224.791137, 246.335128, 23.282218, "Montgomery"},
	{1270.518188, 240.601501, 31.107307, "Montgomery"},
	{1266.207519, 234.240051, 25.048685, "Montgomery"},
	{1290.146484, 300.298248, 28.560659, "Montgomery"},
	{198.153564, -189.123001, 7.578125, "Blueberry"},
	{244.182067, -312.091217, 1.578125, "Blueberry"},
	{377.058685, -126.040382, 1.282783, "Blueberry"},
	{331.945190, -21.335258, 8.999382, "Blueberry"},
	{270.666198, 25.962350, 7.423792, "Blueberry"},
	{269.469726, -39.207118, 2.076274, "Blueberry"},
	{249.126205, -55.748535, 2.778613, "Blueberry"},
	{200.529525, -2.403444, 1.585840, "Blueberry"},
	{151.374862, -112.419876, 8.206827, "Blueberry"},
	{186.791824, -97.364349, 4.896471, "Blueberry"},
	{294.001983, -195.634521, 7.138307, "Blueberry"},
	{79.888191, -172.170288, 3.240008, "Blueberry"},
	{90.263679, -196.305435, 1.484375, "Blueberry"},
	{307.548217, -256.133117, 1.583575, "Blueberry"},
	{130.356811, -65.668479, 1.578125, "Blueberry"},
	{201.947799, -107.787826, 1.552092, "Blueberry"},
	{251.443710, -59.984920, 5.882812, "Blueberry"},
	{338.868713, 39.111991, 6.514575, "Blueberry"},
	{233.187500, 88.724472, 3.707660, "Blueberry"},
	{271.035064, -325.480102, 4.109173, "Blueberry"},
	{258.287322, -91.798759, 6.548583, "Blueberry"},
	{660.309570, -515.073425, 22.836296, "Dillimore"},
	{681.892456, -471.186981, 24.570465, "Dillimore"},
	{720.187500, -460.116394, 23.195312, "Dillimore"},
	{766.745727, -565.935180, 18.013334, "Dillimore"},
	{766.601135, -565.742553, 18.013334, "Dillimore"},
	{795.740600, -498.457305, 18.013332, "Dillimore"},
	{830.493530, -483.307739, 17.335937, "Dillimore"},
	{822.035034, -539.921508, 23.336297, "Dillimore"},
	{806.729309, -644.110595, 16.335937, "Dillimore"},
	{837.977600, -618.451599, 16.427936, "Dillimore"},
	{872.614746, -589.113098, 17.975578, "Dillimore"},
	{618.945983, -495.678375, 17.036308, "Dillimore"},
	{613.239624, -511.376983, 20.336296, "Dillimore"},
	{668.560424, -565.262573, 20.646862, "Dillimore"},
	{655.586303, -565.002868, 22.147821, "Dillimore"},
	{663.681518, -552.116699, 16.335937, "Dillimore"},
	{666.731262, -624.085144, 16.335937, "Dillimore"},
	{659.283569, -649.963623, 16.335937, "Dillimore"},
	{714.395568, -638.833496, 15.661087, "Dillimore"},
	{706.086425, -513.023925, 19.836296, "Dillimore"},
	{697.977600, -502.530029, 20.336296, "Dillimore"},
 	{2252.387695, -71.207305, 31.594974, "Palimino Creek"},
	{2256.675292, -51.222541, 33.039546, "Palimino Creek"},
	{2280.761474, -43.499469, 33.915302, "Palimino Creek"},
	{2331.433349, -16.148464, 29.984375, "Palimino Creek"},
	{2307.091796, 42.845218, 26.484375, "Palimino Creek"},
	{2312.534423, 81.270088, 34.412147, "Palimino Creek"},
	{2282.645019, 80.523757, 34.983432, "Palimino Creek"},
	{2270.598876, 52.587516, 29.983432, "Palimino Creek"},
	{2237.241210, -146.453750, 25.870410, "Palimino Creek"},
	{2294.017333, -133.607147, 28.153959, "Palimino Creek"},
	{2290.864501, -125.560646, 31.281974, "Palimino Creek"},
	{2494.198486, 84.268798, 26.484375, "Palimino Creek"},
	{2522.718505, -35.541027, 27.843750, "Palimino Creek"},
	{2371.754638, 166.031631, 28.441642, "Palimino Creek"},
	{2221.037597, 187.976211, 26.053337, "Palimino Creek"},
	{2175.741210, -96.308731, 25.773351, "Palimino Creek"},
	{2194.704589, -51.970607, 27.476959, "Palimino Creek"},
	{2521.830566, 147.489349, 26.660923, "Palimino Creek"},
	{2503.659667, 138.658645, 26.476562, "Palimino Creek"},
	{2385.197021, 132.599624, 26.477228, "Palimino Creek"},
	{2497.073974, 73.162178, 26.484375, "Palimino Creek"},
 	{1113.000366, -298.941436, 79.273048, "Hilltop Farms"},
	{1145.276123, -319.449951, 68.736564, "Hilltop Farms"},
	{1139.270874, -279.303375, 68.293548, "Hilltop Farms"},
	{1109.191650, -254.074951, 73.178703, "Hilltop Farms"},
	{1074.967651, -290.027832, 76.994865, "Hilltop Farms"},
	{1045.733276, -292.704284, 77.359375, "Hilltop Farms"},
	{1038.980712, -314.385131, 73.993080, "Hilltop Farms"},
	{1019.215393, -280.257232, 73.992187, "Hilltop Farms"},
	{1017.502319, -291.644531, 77.359375, "Hilltop Farms"},
	{1025.220092, -286.122772, 73.993080, "Hilltop Farms"},
	{1008.152404, -361.344543, 73.992187, "Hilltop Farms"},
	{1031.137329, -286.081237, 73.992187, "Hilltop Farms"},
 	{-91.739074, 47.309322, 3.117187, "Blueberry Acres"},
	{-59.916896, 110.778358, 3.117187, "Blueberry Acres"},
	{-21.062276, 101.820167, 3.117187, "Blueberry Acres"},
	{-39.467891, 54.310203, 3.117187, "Blueberry Acres"},
	{-57.822875, 58.630420, 12.634796, "Blueberry Acres"},
	{6.610152, -116.727790, 0.827577, "Blueberry Acres"},
	{-234.935729, -49.896484, 3.117187, "Blueberry Acres"},
	{-63.104183, -42.047443, 3.117187, "Blueberry Acres"},
	{-101.163230, -42.706863, 3.960474, "Blueberry Acres"},
	{-65.395072, -79.674530, 3.117187, "Blueberry Acres"},
	{-71.846885, 16.072692, 4.960474, "Blueberry Acres"},
	{-115.097801, -158.043121, 3.053518, "Blueberry Acres"},
	{-74.329200, 134.758972, 3.117187, "Blueberry Acres"},
	{-180.387710, 158.206222, 6.585262, "Blueberry Acres"},
	{43.705768, 31.582788, 2.406414, "Blueberry Acres"},
	{-120.041000, -101.572135, 3.118082, "Blueberry Acres"},
	{-97.865242, 3.703858, 6.140625, "Blueberry Acres"},
	{-141.913879, -45.108047, 3.117187, "Blueberry Acres"},
	{-96.231872, -43.475280, 6.484375, "Blueberry Acres"},
    {-614.443786, 151.758407, 25.818775, "The Panopticon"},
	{-526.496093, 58.226322, 50.909709, "The Panopticon"},
	{-472.907379, -169.445770, 78.210937, "The Panopticon"},
	{-735.953918, 57.285392, 26.305458, "The Panopticon"},
	{-546.440124, -61.437793, 63.233062, "The Panopticon"},
	{-710.849609, -206.753967, 69.553245, "The Panopticon"},
	{-436.740875, -59.873924, 58.875000, "The Panopticon"},
	{-751.409790, -114.402214, 67.739364, "The Panopticon"},
	{-925.530151, -124.350387, 57.936649, "The Panopticon"},
	{-400.126495, 236.726394, 9.927101, "The Panopticon"},
	{-520.779357, -125.374198, 69.994155, "The Panopticon"},
	{-561.900878, -178.898284, 78.413543, "The Panopticon"},
	{-539.732116, -161.536758, 78.206115, "The Panopticon"},
	{-532.769287, -177.417663, 84.258483, "The Panopticon"},
	{-389.482971, -211.937072, 59.564701, "The Panopticon"},
    {-406.703948, -1449.153686, 26.062500, "Flint Range"},
	{-396.805908, -1426.215209, 38.644241, "Flint Range"},
	{-365.578216, -1413.950805, 29.640625, "Flint Range"},
	{-364.751220, -1434.614501, 25.726562, "Flint Range"},
	{-584.598876, -1482.920043, 11.257370, "Flint Range"},
	{-558.555603, -1289.688232, 24.061843, "Flint Range"},
	{-210.887054, -1339.520751, 11.636716, "Flint Range"},
	{-203.383239, -1279.539794, 7.933257, "Flint Range"},
	{-370.022949, -1469.212768, 25.726562, "Flint Range"},
	{-257.378387, -1502.086059, 6.142509, "Flint Range"},
	{-329.254211, -1537.986083, 14.820620, "Flint Range"},
	{-370.188598, -1416.738281, 25.726562, "Flint Range"},
	{-468.467102, -1423.658813, 17.497291, "Flint Range"},
	{-366.230377, -1425.508422, 36.910018, "Flint Range"},
	{-438.425720, -1307.287841, 34.957294, "Flint Range"},
	{-326.334747, -1312.265869, 9.666571, "Flint Range"},
	{-2508.313232, -675.049499, 139.320312, "Missionary Hill"},
	{-2528.568359, -700.439453, 141.788848, "Missionary Hill"},
	{-2438.275146, -464.318084, 91.305053, "Missionary Hill"},
	{-2543.994384, -783.435424, 69.258705, "Missionary Hill"},
	{-2693.597412, -752.083862, 51.020137, "Missionary Hill"},
	{-2600.115478, -547.044921, 86.723999, "Missionary Hill"},
	{-2314.386230, -888.267517, 7.742542, "Missionary Hill"},
	{-2322.930664, -655.598815, 107.419876, "Missionary Hill"},
	{-2324.206054, -683.263916, 104.464118, "Missionary Hill"},
	{-2394.915283, -468.217041, 87.153312, "Missionary Hill"},
	{-2631.078613, -596.495971, 90.808830, "Missionary Hill"},
	{-2542.992431, -656.802001, 139.079116, "Missionary Hill"},
	{-2432.825439, -391.364898, 69.389305, "Missionary Hill"},
	{-2617.927001, -749.242065, 74.848922, "Missionary Hill"},
 	{-2175.949951, -2417.699218, 34.296875, "Angel Pine"},
	{-2161.742919, -2453.351562, 37.592113, "Angel Pine"},
	{-2147.736572, -2461.206787, 30.851562, "Angel Pine"},
	{-2090.979492, -2469.472900, 33.924186, "Angel Pine"},
	{-2053.039306, -2544.468261, 31.066806, "Angel Pine"},
	{-2132.012939, -2433.635986, 39.040298, "Angel Pine"},
	{-2182.593994, -2428.734375, 35.523437, "Angel Pine"},
	{-2224.829833, -2396.499511, 35.533672, "Angel Pine"},
	{-2243.295654, -2359.313720, 30.750513, "Angel Pine"},
	{-2191.753173, -2345.898437, 35.007812, "Angel Pine"},
	{-2178.140625, -2314.520019, 37.743614, "Angel Pine"},
	{-2199.897949, -2243.446044, 33.320312, "Angel Pine"},
	{-2186.412353, -2245.995605, 30.721515, "Angel Pine"},
	{-2081.464843, -2254.676025, 37.810462, "Angel Pine"},
	{-2139.485839, -2263.617675, 37.106971, "Angel Pine"},
	{-2130.179931, -2362.220703, 37.803909, "Angel Pine"},
	{-2245.683837, -2489.593261, 30.939933, "Angel Pine"},
	{-2115.936523, -2417.141113, 31.226562, "Angel Pine"},
	{-2293.220947, -2449.365478, 25.740257, "Angel Pine"},
	{-1972.621704, -2409.536376, 36.779953, "Angel Pine"},
	{-2034.074829, -2350.098144, 40.890625, "Angel Pine"},
	{-2101.847412, -2341.794677, 34.820312, "Angel Pine"},
 	{-1181.246826, -1169.744262, 129.218750, "The Farm"},
	{-1064.526367, -1202.956298, 136.825164, "The Farm"},
	{-1073.703247, -1236.239135, 129.218750, "The Farm"},
	{-960.019836, -969.289123, 136.249679, "The Farm"},
	{-1178.073120, -1139.615356, 129.218750, "The Farm"},
	{-1086.143554, -1304.293945, 129.218750, "The Farm"},
	{-1099.003295, -971.934814, 129.218750, "The Farm"},
	{-1062.486328, -913.190063, 129.211929, "The Farm"},
	{-1186.598144, -1138.081909, 132.746429, "The Farm"},
	{-1087.829833, -1084.395629, 129.218750, "The Farm"},
	{-1004.356140, -1013.866821, 129.218750, "The Farm"},
	{-1033.648925, -1068.210327, 129.218750, "The Farm"},
	{-1019.635437, -1153.692138, 129.218750, "The Farm"},
	{-1026.010375, -1183.257690, 129.218750, "The Farm"},
	{-1007.072387, -1296.862426, 132.661285, "The Farm"},
	{-1124.512817, -1222.314208, 129.218750, "The Farm"},
 	{-1087.444824, -1677.984130, 76.373939, "Leafy Hallows"},
	{-1087.494018, -1678.885498, 76.373939, "Leafy Hallows"},
	{-1091.211059, -1663.834472, 76.367187, "Leafy Hallows"},
	{-1108.562622, -1634.623657, 80.057617, "Leafy Hallows"},
	{-1078.178222, -1607.183349, 76.367187, "Leafy Hallows"},
	{-1130.027343, -1606.987304, 76.367187, "Leafy Hallows"},
	{-1112.752685, -1621.049194, 86.261589, "Leafy Hallows"},
	{-1097.599121, -1627.398681, 76.367187, "Leafy Hallows"},
	{-946.533935, -1746.916137, 76.381385, "Leafy Hallows"},
	{-927.683105, -1701.916503, 77.025894, "Leafy Hallows"},
	{-923.776733, -1757.801513, 75.444259, "Leafy Hallows"},
	{-905.625366, -1730.898193, 78.139099, "Leafy Hallows"},
	{-1128.219360, -1696.092529, 76.558853, "Leafy Hallows"},
	{-1026.914428, -1733.098632, 76.425018, "Leafy Hallows"},
	{-1137.569824, -1630.458251, 76.367187, "Leafy Hallows"},
	{-1094.567626, -1663.774780, 76.367187, "Leafy Hallows"},
	{-1043.661254, -1621.000000, 76.367187, "Leafy Hallows"},
	{-907.789489, -1669.016723, 92.697944, "Leafy Hallows"},
 	{2556.437744, -644.786804, 137.252746, "North Rock"},
	{2514.413818, -716.559753, 101.872634, "North Rock"},
	{2443.473388, -657.824401, 121.906684, "North Rock"},
	{2612.934814, -497.000335, 78.922164, "North Rock"},
	{2657.899414, -602.413452, 84.188896, "North Rock"},
	{2683.218017, -516.679077, 65.786819, "North Rock"},
	{2627.179199, -666.909179, 128.962661, "North Rock"},
	{2759.122314, -633.098876, 60.327945, "North Rock"},
	{2356.232910, -558.502868, 120.259140, "North Rock"},
	{2558.949218, -523.134826, 86.272521, "North Rock"},
	{-1012.700317, -754.431518, 32.007812, "Easter Bay Chemicals"},
	{-1095.468139, -629.071044, 34.089599, "Easter Bay Chemicals"},
	{-1109.042358, -601.289489, 34.089599, "Easter Bay Chemicals"},
	{-1074.046508, -600.883239, 34.089599, "Easter Bay Chemicals"},
	{-1112.463256, -748.833557, 32.007812, "Easter Bay Chemicals"},
	{-996.942810, -720.715209, 35.937500, "Easter Bay Chemicals"},
	{-987.252502, -716.223449, 35.901714, "Easter Bay Chemicals"},
	{-1037.941650, -697.023925, 32.007812, "Easter Bay Chemicals"},
	{-972.693725, -719.797607, 37.171875, "Easter Bay Chemicals"},
	{-1057.215332, -758.628417, 37.171875, "Easter Bay Chemicals"},
	{-1127.549194, -701.471435, 32.007812, "Easter Bay Chemicals"},
	{-973.345092, -635.038330, 32.007812, "Easter Bay Chemicals"},
	{-1099.870605, -696.740661, 32.351562, "Easter Bay Chemicals"},
	{-1057.206665, -634.323059, 35.493179, "Easter Bay Chemicals"},
	{-1017.676330, -704.239746, 32.007812, "Easter Bay Chemicals"},
 	{-1525.973999, 2652.515136, 59.711399, "El Quebrados"},
	{-1507.893920, 2626.360107, 59.233432, "El Quebrados"},
	{-1530.962646, 2590.045654, 60.793697, "El Quebrados"},
	{-1481.348388, 2618.711181, 62.335689, "El Quebrados"},
	{-1416.942138, 2582.434082, 62.005947, "El Quebrados"},
	{-1437.265258, 2559.354248, 55.835937, "El Quebrados"},
	{-1459.728881, 2616.084960, 55.835937, "El Quebrados"},
	{-1452.608764, 2640.138183, 55.835937, "El Quebrados"},
	{-1463.314697, 2720.380126, 65.580146, "El Quebrados"},
	{-1550.759765, 2701.973876, 55.835937, "El Quebrados"},
	{-1567.961425, 2714.753662, 59.495937, "El Quebrados"},
	{-1591.316162, 2639.252685, 54.892074, "El Quebrados"},
	{-1564.054321, 2561.529541, 66.368583, "El Quebrados"},
	{-1593.676757, 2562.781250, 68.570213, "El Quebrados"},
	{-1461.241210, 2653.424804, 58.912673, "El Quebrados"},
	{-1470.498413, 2554.702636, 55.835937, "El Quebrados"},
	{-1579.125488, 2641.298095, 55.835937, "El Quebrados"},
	{-1521.946166, 2709.298339, 55.835937, "El Quebrados"},
	{-828.082336, 2661.674560, 104.945419, "Valle Ocultado"},
	{-835.934020, 2659.769775, 96.975189, "Valle Ocultado"},
	{-831.431640, 2695.995361, 53.576766, "Valle Ocultado"},
	{-803.072448, 2695.158203, 67.962074, "Valle Ocultado"},
	{-799.726013, 2704.947265, 47.416099, "Valle Ocultado"},
	{-788.210693, 2694.006103, 48.357761, "Valle Ocultado"},
	{-785.256774, 2719.440917, 45.300182, "Valle Ocultado"},
	{-779.532104, 2774.275146, 45.864643, "Valle Ocultado"},
	{-879.216064, 2747.853759, 46.000000, "Valle Ocultado"},
	{-724.237121, 2761.054199, 47.958900, "Valle Ocultado"},
	{-921.067687, 2675.897705, 45.312007, "Valle Ocultado"},
	{-912.755981, 2685.360595, 45.579273, "Valle Ocultado"},
	{-895.774658, 2672.384033, 42.191963, "Valle Ocultado"},
	{-769.700073, 2770.898437, 50.696720, "Valle Ocultado"},
	{-801.442077, 2776.446044, 45.975139, "Valle Ocultado"},
	{-737.213012, 2744.907470, 50.156967, "Valle Ocultado"},
	{-809.037780, 2809.187255, 49.179012, "Valle Ocultado"},
	{-821.493896, 2690.416259, 67.090553, "Valle Ocultado"},
	{-875.683532, 2693.958251, 52.923053, "Valle Ocultado"},
	{-918.803100, 2669.565429, 42.370262, "Valle Ocultado"},
	{-928.732421, 2707.239257, 42.883373, "Valle Ocultado"},
 	{-384.209350, 2206.028564, 45.671134, "Ghost Town"},
	{-417.697753, 2246.862548, 42.429687, "Ghost Town"},
	{-384.358673, 2206.287841, 45.671134, "Ghost Town"},
	{-375.438262, 2241.879882, 47.126880, "Ghost Town"},
	{-371.937103, 2266.688964, 42.484375, "Ghost Town"},
	{-395.177276, 2246.250000, 50.119434, "Ghost Town"},
	{-324.652770, 2216.008789, 44.212184, "Ghost Town"},
	{-456.136169, 2223.866699, 42.894790, "Ghost Town"},
	{-435.397033, 2249.250732, 46.098773, "Ghost Town"},
	{-397.759216, 2198.488281, 42.425659, "Ghost Town"},
	{-327.913360, 2231.848876, 43.372142, "Ghost Town"},
	{-439.359222, 2219.759033, 47.228851, "Ghost Town"},
 	{-765.302185, 2491.239013, 102.136093, "Acro del Oeste"},
	{-802.416625, 2444.712158, 157.024627, "Acro del Oeste"},
	{-769.736938, 2423.740478, 161.240509, "Acro del Oeste"},
	{-775.107543, 2454.568847, 155.394210, "Acro del Oeste"},
	{-825.450378, 2423.629394, 154.799423, "Acro del Oeste"},
	{-811.348144, 2392.648925, 154.081359, "Acro del Oeste"},
	{-869.765625, 2308.967285, 161.556732, "Acro del Oeste"},
	{-854.010314, 2395.529785, 90.695556, "Acro del Oeste"},
	{-865.451293, 2353.720458, 99.970436, "Acro del Oeste"},
	{-794.787414, 2267.457275, 58.976562, "Acro del Oeste"},
	{-806.945800, 2257.034667, 59.155395, "Acro del Oeste"},
	{-861.962158, 2275.708984, 69.768547, "Acro del Oeste"},
	{-806.547485, 2257.323242, 70.167610, "Acro del Oeste"},
	{-798.468383, 2249.032958, 52.464538, "Acro del Oeste"},
	{-819.647888, 2380.772460, 128.528991, "Acro del Oeste"},
	{-659.340942, 2310.784667, 137.731201, "Acro del Oeste"},
	{-629.103271, 2387.976806, 128.003738, "Acro del Oeste"},
	{-1967.813110, -923.389343, 32.226562, "Foster Valley"},
	{-1975.327148, -895.343750, 35.289417, "Foster Valley"},
	{-1945.200073, -1091.307373, 32.175434, "Foster Valley"},
	{-1904.608642, -1029.386840, 32.223834, "Foster Valley"},
	{-2059.095214, -989.335815, 32.171875, "Foster Valley"},
	{-2100.027343, -862.919860, 32.171875, "Foster Valley"},
	{-2153.603271, -793.245605, 31.976562, "Foster Valley"},
	{-2065.419677, -811.472534, 32.171875, "Foster Valley"},
	{-1964.095703, -726.187255, 37.390625, "Foster Valley"},
	{-1970.476440, -729.316772, 37.682456, "Foster Valley"},
	{-1971.316284, -729.375305, 38.024555, "Foster Valley"},
	{-1954.998413, -894.500610, 35.890884, "Foster Valley"},
	{-1952.155517, -991.665954, 35.890625, "Foster Valley"},
	{-1971.808837, -988.987060, 32.226562, "Foster Valley"},
	{-2040.327270, -734.473449, 32.171875, "Foster Valley"},
	{-1954.255981, -763.292663, 35.890884, "Foster Valley"},
	{-1934.306640, -817.633239, 35.277336, "Foster Valley"},
	{-2154.379394, -889.910583, 32.171875, "Foster Valley"},
	{-1933.880859, -957.182373, 35.292263, "Foster Valley"},
	{-2077.329833, -876.431518, 32.171875, "Foster Valley"},
	{-2021.934204, -889.969665, 30.179347, "Foster Valley"},
	{-1967.698486, -923.311828, 32.226562, "Foster Valley"},
	{-1975.518432, -881.348754, 35.289417, "Foster Valley"},
	{-1949.256469, -866.676269, 32.226562, "Foster Valley"},
	{-1893.254760, -884.175720, 31.968750, "Foster Valley"},
	{-1939.472412, -792.035339, 32.226562, "Foster Valley"},
	{-1944.139770, -744.467956, 32.226562, "Foster Valley"},
	{-1938.702148, -702.345642, 32.171875, "Foster Valley"},
	{-1912.550048, -715.325622, 32.158123, "Foster Valley"},
	{-1890.561767, -715.974426, 32.171875, "Foster Valley"},
	{-1314.880126, 2523.205566, 93.098388, "Aldea Malvada"},
	{-1340.013183, 2566.662841, 92.453392, "Aldea Malvada"},
	{-1342.981445, 2577.075195, 77.273002, "Aldea Malvada"},
	{-1316.729370, 2595.577880, 73.072959, "Aldea Malvada"},
	{-1300.144653, 2546.430664, 87.742187, "Aldea Malvada"},
	{-1365.330444, 2531.653320, 87.216758, "Aldea Malvada"},
	{-1289.671264, 2516.583984, 87.161216, "Aldea Malvada"},
	{-1314.141967, 2528.084716, 87.613708, "Aldea Malvada"},
	{-1369.994506, 2530.447753, 77.454376, "Aldea Malvada"},
	{-1325.340332, 2516.338378, 87.046875, "Aldea Malvada"},
	{-1324.558593, 2532.424560, 87.561912, "Aldea Malvada"},
	{-1346.553466, 2565.318115, 80.643333, "Aldea Malvada"},
	{-541.176086, -561.201354, 26.798007, "The Fallen Tree"},
	{-504.101501, -539.727050, 25.523437, "The Fallen Tree"},
	{-503.481170, -527.582458, 25.523437, "The Fallen Tree"},
	{-475.996154, -552.346740, 33.121536, "The Fallen Tree"},
	{-470.645874, -538.255004, 29.121538, "The Fallen Tree"},
	{-466.353302, -468.697967, 25.523437, "The Fallen Tree"},
	{-517.881530, -496.789825, 25.523437, "The Fallen Tree"},
	{-620.473388, -472.812927, 25.523437, "The Fallen Tree"},
	{-644.839599, -445.775238, 27.982749, "The Fallen Tree"},
	{-586.403198, -398.734558, 24.491775, "The Fallen Tree"},
	{-554.032104, -423.535186, 29.328639, "The Fallen Tree"},
	{-488.099975, -449.957580, 42.387664, "The Fallen Tree"},
	{-507.062316, -434.387115, 37.013797, "The Fallen Tree"},
	{-501.433959, -570.266723, 24.771287, "The Fallen Tree"},
	{-440.963348, -582.747680, 14.563718, "The Fallen Tree"},
	{-624.458557, -561.871093, 26.267879, "The Fallen Tree"},
	{-657.998779, -588.320190, 33.299449, "The Fallen Tree"},
	{-505.762481, -522.940368, 36.364982, "The Fallen Tree"},
	{-615.547546, -506.135650, 33.525276, "The Fallen Tree"},
	{-596.443237, -526.158813, 33.525276, "The Fallen Tree"},
	{-615.139038, -531.275512, 37.525276, "The Fallen Tree"},
	{-624.562072, -509.588043, 33.459438, "The Fallen Tree"},
	{-531.809875, -467.091979, 26.224544, "The Fallen Tree"}
};

new Float:MoneyBagPos[3], MoneyBagFound=1, MoneyBagLocation[50], MoneyBagPickup, Timer[2];

//Hours, Minutes, Seconds, Milliseconds
#define MoneyBagDelay(%1,%2,%3,%4) (%1*3600000)+(%2*60000)+(%3*1000)+%4
//20 = 20,000 minimum 30 = 20,000 -> 50,000
#define MoneyBagCash ((random(25)+20)*1273)
//10 mins!
#define MB_DELAY MoneyBagDelay(0, 10, 0, 0)

public OnFilterScriptInit()
{
	Timer[1] = SetTimer("MoneyBag", MB_DELAY, true);
	return 1;
}

forward MoneyBag();
public MoneyBag()
{
    new string[175];
	if(!MoneyBagFound)
	{
	    format(string, sizeof(string), "**The {33FF66} Money bag {FFFFFF}has {FF0000} not {FFFFFF} been found, it is still hidden in {FFFF66} %s", MoneyBagLocation);
		SendClientMessageToAll(-1, string);
	}
	else if(MoneyBagFound)
	{
	    MoneyBagFound = 0;
	    new randombag = random(sizeof(MBSPAWN));
	    MoneyBagPos[0] = MBSPAWN[randombag][XPOS];
	    MoneyBagPos[1] = MBSPAWN[randombag][YPOS];
	    MoneyBagPos[2] = MBSPAWN[randombag][ZPOS];
	    format(MoneyBagLocation, sizeof(MoneyBagLocation), "%s", MBSPAWN[randombag][Position]);
		format(string, sizeof(string), "**The {33FF66}Money Bag has been {FF0000} hidden in {FFFF66} %s!", MoneyBagLocation);
        SendClientMessageToAll(-1, string);
		MoneyBagPickup = CreatePickup(1550, 2, MoneyBagPos[0], MoneyBagPos[1], MoneyBagPos[2], -1);
	}
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(IsPlayerAdmin(playerid))
    {
		if(!strcmp("/gotomb", cmdtext, true))
		{
		    SetPlayerPos(playerid, MoneyBagPos[0], MoneyBagPos[1] +3, MoneyBagPos[2]);
		    return SendClientMessage(playerid, -1, "You have been {FF0000}teleported {FFFFFF}to the {33FF66}money bag");
		}
		if(!strcmp("/startmb", cmdtext, true)) return MoneyBag();
		if(!strcmp("/togglemb", cmdtext, true))
		{
			if(Timer[0] == 0)
			{
				KillTimer(Timer[1]);
				Timer[0] = 1;
				SendClientMessage(playerid, -1, "Money bag turned {FF0000} off!");
				return 1;
			}
			if(Timer[0] == 1)
			{
			    Timer[1] = SetTimer("MoneyBag", MB_DELAY, true);
			    Timer[0] = 0;
			    SendClientMessage(playerid, -1, "Money bag turned {33FF66} on!");
			    return 1;
			}
		    return 1;
		}

	}
	if(!strcmp("/moneybag", cmdtext, true))
	{
	    new string[150];
		if(!MoneyBagFound) format(string, sizeof(string), "**The {33FF66}Money Bag has been {FF0000}hidden in {FFFF66}%s!", MoneyBagLocation);
		if(MoneyBagFound) format(string, sizeof(string), "**The {33FF66}Money Bag is {FF0000} not running!");
		return SendClientMessage(playerid, -1, string);
	}
	return 0;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
	if(pickupid == MoneyBagPickup)
	{
		new string[180], pname[24], money = MoneyBagCash;
		GetPlayerName(playerid, pname, 24);
		format(string, sizeof(string), "** {99FFFF}%s{FFFFFF} has found the {33FF66}money bag{FFFFFF} that had {33FF00}$%d {FFFFFF}inside, located in %s", pname, money, MoneyBagLocation);
		MoneyBagFound = 1;
		SendClientMessageToAll(-1, string);
		DestroyPickup(MoneyBagPickup);
		SendClientMessage(playerid, -1, "You have found the {33FF66} Money Bag!");
		GivePlayerMoney(playerid, money);
		SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
		ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
	}
	return 1;
}
RedSmokeR is offline   Reply With Quote
Old 03/05/2016, 03:22 PM   #2
ReD_HunTeR
Gangsta
 
ReD_HunTeR's Avatar
 
Join Date: Nov 2012
Posts: 572
Reputation: 54
Default Re: Distance In Money Bag Script.

Code:
#include <a_samp>

enum mbinfo
{
	Float:XPOS,
	Float:YPOS,
	Float:ZPOS,
	Position[50]
};

new Float:MBSPAWN[][mbinfo] =
{
  // Positions, (X, Y, Z, Location)
    {713.073852, 912.842224, -19.096578, "The Quarry"},
    {688.145507, 844.974914, -28.631895, "The Quarry"},
    {586.370788, 913.020202, -34.194843, "The Quarry"},
    {503.419708, 970.914550, -24.997589, "The Quarry"},
    {499.296356, 971.732788, -25.047336, "The Quarry"},
    {458.502136, 891.120666, -27.374114, "The Quarry"},
    {628.248901, 735.500732, -0.903092, "The Quarry"},
    {627.924438, 1046.961303, 25.122577, "The Quarry"},
    {792.460510, 915.044189, 20.112213, "The Quarry"},
    {320.508636, 848.626281, 19.967500, "The Quarry"},
    {361.191741, 829.137329, 21.289638, "The Quarry"},
    {462.726348, 973.174621, 5.403401, "The Quarry"},
    {484.878112, 962.291137, 5.981633, "The Quarry"},
    {591.441650, 706.663513, 9.760972, "The Quarry"},
    {770.800415, 746.815368, 27.704566, "The Quarry"},
    {434.217102, 898.344543, 2.117520, "The Quarry"},
    {488.367218, 810.184814, 1.804343, "The Quarry"},
    {528.185913, 816.695800, -11.858360, "The Quarry"},
    {568.221130, 824.427429, -22.127143, "The Quarry"},
    {575.399353, 872.569091, -35.329307, "The Quarry"},
    {623.156188, 892.809875, -41.102825, "The Quarry"},
    {418.428070, 1409.390625, 8.565642, "The Petroleum"},
    {475.849548, 1325.585083, 11.321235, "The Petroleum"},
    {541.844848, 1556.681152, 0.482253, "The Petroleum"},
    {597.308898, 1535.999389, 3.586513, "The Petroleum"},
    {669.860534, 1422.952880, 10.887602, "The Petroleum"},
    {559.382812, 1371.361328, 16.322978, "The Petroleum"},
    {438.514587, 1268.192016, 9.017544, "The Petroleum"},
    {585.843322, 1485.281738, 12.073791, "The Petroleum"},
    {229.331573, 1478.390502, 10.151371, "Green Palms"},
    {152.056015, 1447.338256, 10.156622, "Green Palms"},
	{133.937881, 1377.117065, 10.158605, "Green Palms"},
	{205.768768, 1352.408081, 10.151306, "Green Palms"},
    {210.495468, 1395.340332, 10.151283, "Green Palms"},
	{215.108322, 1467.936157, 14.921875, "Green Palms"},
	{215.115737, 1467.059326, 23.734375, "Green Palms"},
    {187.969940, 1371.305786, 23.734375, "Green Palms"},
	{246.766662, 1360.596679, 10.707500, "Green Palms"},
	{246.478836, 1362.749633, 23.370285, "Green Palms"},
    {222.136520, 1424.068847, 10.585937, "Green Palms"},
   	{95.363838, 1831.129028, 17.205287, "Area 69"},
	{189.325698, 1940.272949, 17.213102, "Area 69"},
	{193.302978, 1940.295654, 17.212646, "Area 69"},
	{261.569244, 1807.425537, 25.498508, "Area 69"},
	{201.875762, 1873.929809, 12.774854, "Area 69"},
	{238.924987, 1863.955078, 11.460937, "Area 69"},
	{221.148391, 1822.212890, 7.531250, "Area 69"},
	{245.811523, 1813.676025, 4.710937, "Area 69"},
	{257.617523, 1819.045043, 1.007812, "Area 69"},
	{280.195648, 1840.170532, 11.534780, "Area 69"},
	{282.369171, 1874.492065, 8.757812, "Area 69"},
	{266.978424, 1858.773071, 8.757812, "Area 69"},
	{262.194854, 1886.633789, -30.390625, "Area 69"},
	{268.940002, 1883.556152, -30.093750, "Area 69"},
	{268.277374, 1891.600708, -12.862023, "Area 69"},
	{268.972656, 1876.503906, -3.470956, "Area 69"},
	{275.735778, 1892.228881, 8.437500, "Area 69"},
	{246.438491, 1830.403930, 12.210659, "Area 69"},
	{134.512237, 1952.987426, 18.978763, "Area 69"},
	{-41.510822, 1178.722290, 18.961349, "Fort Carson"},
	{2.213922, 1119.721435, 19.450517, "Fort Carson"},
	{17.874195, 1076.159057, 19.804994, "Fort Carson"},
	{-95.816307, 1164.927001, 19.312730, "Fort Carson"},
	{-100.357772, 1127.539672, 19.323959, "Fort Carson"},
	{-117.773254, 1132.638061, 19.326152, "Fort Carson"},
	{-190.864791, 1218.766357, 19.306653, "Fort Carson"},
	{-218.729446, 1147.502807, 19.328531, "Fort Carson"},
	{-378.680541, 1103.303466, 19.314443, "Fort Carson"},
	{-312.767395, 1175.458740, 19.307266, "Fort Carson"},
	{-209.111099, 1216.520629, 23.436161, "Fort Carson"},
	{-170.258102, 1176.971801, 24.155366, "Fort Carson"},
	{-172.726379, 1182.572753, 26.504249, "Fort Carson"},
	{-824.523559, 1444.919677, 13.547593, "Las Barrancas"},
	{-811.227539, 1479.601074, 26.136028, "Las Barrancas"},
	{-778.594482, 1477.787719, 28.764667, "Las Barrancas"},
	{-801.825866, 1513.152099, 21.131435, "Las Barrancas"},
	{-730.415039, 1539.924682, 40.065593, "Las Barrancas"},
	{-733.456970, 1553.795654, 39.189163, "Las Barrancas"},
	{-737.410278, 1593.716186, 26.656929, "Las Barrancas"},
	{-774.510375, 1616.915771, 26.687776, "Las Barrancas"},
	{-835.524841, 1597.141967, 26.505504, "Las Barrancas"},
	{-888.960021, 1553.529907, 25.501276, "Las Barrancas"},
	{-862.112548, 1536.867919, 25.737701, "Las Barrancas"},
	{-856.268554, 1528.398559, 25.737701, "Las Barrancas"},
	{-303.303192, 2744.042236, 61.440700, "Las Payasadas"},
	{-210.072189, 2814.655273, 64.240028, "Las Payasadas"},
	{-164.061630, 2767.596435, 62.252616, "Las Payasadas"},
	{-166.319808, 2730.175537, 65.696540, "Las Payasadas"},
	{-213.414306, 2719.982177, 62.687500, "Las Payasadas"},
	{-287.109222, 2687.127441, 65.852340, "Las Payasadas"},
	{-268.482818, 2667.310546, 62.670055, "Las Payasadas"},
	{-282.033843, 2651.087402, 67.323928, "Las Payasadas"},
	{-307.318756, 2652.917236, 68.252456, "Las Payasadas"},
	{-237.491958, 2663.685546, 63.858531, "Las Payasadas"},
	{-153.610809, 2711.833984, 62.144855, "Las Payasadas"},
	{-235.506256, 2826.033935, 61.760990, "Las Payasadas"},
	{123.295402, 2427.276123, 16.638261, "Verdant Meadows"},
	{152.007369, 2417.473388, 19.140531, "Verdant Meadows"},
	{209.578689, 2415.689697, 16.322700, "Verdant Meadows"},
	{237.976455, 2432.690185, 16.626625, "Verdant Meadows"},
	{276.434844, 2430.887695, 16.041940, "Verdant Meadows"},
	{313.228027, 2415.748046, 19.511663, "Verdant Meadows"},
	{349.762481, 2451.393310, 20.452396, "Verdant Meadows"},
	{412.917022, 2432.326904, 16.054676, "Verdant Meadows"},
	{435.414642, 2561.705078, 16.089130, "Verdant Meadows"},
	{414.310363, 2533.625732, 19.148437, "Verdant Meadows"},
	{401.180969, 2544.245849, 19.631122, "Verdant Meadows"},
	{390.938781, 2607.264160, 16.049514, "Verdant Meadows"},
	{334.645782, 2677.588867, 15.882289, "Verdant Meadows"},
	{306.708404, 2629.444335, 16.256523, "Verdant Meadows"},
	{271.063079, 2611.989257, 16.041421, "Verdant Meadows"},
	{172.383773, 2606.412597, 16.116966, "Verdant Meadows"},
	{154.106018, 2630.396240, 16.041749, "Verdant Meadows"},
	{115.394462, 2631.614501, 15.986257, "Verdant Meadows"},
	{104.371681, 2582.203613, 16.044742, "Verdant Meadows"},
	{14.670138, 2560.055419, 15.932084, "Verdant Meadows"},
	{9.903661, 2435.500732, 16.019382, "Verdant Meadows"},
 	{-2452.078125, 2438.356933, 14.555831, "Bayside"},
	{-2417.809570, 2456.555908, 25.779113, "Bayside"},
	{-2406.699462, 2469.222656, 12.183320, "Bayside"},
	{-2415.591552, 2386.210205, 7.998282, "Bayside"},
	{-2386.701904, 2398.892578, 8.845354, "Bayside"},
	{-2407.274902, 2477.111816, 11.345425, "Bayside"},
	{-2403.085449, 2553.951904, 23.601562, "Bayside"},
	{-2286.216552, 2572.171142, 23.416145, "Bayside"},
	{-2262.795410, 2573.447753, 8.214822, "Bayside"},
	{-2675.145996, 2322.950927, 25.147560, "Bayside"},
	{-2336.536376, 2480.192138, 1.275272, "Bayside"},
	{-2625.399658, 2245.826171, 6.694106, "Bayside"},
	{-2634.328125, 2240.306152, 14.622048, "Bayside"},
	{-2627.168457, 2234.247070, 12.825107, "Bayside"},
	{-2629.958984, 2243.830566, 12.611998, "Bayside"},
	{-2624.168212, 2245.396972, 6.268455, "Bayside"},
	{-2551.672851, 2432.413330, 18.866594, "Bayside"},
	{-2293.487060, 2225.002685, 4.982191, "Bayside"},
	{-2578.585693, 2520.823730, 21.721471, "Bayside"},
	{-2497.177978, 2455.601562, 17.332534, "Bayside"},
	{-2299.505859, 2277.234619, 4.978750, "Bayside"},
	{-2353.547119, 2430.278320, 7.510148, "Bayside"},
 	{1316.041870, 275.046447, 31.049236, "Montgomery"},
	{1304.498779, 150.734161, 23.841037, "Montgomery"},
	{1424.074584, 234.264190, 19.554687, "Montgomery"},
	{1397.934692, 289.888427, 23.555511, "Montgomery"},
	{1377.866699, 317.458984, 19.554687, "Montgomery"},
	{1236.187255, 304.846252, 24.757812, "Montgomery"},
	{1239.561157, 288.248535, 25.755512, "Montgomery"},
	{1264.523315, 269.752105, 22.237289, "Montgomery"},
	{1283.437011, 264.630554, 23.762454, "Montgomery"},
	{1352.665161, 199.973419, 19.554687, "Montgomery"},
	{1363.234741, 195.539321, 23.227035, "Montgomery"},
	{1417.051757, 260.263885, 24.656915, "Montgomery"},
	{1414.501342, 363.570312, 19.164152, "Montgomery"},
	{1397.685424, 357.668762, 19.415740, "Montgomery"},
	{1374.767822, 366.475738, 21.055135, "Montgomery"},
	{1291.057983, 392.483947, 19.531446, "Montgomery"},
	{1282.783935, 385.586151, 27.555513, "Montgomery"},
	{1238.631103, 370.964813, 27.555509, "Montgomery"},
	{1183.289062, 230.991256, 19.561769, "Montgomery"},
	{1224.791137, 246.335128, 23.282218, "Montgomery"},
	{1270.518188, 240.601501, 31.107307, "Montgomery"},
	{1266.207519, 234.240051, 25.048685, "Montgomery"},
	{1290.146484, 300.298248, 28.560659, "Montgomery"},
	{198.153564, -189.123001, 7.578125, "Blueberry"},
	{244.182067, -312.091217, 1.578125, "Blueberry"},
	{377.058685, -126.040382, 1.282783, "Blueberry"},
	{331.945190, -21.335258, 8.999382, "Blueberry"},
	{270.666198, 25.962350, 7.423792, "Blueberry"},
	{269.469726, -39.207118, 2.076274, "Blueberry"},
	{249.126205, -55.748535, 2.778613, "Blueberry"},
	{200.529525, -2.403444, 1.585840, "Blueberry"},
	{151.374862, -112.419876, 8.206827, "Blueberry"},
	{186.791824, -97.364349, 4.896471, "Blueberry"},
	{294.001983, -195.634521, 7.138307, "Blueberry"},
	{79.888191, -172.170288, 3.240008, "Blueberry"},
	{90.263679, -196.305435, 1.484375, "Blueberry"},
	{307.548217, -256.133117, 1.583575, "Blueberry"},
	{130.356811, -65.668479, 1.578125, "Blueberry"},
	{201.947799, -107.787826, 1.552092, "Blueberry"},
	{251.443710, -59.984920, 5.882812, "Blueberry"},
	{338.868713, 39.111991, 6.514575, "Blueberry"},
	{233.187500, 88.724472, 3.707660, "Blueberry"},
	{271.035064, -325.480102, 4.109173, "Blueberry"},
	{258.287322, -91.798759, 6.548583, "Blueberry"},
	{660.309570, -515.073425, 22.836296, "Dillimore"},
	{681.892456, -471.186981, 24.570465, "Dillimore"},
	{720.187500, -460.116394, 23.195312, "Dillimore"},
	{766.745727, -565.935180, 18.013334, "Dillimore"},
	{766.601135, -565.742553, 18.013334, "Dillimore"},
	{795.740600, -498.457305, 18.013332, "Dillimore"},
	{830.493530, -483.307739, 17.335937, "Dillimore"},
	{822.035034, -539.921508, 23.336297, "Dillimore"},
	{806.729309, -644.110595, 16.335937, "Dillimore"},
	{837.977600, -618.451599, 16.427936, "Dillimore"},
	{872.614746, -589.113098, 17.975578, "Dillimore"},
	{618.945983, -495.678375, 17.036308, "Dillimore"},
	{613.239624, -511.376983, 20.336296, "Dillimore"},
	{668.560424, -565.262573, 20.646862, "Dillimore"},
	{655.586303, -565.002868, 22.147821, "Dillimore"},
	{663.681518, -552.116699, 16.335937, "Dillimore"},
	{666.731262, -624.085144, 16.335937, "Dillimore"},
	{659.283569, -649.963623, 16.335937, "Dillimore"},
	{714.395568, -638.833496, 15.661087, "Dillimore"},
	{706.086425, -513.023925, 19.836296, "Dillimore"},
	{697.977600, -502.530029, 20.336296, "Dillimore"},
 	{2252.387695, -71.207305, 31.594974, "Palimino Creek"},
	{2256.675292, -51.222541, 33.039546, "Palimino Creek"},
	{2280.761474, -43.499469, 33.915302, "Palimino Creek"},
	{2331.433349, -16.148464, 29.984375, "Palimino Creek"},
	{2307.091796, 42.845218, 26.484375, "Palimino Creek"},
	{2312.534423, 81.270088, 34.412147, "Palimino Creek"},
	{2282.645019, 80.523757, 34.983432, "Palimino Creek"},
	{2270.598876, 52.587516, 29.983432, "Palimino Creek"},
	{2237.241210, -146.453750, 25.870410, "Palimino Creek"},
	{2294.017333, -133.607147, 28.153959, "Palimino Creek"},
	{2290.864501, -125.560646, 31.281974, "Palimino Creek"},
	{2494.198486, 84.268798, 26.484375, "Palimino Creek"},
	{2522.718505, -35.541027, 27.843750, "Palimino Creek"},
	{2371.754638, 166.031631, 28.441642, "Palimino Creek"},
	{2221.037597, 187.976211, 26.053337, "Palimino Creek"},
	{2175.741210, -96.308731, 25.773351, "Palimino Creek"},
	{2194.704589, -51.970607, 27.476959, "Palimino Creek"},
	{2521.830566, 147.489349, 26.660923, "Palimino Creek"},
	{2503.659667, 138.658645, 26.476562, "Palimino Creek"},
	{2385.197021, 132.599624, 26.477228, "Palimino Creek"},
	{2497.073974, 73.162178, 26.484375, "Palimino Creek"},
 	{1113.000366, -298.941436, 79.273048, "Hilltop Farms"},
	{1145.276123, -319.449951, 68.736564, "Hilltop Farms"},
	{1139.270874, -279.303375, 68.293548, "Hilltop Farms"},
	{1109.191650, -254.074951, 73.178703, "Hilltop Farms"},
	{1074.967651, -290.027832, 76.994865, "Hilltop Farms"},
	{1045.733276, -292.704284, 77.359375, "Hilltop Farms"},
	{1038.980712, -314.385131, 73.993080, "Hilltop Farms"},
	{1019.215393, -280.257232, 73.992187, "Hilltop Farms"},
	{1017.502319, -291.644531, 77.359375, "Hilltop Farms"},
	{1025.220092, -286.122772, 73.993080, "Hilltop Farms"},
	{1008.152404, -361.344543, 73.992187, "Hilltop Farms"},
	{1031.137329, -286.081237, 73.992187, "Hilltop Farms"},
 	{-91.739074, 47.309322, 3.117187, "Blueberry Acres"},
	{-59.916896, 110.778358, 3.117187, "Blueberry Acres"},
	{-21.062276, 101.820167, 3.117187, "Blueberry Acres"},
	{-39.467891, 54.310203, 3.117187, "Blueberry Acres"},
	{-57.822875, 58.630420, 12.634796, "Blueberry Acres"},
	{6.610152, -116.727790, 0.827577, "Blueberry Acres"},
	{-234.935729, -49.896484, 3.117187, "Blueberry Acres"},
	{-63.104183, -42.047443, 3.117187, "Blueberry Acres"},
	{-101.163230, -42.706863, 3.960474, "Blueberry Acres"},
	{-65.395072, -79.674530, 3.117187, "Blueberry Acres"},
	{-71.846885, 16.072692, 4.960474, "Blueberry Acres"},
	{-115.097801, -158.043121, 3.053518, "Blueberry Acres"},
	{-74.329200, 134.758972, 3.117187, "Blueberry Acres"},
	{-180.387710, 158.206222, 6.585262, "Blueberry Acres"},
	{43.705768, 31.582788, 2.406414, "Blueberry Acres"},
	{-120.041000, -101.572135, 3.118082, "Blueberry Acres"},
	{-97.865242, 3.703858, 6.140625, "Blueberry Acres"},
	{-141.913879, -45.108047, 3.117187, "Blueberry Acres"},
	{-96.231872, -43.475280, 6.484375, "Blueberry Acres"},
    {-614.443786, 151.758407, 25.818775, "The Panopticon"},
	{-526.496093, 58.226322, 50.909709, "The Panopticon"},
	{-472.907379, -169.445770, 78.210937, "The Panopticon"},
	{-735.953918, 57.285392, 26.305458, "The Panopticon"},
	{-546.440124, -61.437793, 63.233062, "The Panopticon"},
	{-710.849609, -206.753967, 69.553245, "The Panopticon"},
	{-436.740875, -59.873924, 58.875000, "The Panopticon"},
	{-751.409790, -114.402214, 67.739364, "The Panopticon"},
	{-925.530151, -124.350387, 57.936649, "The Panopticon"},
	{-400.126495, 236.726394, 9.927101, "The Panopticon"},
	{-520.779357, -125.374198, 69.994155, "The Panopticon"},
	{-561.900878, -178.898284, 78.413543, "The Panopticon"},
	{-539.732116, -161.536758, 78.206115, "The Panopticon"},
	{-532.769287, -177.417663, 84.258483, "The Panopticon"},
	{-389.482971, -211.937072, 59.564701, "The Panopticon"},
    {-406.703948, -1449.153686, 26.062500, "Flint Range"},
	{-396.805908, -1426.215209, 38.644241, "Flint Range"},
	{-365.578216, -1413.950805, 29.640625, "Flint Range"},
	{-364.751220, -1434.614501, 25.726562, "Flint Range"},
	{-584.598876, -1482.920043, 11.257370, "Flint Range"},
	{-558.555603, -1289.688232, 24.061843, "Flint Range"},
	{-210.887054, -1339.520751, 11.636716, "Flint Range"},
	{-203.383239, -1279.539794, 7.933257, "Flint Range"},
	{-370.022949, -1469.212768, 25.726562, "Flint Range"},
	{-257.378387, -1502.086059, 6.142509, "Flint Range"},
	{-329.254211, -1537.986083, 14.820620, "Flint Range"},
	{-370.188598, -1416.738281, 25.726562, "Flint Range"},
	{-468.467102, -1423.658813, 17.497291, "Flint Range"},
	{-366.230377, -1425.508422, 36.910018, "Flint Range"},
	{-438.425720, -1307.287841, 34.957294, "Flint Range"},
	{-326.334747, -1312.265869, 9.666571, "Flint Range"},
	{-2508.313232, -675.049499, 139.320312, "Missionary Hill"},
	{-2528.568359, -700.439453, 141.788848, "Missionary Hill"},
	{-2438.275146, -464.318084, 91.305053, "Missionary Hill"},
	{-2543.994384, -783.435424, 69.258705, "Missionary Hill"},
	{-2693.597412, -752.083862, 51.020137, "Missionary Hill"},
	{-2600.115478, -547.044921, 86.723999, "Missionary Hill"},
	{-2314.386230, -888.267517, 7.742542, "Missionary Hill"},
	{-2322.930664, -655.598815, 107.419876, "Missionary Hill"},
	{-2324.206054, -683.263916, 104.464118, "Missionary Hill"},
	{-2394.915283, -468.217041, 87.153312, "Missionary Hill"},
	{-2631.078613, -596.495971, 90.808830, "Missionary Hill"},
	{-2542.992431, -656.802001, 139.079116, "Missionary Hill"},
	{-2432.825439, -391.364898, 69.389305, "Missionary Hill"},
	{-2617.927001, -749.242065, 74.848922, "Missionary Hill"},
 	{-2175.949951, -2417.699218, 34.296875, "Angel Pine"},
	{-2161.742919, -2453.351562, 37.592113, "Angel Pine"},
	{-2147.736572, -2461.206787, 30.851562, "Angel Pine"},
	{-2090.979492, -2469.472900, 33.924186, "Angel Pine"},
	{-2053.039306, -2544.468261, 31.066806, "Angel Pine"},
	{-2132.012939, -2433.635986, 39.040298, "Angel Pine"},
	{-2182.593994, -2428.734375, 35.523437, "Angel Pine"},
	{-2224.829833, -2396.499511, 35.533672, "Angel Pine"},
	{-2243.295654, -2359.313720, 30.750513, "Angel Pine"},
	{-2191.753173, -2345.898437, 35.007812, "Angel Pine"},
	{-2178.140625, -2314.520019, 37.743614, "Angel Pine"},
	{-2199.897949, -2243.446044, 33.320312, "Angel Pine"},
	{-2186.412353, -2245.995605, 30.721515, "Angel Pine"},
	{-2081.464843, -2254.676025, 37.810462, "Angel Pine"},
	{-2139.485839, -2263.617675, 37.106971, "Angel Pine"},
	{-2130.179931, -2362.220703, 37.803909, "Angel Pine"},
	{-2245.683837, -2489.593261, 30.939933, "Angel Pine"},
	{-2115.936523, -2417.141113, 31.226562, "Angel Pine"},
	{-2293.220947, -2449.365478, 25.740257, "Angel Pine"},
	{-1972.621704, -2409.536376, 36.779953, "Angel Pine"},
	{-2034.074829, -2350.098144, 40.890625, "Angel Pine"},
	{-2101.847412, -2341.794677, 34.820312, "Angel Pine"},
 	{-1181.246826, -1169.744262, 129.218750, "The Farm"},
	{-1064.526367, -1202.956298, 136.825164, "The Farm"},
	{-1073.703247, -1236.239135, 129.218750, "The Farm"},
	{-960.019836, -969.289123, 136.249679, "The Farm"},
	{-1178.073120, -1139.615356, 129.218750, "The Farm"},
	{-1086.143554, -1304.293945, 129.218750, "The Farm"},
	{-1099.003295, -971.934814, 129.218750, "The Farm"},
	{-1062.486328, -913.190063, 129.211929, "The Farm"},
	{-1186.598144, -1138.081909, 132.746429, "The Farm"},
	{-1087.829833, -1084.395629, 129.218750, "The Farm"},
	{-1004.356140, -1013.866821, 129.218750, "The Farm"},
	{-1033.648925, -1068.210327, 129.218750, "The Farm"},
	{-1019.635437, -1153.692138, 129.218750, "The Farm"},
	{-1026.010375, -1183.257690, 129.218750, "The Farm"},
	{-1007.072387, -1296.862426, 132.661285, "The Farm"},
	{-1124.512817, -1222.314208, 129.218750, "The Farm"},
 	{-1087.444824, -1677.984130, 76.373939, "Leafy Hallows"},
	{-1087.494018, -1678.885498, 76.373939, "Leafy Hallows"},
	{-1091.211059, -1663.834472, 76.367187, "Leafy Hallows"},
	{-1108.562622, -1634.623657, 80.057617, "Leafy Hallows"},
	{-1078.178222, -1607.183349, 76.367187, "Leafy Hallows"},
	{-1130.027343, -1606.987304, 76.367187, "Leafy Hallows"},
	{-1112.752685, -1621.049194, 86.261589, "Leafy Hallows"},
	{-1097.599121, -1627.398681, 76.367187, "Leafy Hallows"},
	{-946.533935, -1746.916137, 76.381385, "Leafy Hallows"},
	{-927.683105, -1701.916503, 77.025894, "Leafy Hallows"},
	{-923.776733, -1757.801513, 75.444259, "Leafy Hallows"},
	{-905.625366, -1730.898193, 78.139099, "Leafy Hallows"},
	{-1128.219360, -1696.092529, 76.558853, "Leafy Hallows"},
	{-1026.914428, -1733.098632, 76.425018, "Leafy Hallows"},
	{-1137.569824, -1630.458251, 76.367187, "Leafy Hallows"},
	{-1094.567626, -1663.774780, 76.367187, "Leafy Hallows"},
	{-1043.661254, -1621.000000, 76.367187, "Leafy Hallows"},
	{-907.789489, -1669.016723, 92.697944, "Leafy Hallows"},
 	{2556.437744, -644.786804, 137.252746, "North Rock"},
	{2514.413818, -716.559753, 101.872634, "North Rock"},
	{2443.473388, -657.824401, 121.906684, "North Rock"},
	{2612.934814, -497.000335, 78.922164, "North Rock"},
	{2657.899414, -602.413452, 84.188896, "North Rock"},
	{2683.218017, -516.679077, 65.786819, "North Rock"},
	{2627.179199, -666.909179, 128.962661, "North Rock"},
	{2759.122314, -633.098876, 60.327945, "North Rock"},
	{2356.232910, -558.502868, 120.259140, "North Rock"},
	{2558.949218, -523.134826, 86.272521, "North Rock"},
	{-1012.700317, -754.431518, 32.007812, "Easter Bay Chemicals"},
	{-1095.468139, -629.071044, 34.089599, "Easter Bay Chemicals"},
	{-1109.042358, -601.289489, 34.089599, "Easter Bay Chemicals"},
	{-1074.046508, -600.883239, 34.089599, "Easter Bay Chemicals"},
	{-1112.463256, -748.833557, 32.007812, "Easter Bay Chemicals"},
	{-996.942810, -720.715209, 35.937500, "Easter Bay Chemicals"},
	{-987.252502, -716.223449, 35.901714, "Easter Bay Chemicals"},
	{-1037.941650, -697.023925, 32.007812, "Easter Bay Chemicals"},
	{-972.693725, -719.797607, 37.171875, "Easter Bay Chemicals"},
	{-1057.215332, -758.628417, 37.171875, "Easter Bay Chemicals"},
	{-1127.549194, -701.471435, 32.007812, "Easter Bay Chemicals"},
	{-973.345092, -635.038330, 32.007812, "Easter Bay Chemicals"},
	{-1099.870605, -696.740661, 32.351562, "Easter Bay Chemicals"},
	{-1057.206665, -634.323059, 35.493179, "Easter Bay Chemicals"},
	{-1017.676330, -704.239746, 32.007812, "Easter Bay Chemicals"},
 	{-1525.973999, 2652.515136, 59.711399, "El Quebrados"},
	{-1507.893920, 2626.360107, 59.233432, "El Quebrados"},
	{-1530.962646, 2590.045654, 60.793697, "El Quebrados"},
	{-1481.348388, 2618.711181, 62.335689, "El Quebrados"},
	{-1416.942138, 2582.434082, 62.005947, "El Quebrados"},
	{-1437.265258, 2559.354248, 55.835937, "El Quebrados"},
	{-1459.728881, 2616.084960, 55.835937, "El Quebrados"},
	{-1452.608764, 2640.138183, 55.835937, "El Quebrados"},
	{-1463.314697, 2720.380126, 65.580146, "El Quebrados"},
	{-1550.759765, 2701.973876, 55.835937, "El Quebrados"},
	{-1567.961425, 2714.753662, 59.495937, "El Quebrados"},
	{-1591.316162, 2639.252685, 54.892074, "El Quebrados"},
	{-1564.054321, 2561.529541, 66.368583, "El Quebrados"},
	{-1593.676757, 2562.781250, 68.570213, "El Quebrados"},
	{-1461.241210, 2653.424804, 58.912673, "El Quebrados"},
	{-1470.498413, 2554.702636, 55.835937, "El Quebrados"},
	{-1579.125488, 2641.298095, 55.835937, "El Quebrados"},
	{-1521.946166, 2709.298339, 55.835937, "El Quebrados"},
	{-828.082336, 2661.674560, 104.945419, "Valle Ocultado"},
	{-835.934020, 2659.769775, 96.975189, "Valle Ocultado"},
	{-831.431640, 2695.995361, 53.576766, "Valle Ocultado"},
	{-803.072448, 2695.158203, 67.962074, "Valle Ocultado"},
	{-799.726013, 2704.947265, 47.416099, "Valle Ocultado"},
	{-788.210693, 2694.006103, 48.357761, "Valle Ocultado"},
	{-785.256774, 2719.440917, 45.300182, "Valle Ocultado"},
	{-779.532104, 2774.275146, 45.864643, "Valle Ocultado"},
	{-879.216064, 2747.853759, 46.000000, "Valle Ocultado"},
	{-724.237121, 2761.054199, 47.958900, "Valle Ocultado"},
	{-921.067687, 2675.897705, 45.312007, "Valle Ocultado"},
	{-912.755981, 2685.360595, 45.579273, "Valle Ocultado"},
	{-895.774658, 2672.384033, 42.191963, "Valle Ocultado"},
	{-769.700073, 2770.898437, 50.696720, "Valle Ocultado"},
	{-801.442077, 2776.446044, 45.975139, "Valle Ocultado"},
	{-737.213012, 2744.907470, 50.156967, "Valle Ocultado"},
	{-809.037780, 2809.187255, 49.179012, "Valle Ocultado"},
	{-821.493896, 2690.416259, 67.090553, "Valle Ocultado"},
	{-875.683532, 2693.958251, 52.923053, "Valle Ocultado"},
	{-918.803100, 2669.565429, 42.370262, "Valle Ocultado"},
	{-928.732421, 2707.239257, 42.883373, "Valle Ocultado"},
 	{-384.209350, 2206.028564, 45.671134, "Ghost Town"},
	{-417.697753, 2246.862548, 42.429687, "Ghost Town"},
	{-384.358673, 2206.287841, 45.671134, "Ghost Town"},
	{-375.438262, 2241.879882, 47.126880, "Ghost Town"},
	{-371.937103, 2266.688964, 42.484375, "Ghost Town"},
	{-395.177276, 2246.250000, 50.119434, "Ghost Town"},
	{-324.652770, 2216.008789, 44.212184, "Ghost Town"},
	{-456.136169, 2223.866699, 42.894790, "Ghost Town"},
	{-435.397033, 2249.250732, 46.098773, "Ghost Town"},
	{-397.759216, 2198.488281, 42.425659, "Ghost Town"},
	{-327.913360, 2231.848876, 43.372142, "Ghost Town"},
	{-439.359222, 2219.759033, 47.228851, "Ghost Town"},
 	{-765.302185, 2491.239013, 102.136093, "Acro del Oeste"},
	{-802.416625, 2444.712158, 157.024627, "Acro del Oeste"},
	{-769.736938, 2423.740478, 161.240509, "Acro del Oeste"},
	{-775.107543, 2454.568847, 155.394210, "Acro del Oeste"},
	{-825.450378, 2423.629394, 154.799423, "Acro del Oeste"},
	{-811.348144, 2392.648925, 154.081359, "Acro del Oeste"},
	{-869.765625, 2308.967285, 161.556732, "Acro del Oeste"},
	{-854.010314, 2395.529785, 90.695556, "Acro del Oeste"},
	{-865.451293, 2353.720458, 99.970436, "Acro del Oeste"},
	{-794.787414, 2267.457275, 58.976562, "Acro del Oeste"},
	{-806.945800, 2257.034667, 59.155395, "Acro del Oeste"},
	{-861.962158, 2275.708984, 69.768547, "Acro del Oeste"},
	{-806.547485, 2257.323242, 70.167610, "Acro del Oeste"},
	{-798.468383, 2249.032958, 52.464538, "Acro del Oeste"},
	{-819.647888, 2380.772460, 128.528991, "Acro del Oeste"},
	{-659.340942, 2310.784667, 137.731201, "Acro del Oeste"},
	{-629.103271, 2387.976806, 128.003738, "Acro del Oeste"},
	{-1967.813110, -923.389343, 32.226562, "Foster Valley"},
	{-1975.327148, -895.343750, 35.289417, "Foster Valley"},
	{-1945.200073, -1091.307373, 32.175434, "Foster Valley"},
	{-1904.608642, -1029.386840, 32.223834, "Foster Valley"},
	{-2059.095214, -989.335815, 32.171875, "Foster Valley"},
	{-2100.027343, -862.919860, 32.171875, "Foster Valley"},
	{-2153.603271, -793.245605, 31.976562, "Foster Valley"},
	{-2065.419677, -811.472534, 32.171875, "Foster Valley"},
	{-1964.095703, -726.187255, 37.390625, "Foster Valley"},
	{-1970.476440, -729.316772, 37.682456, "Foster Valley"},
	{-1971.316284, -729.375305, 38.024555, "Foster Valley"},
	{-1954.998413, -894.500610, 35.890884, "Foster Valley"},
	{-1952.155517, -991.665954, 35.890625, "Foster Valley"},
	{-1971.808837, -988.987060, 32.226562, "Foster Valley"},
	{-2040.327270, -734.473449, 32.171875, "Foster Valley"},
	{-1954.255981, -763.292663, 35.890884, "Foster Valley"},
	{-1934.306640, -817.633239, 35.277336, "Foster Valley"},
	{-2154.379394, -889.910583, 32.171875, "Foster Valley"},
	{-1933.880859, -957.182373, 35.292263, "Foster Valley"},
	{-2077.329833, -876.431518, 32.171875, "Foster Valley"},
	{-2021.934204, -889.969665, 30.179347, "Foster Valley"},
	{-1967.698486, -923.311828, 32.226562, "Foster Valley"},
	{-1975.518432, -881.348754, 35.289417, "Foster Valley"},
	{-1949.256469, -866.676269, 32.226562, "Foster Valley"},
	{-1893.254760, -884.175720, 31.968750, "Foster Valley"},
	{-1939.472412, -792.035339, 32.226562, "Foster Valley"},
	{-1944.139770, -744.467956, 32.226562, "Foster Valley"},
	{-1938.702148, -702.345642, 32.171875, "Foster Valley"},
	{-1912.550048, -715.325622, 32.158123, "Foster Valley"},
	{-1890.561767, -715.974426, 32.171875, "Foster Valley"},
	{-1314.880126, 2523.205566, 93.098388, "Aldea Malvada"},
	{-1340.013183, 2566.662841, 92.453392, "Aldea Malvada"},
	{-1342.981445, 2577.075195, 77.273002, "Aldea Malvada"},
	{-1316.729370, 2595.577880, 73.072959, "Aldea Malvada"},
	{-1300.144653, 2546.430664, 87.742187, "Aldea Malvada"},
	{-1365.330444, 2531.653320, 87.216758, "Aldea Malvada"},
	{-1289.671264, 2516.583984, 87.161216, "Aldea Malvada"},
	{-1314.141967, 2528.084716, 87.613708, "Aldea Malvada"},
	{-1369.994506, 2530.447753, 77.454376, "Aldea Malvada"},
	{-1325.340332, 2516.338378, 87.046875, "Aldea Malvada"},
	{-1324.558593, 2532.424560, 87.561912, "Aldea Malvada"},
	{-1346.553466, 2565.318115, 80.643333, "Aldea Malvada"},
	{-541.176086, -561.201354, 26.798007, "The Fallen Tree"},
	{-504.101501, -539.727050, 25.523437, "The Fallen Tree"},
	{-503.481170, -527.582458, 25.523437, "The Fallen Tree"},
	{-475.996154, -552.346740, 33.121536, "The Fallen Tree"},
	{-470.645874, -538.255004, 29.121538, "The Fallen Tree"},
	{-466.353302, -468.697967, 25.523437, "The Fallen Tree"},
	{-517.881530, -496.789825, 25.523437, "The Fallen Tree"},
	{-620.473388, -472.812927, 25.523437, "The Fallen Tree"},
	{-644.839599, -445.775238, 27.982749, "The Fallen Tree"},
	{-586.403198, -398.734558, 24.491775, "The Fallen Tree"},
	{-554.032104, -423.535186, 29.328639, "The Fallen Tree"},
	{-488.099975, -449.957580, 42.387664, "The Fallen Tree"},
	{-507.062316, -434.387115, 37.013797, "The Fallen Tree"},
	{-501.433959, -570.266723, 24.771287, "The Fallen Tree"},
	{-440.963348, -582.747680, 14.563718, "The Fallen Tree"},
	{-624.458557, -561.871093, 26.267879, "The Fallen Tree"},
	{-657.998779, -588.320190, 33.299449, "The Fallen Tree"},
	{-505.762481, -522.940368, 36.364982, "The Fallen Tree"},
	{-615.547546, -506.135650, 33.525276, "The Fallen Tree"},
	{-596.443237, -526.158813, 33.525276, "The Fallen Tree"},
	{-615.139038, -531.275512, 37.525276, "The Fallen Tree"},
	{-624.562072, -509.588043, 33.459438, "The Fallen Tree"},
	{-531.809875, -467.091979, 26.224544, "The Fallen Tree"}
};

new Float:MoneyBagPos[3], MoneyBagFound=1, MoneyBagLocation[50], MoneyBagPickup, Timer[2], MoneyBagCash;

public OnFilterScriptInit()
{
	Timer[1] = SetTimer("MoneyBag", MB_DELAY, true);
	return 1;
}

forward MoneyBag();
public MoneyBag()
{
    new string[175];
	if(!MoneyBagFound)
	{
	    format(string, sizeof(string), "**The {33FF66} Money bag {FFFFFF}has {FF0000} not {FFFFFF} been found, it is still hidden in {FFFF66} %s", MoneyBagLocation);
		SendClientMessageToAll(-1, string);
	}
	else if(MoneyBagFound)
	{
	    MoneyBagFound = 0;
	    new randombag = random(sizeof(MBSPAWN));
	    MoneyBagPos[0] = MBSPAWN[randombag][XPOS];
	    MoneyBagPos[1] = MBSPAWN[randombag][YPOS];
	    MoneyBagPos[2] = MBSPAWN[randombag][ZPOS];
	    format(MoneyBagLocation, sizeof(MoneyBagLocation), "%s", MBSPAWN[randombag][Position]);
		format(string, sizeof(string), "**The {33FF66}Money Bag has been {FF0000} hidden in {FFFF66} %s!", MoneyBagLocation);
        SendClientMessageToAll(-1, string);
		MoneyBagPickup = CreatePickup(1550, 2, MoneyBagPos[0], MoneyBagPos[1], MoneyBagPos[2], -1);
	}
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(IsPlayerAdmin(playerid))
    {
		if(!strcmp("/gotomb", cmdtext, true))
		{
		    SetPlayerPos(playerid, MoneyBagPos[0], MoneyBagPos[1] +3, MoneyBagPos[2]);
		    return SendClientMessage(playerid, -1, "You have been {FF0000}teleported {FFFFFF}to the {33FF66}money bag");
		}
		if(!strcmp("/startmb", cmdtext, true)) return MoneyBag();
		if(!strcmp("/togglemb", cmdtext, true))
		{
			if(Timer[0] == 0)
			{
				KillTimer(Timer[1]);
				Timer[0] = 1;
				SendClientMessage(playerid, -1, "Money bag turned {FF0000} off!");
				return 1;
			}
			if(Timer[0] == 1)
			{
			    Timer[1] = SetTimer("MoneyBag", MB_DELAY, true);
			    Timer[0] = 0;
			    SendClientMessage(playerid, -1, "Money bag turned {33FF66} on!");
			    return 1;
			}
		    return 1;
		}

	}
	if(!strcmp("/moneybag", cmdtext, true))
	{
	    new string[150];
		if(!MoneyBagFound) format(string, sizeof(string), "**The {33FF66}Money Bag has been {FF0000}hidden in {FFFF66}%s!", MoneyBagLocation);
		if(MoneyBagFound) format(string, sizeof(string), "**The {33FF66}Money Bag is {FF0000} not running!");
		return SendClientMessage(playerid, -1, string);
	}
	return 0;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
	if(pickupid == MoneyBagPickup)
	{
		new string[180], pname[24];
		GetPlayerName(playerid, pname, 24);
		format(string, sizeof(string), "** {99FFFF}%s{FFFFFF} has found the {33FF66}money bag{FFFFFF} that had {33FF00}$%d {FFFFFF}inside, located in %s", pname, money, MoneyBagLocation);
		MoneyBagFound = 1;
		SendClientMessageToAll(-1, string);
		DestroyPickup(MoneyBagPickup);
		SendClientMessage(playerid, -1, "You have found the {33FF66} Money Bag!");
        Money = floatround(GetDistanceToPoint(playerid, MBSPAWN[randombag][XPOS], MBSPAWN[randombag][YPOS], MBSPAWN[randombag][ZPOS]), floatround_round) * 100;
		GivePlayerMoney(playerid, Money);
		SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
		ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
	}
	return 1;
}
ReD_HunTeR is offline   Reply With Quote
Old 03/05/2016, 04:56 PM   #3
oMa37
Gangsta
 
Join Date: Feb 2016
Posts: 933
Reputation: 156
Default Re: Distance In Money Bag Script.

Well, about the topic, I wanna ask a question.
I have something like this in my server:
PHP Code:
((random(25)+20)*1273
How can i make it between 50000-100000?
oMa37 is offline   Reply With Quote
Old 03/05/2016, 10:54 PM   #4
V1T0
Little Clucker
 
V1T0's Avatar
 
Join Date: Mar 2012
Location: 51550
Posts: 6
Reputation: 11
Default Re: Distance In Money Bag Script.

Quote:
Originally Posted by oMa37 View Post
Well, about the topic, I wanna ask a question.
I have something like this in my server:
PHP Code:
((random(25)+20)*1273
How can i make it between 50000-100000?
randomEx(50000, 100000);
V1T0 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script for Money Medardo4Life Scripting Help 2 16/12/2011 12:21 AM
Anyone want to script for money? AdamEckart Help Archive 0 12/06/2011 09:27 PM
Need help with Money script. MadalinX5 Help Archive 5 31/05/2011 02:43 PM
Calc money with distance me-borno Help Archive 2 19/07/2010 08:31 AM
Local chat distance script Robin_J Help Archive 11 12/02/2009 03:58 PM


All times are GMT. The time now is 01:44 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.