Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Street name textdraw Version 0.1.5
- Main Developer: Godex
- Aiding Developers: Ikey07
- You are not able to re-release this code without the developers permission
- If you do, you can find yourself facing serious problematic circumstances
- Version 0.1.4
- * Added textdraw formatting
- * Added in the distance for being close to a certain destination
- * Added 5 street locations
- * Reformatted the Whole code, for more efficiency
- * San Pedro Ave & Hill Street Added
- * Extended the variables to 9000 Coordinates (If more is needed will be extended more)
- Version 0.1.5
- * New Textdraw Position and formating
- * Aided support from Ikey07 for the Major bug with Global Textdraw
- * 9 Streets Completely Finished and bug free
- * Whole new code formatted
- * Added to a live testing server.
- */
- #include <a_samp>
- #include <foreach>
- new Text:Streets[MAX_PLAYERS];
- forward Street_Updates();
- enum STREETNAME_MAIN
- {
- STREETNAME_NAME[32],
- Float:STREETNAME_LOCATION[3]
- };
- static const gSAStreets[][STREETNAME_MAIN] =
- {
- {"Hill Street", {2163.3677,-1022.4249,62.4683}},
- {"Hill Street", {2166.6282,-1037.4019,60.2118}},
- {"Hill Street", {2173.2090,-1048.5280,56.2501}},
- {"Hill Street", {2182.9678,-1059.2045,50.6559}},
- {"Hill Street", {2192.5183,-1068.0363,45.1056}},
- {"Hill Street", {2205.2095,-1080.0837,37.4761}},
- {"Hill Street", {2215.9746,-1093.1260,30.4613}},
- {"Hill Street", {2219.5205,-1107.9756,26.2334}},
- {"San Pedro Ave & E. Vinewood", {1982.0947,-1053.4181,24.3984}},
- {"San Pedro Ave", {1987.2188,-1036.2236,24.3085}},
- {"San Pedro Ave", {1994.8878,-1016.5814,26.4915}},
- {"San Pedro Ave", {2006.4591,-999.4016,30.8420}},
- {"San Pedro Ave", {2019.0574,-987.4991,35.6598}},
- {"San Pedro Ave", {2037.2461,-980.3242,41.2715}},
- {"San Pedro Ave", {2053.7537,-978.3713,45.2112}},
- {"San Pedro Ave", {2072.1245,-980.4794,48.6793}},
- {"San Pedro Ave", {2087.5793,-984.2504,51.4208}},
- {"San Pedro Ave", {2103.7849,-989.0864,54.0382}},
- {"San Pedro Ave", {2120.5818,-993.3949,57.2764}},
- {"San Pedro Ave", {2136.8247,-998.3556,60.4250}},
- {"San Pedro Ave", {2147.7275,-1001.4353,61.9753}},
- {"San Pedro Ave & Hill Street", {2163.2515,-1004.6052,62.6328}},
- {"San Pedro Ave", {2182.2322,-1007.9039,62.5449}},
- {"San Pedro Ave", {2216.4250,-1020.6353,60.2270}},
- {"San Pedro Ave", {2243.1472,-1038.9369,55.0251}},
- {"San Pedro Ave", {2266.8372,-1059.3041,48.7798}},
- {"San Pedro Ave", {2292.2871,-1074.1527,47.1796}},
- {"San Pedro Ave", {2314.9556,-1078.3728,48.6442}},
- {"San Pedro Ave", {2342.2927,-1077.3535,51.6152}},
- {"San Pedro Ave", {2365.5530,-1071.5347,53.5246}},
- {"San Pedro Ave", {2385.7000,-1062.4679,53.6911}},
- {"San Pedro Ave", {2400.5068,-1049.0186,51.9864}},
- {"San Pedro Ave", {2421.0530,-1037.1287,51.9749}},
- {"San Pedro Ave", {2441.6846,-1033.7975,56.0599}},
- {"San Pedro Ave", {2465.8333,-1035.3616,61.5535}},
- {"San Pedro Ave", {2489.4063,-1043.4742,67.6205}},
- {"San Pedro Ave", {2510.2959,-1047.8960,69.1193}},
- {"San Pedro Ave", {2532.5576,-1048.3618,69.2564}},
- {"San Pedro Ave & Peace Rd", {2561.8477,-1047.7813,69.2518}},
- {"San Pedro Ave", {2580.3062,-1047.5933,69.2514}},
- {"San Pedro Ave", {2606.0398,-1047.7351,69.2562}},
- {"San Pedro Ave", {2623.5425,-1048.2861,69.2516}},
- {"San Pedro Ave & Forum Street", {2642.8467,-1047.8704,69.2483}},
- {"San Pedro Ave", {2661.9558,-1047.6611,69.2577}},
- {"San Pedro Ave", {2682.3711,-1048.0504,69.2597}},
- {"San Pedro Ave", {2701.1978,-1048.0520,66.2399}},
- {"San Pedro Ave", {2727.0930,-1047.9833,56.7669}},
- {"San Pedro Ave", {2747.2090,-1047.9296,49.4208}},
- {"San Pedro Ave", {2772.1042,-1049.0085,40.3279}},
- {"San Pedro Ave", {2798.1416,-1049.2480,30.8091}},
- {"San Pedro Ave", {2819.3669,-1049.4775,25.2812}},
- {"San Pedro Ave", {2202.3733,-1013.7556,61.1773}},
- {"San Pedro Ave", {2231.1167,-1029.2981,58.0302}},
- {"San Pedro Ave & Santa Monica", {2837.1780,-1049.7655,23.1038}},
- {"Peace Rd", {2561.4707,-1065.0443,68.9868}},
- {"Peace Rd", {2555.3777,-1078.9926,67.1077}},
- {"Peace Rd", {2544.8977,-1086.8411,63.1955}},
- {"Peace Rd", {2532.0840,-1090.8497,58.8623}},
- {"Peace Rd", {2514.4104,-1092.1432,53.6337}},
- {"Peace Rd", {2492.4807,-1091.1797,48.2034}},
- {"Peace Rd", {2471.5276,-1089.0642,44.3304}},
- {"Peace Rd", {2451.1855,-1087.0238,42.4246}},
- {"Peace Rd", {2431.3586,-1086.1930,41.7664}},
- {"Peace Rd", {2411.6187,-1088.5203,39.8116}},
- {"Peace Rd", {2396.5332,-1091.7572,37.8299}},
- {"Peace Rd", {2379.7363,-1096.6476,35.3865}},
- {"Peace Rd", {2362.0176,-1103.2007,32.7240}},
- {"Peace Rd", {2344.8335,-1112.9507,30.0607}},
- {"Peace Rd", {2332.5061,-1124.6038,28.1098}},
- {"Peace Rd", {2326.4695,-1134.9760,27.1658}},
- {"Peace Rd & E. Broadway", {2322.6350,-1151.9192,26.6386}},
- {"Cruze Intersection", {2826.9502,43.0625,19.8635}},
- {"Route 1", {2844.8420,40.6489,19.6826}},
- {"Route 1", {2860.7971,30.2055,19.0239}},
- {"Route 1", {2871.0940,15.0861,17.8483}},
- {"Route 1", {2876.0366,-2.8913,16.9847}},
- {"Route 1", {2877.5576,-20.7335,16.6622}},
- {"Route 1", {2878.3386,-40.1582,17.4239}},
- {"Route 1", {2881.5850,-59.1383,19.1983}},
- {"Route 1", {2881.2610,-86.2049,21.7443}},
- {"Route 1", {2866.6833,-109.0033,22.6511}},
- {"Route 1", {2855.1155,-124.7751,21.8879}},
- {"Route 1", {2857.4673,-143.2361,20.9125}},
- {"Route 1", {2859.3994,-161.6026,19.9216}},
- {"Route 1", {2850.8271,-177.6674,17.7612}},
- {"Route 1", {2838.4172,-192.0915,16.1010}},
- {"Route 1", {2825.7283,-206.4340,14.8586}},
- {"Route 1", {2813.4641,-220.7832,13.6318}},
- {"Route 1", {2801.6846,-235.7648,11.9998}},
- {"Route 1", {2793.2646,-251.9865,10.2030}},
- {"Route 1", {2798.1008,-268.8965,9.2847}},
- {"Route 1", {2810.2717,-283.1030,8.6582}},
- {"Route 1", {2822.5247,-297.0281,7.9468}},
- {"Route 1", {2832.0798,-313.1148,7.4530}},
- {"Route 1", {2835.6956,-331.3960,7.6288}},
- {"Route 1", {2837.6001,-351.9196,7.7894}},
- {"Route 1", {2838.0452,-373.1519,8.0241}},
- {"Route 1", {2830.0947,-392.0719,8.7911}},
- {"Route 1", {2817.6074,-408.9289,9.7346}},
- {"Route 1", {2804.8105,-425.5077,10.4925}},
- {"Route 1", {2794.4541,-443.6886,10.8203}},
- {"Route 1", {2786.0044,-462.9980,10.8203}},
- {"Route 1", {2778.5610,-486.2771,10.8238}},
- {"Route 1", {2783.5828,-506.5681,10.8258}},
- {"Route 1", {2796.2693,-523.7587,10.8203}},
- {"Route 1", {2809.0474,-539.7775,10.8203}},
- {"Route 1", {2821.4502,-556.2399,10.8203}},
- {"Route 1", {2833.0396,-574.1671,10.8203}},
- {"Route 1", {2841.6167,-594.2194,10.8203}},
- {"Route 1", {2845.3687,-615.9781,10.8203}},
- {"Route 1", {2846.3196,-639.8246,10.8233}},
- {"Route 1", {2846.6179,-661.2028,10.8203}},
- {"Route 1", {2846.0535,-680.8206,10.8230}},
- {"Route 1", {2846.1216,-702.3649,10.8231}},
- {"Route 1", {2846.0686,-724.1414,10.8203}},
- {"Route 1", {2845.6682,-745.8210,10.8203}},
- {"Route 1", {2845.2668,-767.4045,10.8203}},
- {"Route 1", {2844.8792,-788.3334,10.8748}},
- {"Route 1", {2844.6357,-808.7032,10.9141}},
- {"Route 1", {2844.7354,-830.3102,10.9141}},
- {"Route 1", {2844.3196,-852.8065,10.8778}},
- {"Route 1", {2843.7612,-873.7604,10.7762}},
- {"Santa Monica", {2843.1238,-896.5430,11.6191}},
- {"Santa Monica", {2842.5010,-915.9705,13.6088}},
- {"Santa Monica", {2841.7888,-936.6910,15.8007}},
- {"Santa Monica", {2840.9607,-957.8051,17.8468}},
- {"Santa Monica", {2840.5244,-978.8018,19.6790}},
- {"Santa Monica", {2839.7141,-998.9614,21.2450}},
- {"Santa Monica", {2838.9424,-1019.0087,22.3904}},
- {"Santa Monica", {2838.6763,-1033.6019,23.0073}},
- {"Santa Monica", {2838.3958,-1073.1221,23.3321}},
- {"Santa Monica", {2838.2163,-1094.5887,23.8340}},
- {"Santa Monica", {2838.1318,-1116.2854,24.4816}},
- {"Santa Monica", {2838.1953,-1137.8090,24.7513}},
- {"Santa Monica", {2839.2925,-1159.3212,24.7477}},
- {"Santa Monica", {2840.7490,-1180.9989,24.5652}},
- {"Santa Monica", {2843.5920,-1204.2030,23.9223}},
- {"Santa Monica", {2846.2952,-1227.6050,22.8605}},
- {"Santa Monica", {2850.3135,-1249.6379,21.9072}},
- {"Santa Monica", {2854.5281,-1271.4351,20.4884}},
- {"Santa Monica", {2858.1560,-1293.4274,17.5037}},
- {"Santa Monica", {2862.2935,-1314.5957,12.7307}},
- {"Santa Monica", {2866.0854,-1335.6978,10.8990}},
- {"Santa Monica", {2869.6943,-1357.0616,10.9095}},
- {"Santa Monica & Bush Street", {2873.3813,-1385.8760,10.9219}},
- {"Santa Monica", {2875.7817,-1405.4990,10.9234}},
- {"Santa Monica", {2875.4607,-1426.8973,10.8346}},
- {"Santa Monica", {2875.3687,-1448.9542,10.7891}},
- {"Santa Monica", {2875.4565,-1469.4954,10.7891}},
- {"Santa Monica & Sea Street", {2873.2861,-1488.2886,10.8157}},
- {"Santa Monica", {2869.4883,-1508.6543,10.8623}},
- {"Santa Monica", {2865.0640,-1529.5959,10.9219}},
- {"Santa Monica", {2858.3132,-1550.1605,10.9141}},
- {"Santa Monica", {2850.9729,-1571.3291,10.9219}},
- {"Santa Monica", {2840.0361,-1589.0985,10.9219}},
- {"Santa Monica", {2831.1565,-1607.9551,10.9219}},
- {"Santa Monica", {2824.4919,-1628.0098,10.8847}},
- {"Santa Monica", {2823.6965,-1638.3915,10.7814}},
- {"Santa Monica & St Anthony", {2822.4795,-1653.1798,10.7028}},
- {"Bush Street", {2851.0403,-1386.3979,11.9068}},
- {"Bush Street", {2832.1179,-1386.2767,15.9171}},
- {"Bush Street", {2813.0361,-1386.5154,19.9457}},
- {"Bush Street", {2797.4775,-1379.4932,21.2552}},
- {"Bush Street", {2796.7695,-1360.0070,25.1067}},
- {"Bush Street", {2796.8933,-1340.3180,29.8214}},
- {"Bush Street", {2796.9810,-1321.8292,34.2115}},
- {"Bush Street", {2796.8916,-1301.7079,39.0288}},
- {"Bush Street", {2796.7993,-1281.6799,43.6838}},
- {"Bush Street", {2794.1624,-1261.8763,46.7925}},
- {"Bush Street", {2777.9751,-1258.1458,48.4957}},
- {"Bush Street", {2760.0833,-1258.1427,56.2252}},
- {"Saints Blvd & Bush Street", {2739.4463,-1258.1072,59.5569}},
- {"Saints Blvd & Caeser Rd", {2722.9500,-1258.1633,59.5571}},
- {"Saints Blvd", {2722.6560,-1240.8004,60.8227}},
- {"Saints Blvd", {2722.6104,-1221.1523,64.3143}},
- {"Saints Blvd", {2722.7087,-1200.2623,68.0931}},
- {"Saints Blvd & Fremont Steet", {2722.4534,-1185.0774,69.2398}},
- {"Saints Blvd", {2722.5410,-1165.9087,69.3074}},
- {"Saints Blvd", {2722.8208,-1145.0657,69.4141}},
- {"Saints Blvd", {2722.7820,-1123.7262,69.4141}},
- {"Saints Blvd", {2722.6829,-1103.4385,69.4141}},
- {"Saints Blvd", {2712.6418,-1086.4258,69.2729}},
- {"Saints Blvd", {2689.7415,-1086.4277,69.1250}},
- {"Saints Blvd", {2668.5491,-1086.2573,69.2113}},
- {"Saints Blvd", {2654.0962,-1086.1676,69.4337}},
- {"Saints Blvd", {2654.2830,-1071.5763,69.4308}},
- {"Saints Blvd & Forum Steet", {2642.7419,-1066.2535,69.4531}},
- {"Saints Blvd & Forum Steet", {2642.5703,-1084.2418,69.4531}},
- {"Saints Blvd", {2675.1455,-1071.4193,69.1250}},
- {"Saints Blvd", {2695.8379,-1071.1667,69.1498}},
- {"Saints Blvd", {2716.8752,-1072.2861,69.2656}},
- {"Saints Blvd", {2734.0322,-1083.7441,69.3644}},
- {"Saints Blvd", {2737.7776,-1104.2264,69.4141}},
- {"Saints Blvd", {2737.7241,-1125.6962,69.4141}},
- {"Saints Blvd", {2737.9019,-1146.9747,69.4141}},
- {"Saints Blvd", {2737.8281,-1167.9716,69.2897}},
- {"Saints Blvd", {2737.6985,-1188.8949,69.2387}},
- {"Saints Blvd", {2737.4871,-1210.0509,66.3174}},
- {"Saints Blvd", {2737.7263,-1231.7383,62.4055}},
- {"Saints Blvd", {2737.6890,-1244.5103,60.1734}},
- {"Saints Blvd", {2737.8496,-1270.5619,59.1326}},
- {"Saints Blvd", {2737.7705,-1290.3485,55.5947}},
- {"Saints Blvd", {2737.6553,-1311.3405,51.7978}},
- {"Saints Blvd", {2737.4929,-1334.9604,47.5347}},
- {"Saints Blvd", {2737.7310,-1355.6243,43.8029}},
- {"Saints Blvd", {2737.8259,-1377.6755,39.8237}},
- {"Saints Blvd", {2737.7771,-1401.2695,35.5602}},
- {"Saints Blvd", {2737.7961,-1419.2253,32.3152}},
- {"Saints Blvd", {2737.8770,-1440.0018,30.2813}},
- {"Saints Blvd", {2737.6338,-1460.1704,30.2813}},
- {"Saints Blvd", {2737.6650,-1476.1156,30.2813}},
- {"Saints Blvd & Sea Street", {2737.5005,-1484.9834,30.2813}},
- {"Saints Blvd", {2737.5779,-1502.2151,30.2813}},
- {"Saints Blvd", {2737.5552,-1523.6674,29.6721}},
- {"Saints Blvd", {2737.7158,-1544.9478,26.2668}},
- {"Saints Blvd", {2737.7961,-1565.5627,20.4986}},
- {"Saints Blvd", {2737.8069,-1586.2794,14.8351}},
- {"Saints Blvd", {2737.7556,-1606.8662,12.8430}},
- {"Saints Blvd", {2737.5708,-1627.6971,12.8438}},
- {"Saints Blvd", {2737.6484,-1642.2026,12.9765}},
- {"Saints Blvd & St Anthony", {2737.7437,-1654.3607,13.0628}},
- {"Saints Blvd & St Anthony", {2723.2539,-1655.0002,13.0628}},
- {"Saints Blvd", {2722.7080,-1642.9790,12.9906}},
- {"Saints Blvd & 125 Highway", {2722.4810,-1625.5701,12.8438}},
- {"Saints Blvd & 125 Highway", {2722.7246,-1612.3275,12.8494}},
- {"Saints Blvd", {2722.7568,-1596.3732,13.2977}},
- {"Saints Blvd", {2722.8586,-1578.2084,17.0305}},
- {"Saints Blvd", {2722.6868,-1557.1880,22.8135}},
- {"Saints Blvd", {2722.6482,-1531.4084,28.7941}},
- {"Saints Blvd", {2722.5620,-1521.3818,29.9375}},
- {"Saints Blvd & Free Street", {2722.4543,-1509.4491,30.2813}},
- {"Saints Blvd", {2722.4861,-1494.8717,30.2813}},
- {"Saints Blvd", {2722.7529,-1480.2506,30.2813}},
- {"Saints Blvd", {2722.7249,-1459.6580,30.2813}},
- {"Saints Blvd", {2722.6868,-1440.2761,30.2813}},
- {"Saints Blvd", {2722.8457,-1421.8928,31.8327}},
- {"Saints Blvd", {2722.8457,-1402.9806,35.2511}},
- {"Saints Blvd", {2722.8457,-1382.7651,38.9030}},
- {"Saints Blvd", {2722.5251,-1362.5817,42.5461}},
- {"Saints Blvd", {2722.6880,-1338.9934,46.8052}},
- {"Saints Blvd", {2722.8130,-1319.7717,50.2768}},
- {"Saints Blvd", {2722.7366,-1300.7590,53.7141}},
- {"Saints Blvd", {2722.7366,-1279.7731,57.4900}},
- {"Sea Street", {2751.1516,-1488.4927,29.9856}},
- {"Sea Street", {2769.8879,-1488.4049,27.5795}},
- {"Sea Street", {2788.6899,-1488.4720,23.0799}},
- {"Sea Street", {2807.5588,-1488.4620,17.7999}},
- {"Sea Street", {2830.4668,-1488.3521,12.7418}},
- {"Sea Street", {2849.7153,-1488.3448,10.7477}},
- {"Sea Street", {2859.4800,-1488.2987,10.7409}},
- {"425 East & St Anthony", {2855.3276,-1659.2406,10.8423}},
- {"425 East", {2873.7480,-1661.5782,10.8750}},
- {"St Anthony", {2839.3335,-1657.4122,10.6948}},
- {"St Anthony", {2802.4153,-1657.2496,10.6953}},
- {"St Anthony", {2782.3376,-1657.2009,11.1355}},
- {"St Anthony", {2762.4819,-1657.2200,12.1731}},
- {"St Anthony", {2744.4990,-1657.1906,13.0628}},
- {"St Anthony", {2705.7742,-1657.4534,12.6074}},
- {"St Anthony", {2685.1218,-1656.9325,11.3329}},
- {"St Anthony", {2664.4246,-1657.4423,10.6953}},
- {"St Anthony & Forum Street", {2645.4746,-1657.4338,10.7106}},
- {"425 East", {2837.6172,-1890.8933,10.9375}},
- {"425 East & Forum Street", {2822.6353,-1890.5454,10.9299}},
- {"Forum Street", {2808.4568,-1890.6927,10.9293}},
- {"Forum Street", {2796.0151,-1890.6735,10.9111}},
- {"Forum Street", {2779.8711,-1890.6365,10.8828}},
- {"Forum Street & Sand Street", {2772.2754,-1890.7668,10.8828}},
- {"Forum Street", {2754.0684,-1890.7579,10.8828}},
- {"Forum Street", {2733.6240,-1890.6580,10.8828}},
- {"Forum Street", {2713.7097,-1889.6415,10.8828}},
- {"Forum Street", {2694.3206,-1883.9722,10.8828}},
- {"Forum Street", {2676.1448,-1872.4698,10.8891}},
- {"Forum Street", {2662.2988,-1859.4891,10.9050}},
- {"Forum Street", {2651.9636,-1843.3917,10.8438}},
- {"Forum Street", {2645.9797,-1825.6743,10.8438}},
- {"Forum Street", {2643.2661,-1805.9979,10.7679}},
- {"Forum Street", {2642.6704,-1786.1803,10.7188}},
- {"Forum Street", {2642.7915,-1765.4756,10.7188}},
- {"Forum Street", {2642.7747,-1744.1027,10.7263}},
- {"Forum Street & Liverpool", {2642.8291,-1735.0939,10.7344}},
- {"Forum Street", {2642.8013,-1717.3756,10.7266}},
- {"Forum Street", {2642.9236,-1698.9858,10.7344}},
- {"Forum Street", {2642.7134,-1679.0741,10.7226}},
- {"Forum Street", {2643.0627,-1641.0760,10.7101}},
- {"Forum Street", {2642.9641,-1620.9191,10.7266}},
- {"Forum Street", {2642.8108,-1601.1904,11.8175}},
- {"Forum Street", {2642.9353,-1581.6864,15.3367}},
- {"Forum Street", {2642.9817,-1562.9189,18.7245}},
- {"Forum Street", {2642.9268,-1544.1498,22.1167}},
- {"Forum Street", {2642.8623,-1528.2255,24.9942}},
- {"Forum Street", {2642.8276,-1509.6199,28.3474}},
- {"Forum Street", {2642.8276,-1490.2200,30.2627}},
- {"Forum Street", {2642.6995,-1469.4874,30.2813}},
- {"Forum Street", {2642.8113,-1458.6490,30.2813}},
- {"Forum Street & Carson", {2642.6516,-1447.9620,30.2758}},
- {"Forum Street", {2642.6375,-1433.4492,30.2869}},
- {"Forum Street", {2642.6909,-1415.5662,30.2868}},
- {"Forum Street & Free", {2642.8220,-1407.4573,30.2867}},
- {"Forum Street", {2642.8169,-1387.9329,30.2813}},
- {"Forum Street", {2642.7568,-1368.6198,31.3288}},
- {"Forum Street", {2642.5942,-1346.3544,35.3510}},
- {"Forum Street", {2642.7383,-1324.0033,39.3821}},
- {"Forum Street", {2642.6604,-1302.7285,43.2318}},
- {"Forum Street", {2642.5706,-1279.3466,47.4539}},
- {"Forum Street & Caesar Rd", {2642.6533,-1258.8506,49.8466}},
- {"Forum Street", {2642.7861,-1241.2838,49.8491}},
- {"Forum Street", {2642.7104,-1222.3280,49.8438}},
- {"Forum Street", {2642.6133,-1197.9894,50.6428}},
- {"Forum Street", {2642.6943,-1175.1541,55.1612}},
- {"Forum Street", {2642.6714,-1154.8257,60.7133}},
- {"Forum Street", {2642.7781,-1134.2717,64.5115}},
- {"Forum Street", {2642.7363,-1116.4664,67.3340}},
- {"Forum Street", {2642.6074,-1098.0474,69.2708}},
- {"Free Street", {2656.4866,-1404.6588,30.2835}},
- {"Free Street", {2674.5671,-1413.0377,30.3288}},
- {"Free Street", {2678.0637,-1432.1339,30.3572}},
- {"Free Street", {2677.1863,-1452.0876,30.3807}},
- {"Free Street", {2676.8667,-1472.9742,30.3993}},
- {"Free Street", {2681.3879,-1492.4825,30.4184}},
- {"Free Street", {2695.6853,-1504.8801,30.4401}},
- {"Free Street", {2708.5564,-1508.0948,30.3156}}
- };
- new Timer;
- public OnFilterScriptInit()
- {
- Timer = SetTimer("Street_Updates", 1000, 1);
- for(new i=0; i<MAX_PLAYERS; i++) { CreatePlayerTextDraws(i); }
- return 1;
- }
- public OnFilterScriptExit()
- {
- KillTimer(Timer);
- for(new i=0; i < MAX_PLAYERS; i++)
- {
- TextDrawHideForPlayer(i, Streets[i]);
- TextDrawDestroy(Streets[i]); Streets[i] = Text:INVALID_TEXT_DRAW;
- }
- return 1;
- }
- public Street_Updates()
- {
- foreach(Player, i)
- {
- new IsATID = -1;
- for(new g = 0; g < sizeof(gSAStreets); g++ )
- {
- if(IsPlayerInRangeOfPoint(i, 15.0, gSAStreets[g][STREETNAME_LOCATION][0], gSAStreets[g][STREETNAME_LOCATION][1], gSAStreets[g][STREETNAME_LOCATION][2]))
- {
- IsATID = g; break;
- }
- }
- if(IsATID != -1) { TextDrawSetString(Streets[i],gSAStreets[IsATID][STREETNAME_NAME]); TextDrawShowForPlayer(i, Streets[i]); }
- else { TextDrawHideForPlayer(i, Streets[i]); }
- }
- return 1;
- }
- stock CreatePlayerTextDraws(playerid)
- {
- Streets[playerid] = TextDrawCreate(36.000000, 328.000000, "_");
- TextDrawBackgroundColor(Streets[playerid], 255);
- TextDrawFont(Streets[playerid], 1);
- TextDrawLetterSize(Streets[playerid], 0.200000, 1.100000);
- TextDrawColor(Streets[playerid], -1);
- TextDrawSetOutline(Streets[playerid], 0);
- TextDrawSetProportional(Streets[playerid], 1);
- TextDrawSetShadow(Streets[playerid], 1);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment