Guest User

Steet Name Textdraw - GODEX

a guest
Sep 28th, 2013
1,239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.90 KB | None | 0 0
  1. /*
  2.  
  3. Street name textdraw Version 0.1.5
  4. Main Developer: Godex
  5. Aiding Developers: Ikey07
  6.  
  7. You are not able to re-release this code without the developers permission
  8. If you do, you can find yourself facing serious problematic circumstances
  9.  
  10. Version 0.1.4
  11. * Added textdraw formatting
  12. * Added in the distance for being close to a certain destination
  13. * Added 5 street locations
  14. * Reformatted the Whole code, for more efficiency
  15. * San Pedro Ave & Hill Street Added
  16. * Extended the variables to 9000 Coordinates (If more is needed will be extended more)
  17.  
  18. Version 0.1.5
  19. * New Textdraw Position and formating
  20. * Aided support from Ikey07 for the Major bug with Global Textdraw
  21. * 9 Streets Completely Finished and bug free
  22. * Whole new code formatted
  23. * Added to a live testing server.
  24.  
  25.  
  26. */
  27.  
  28. #include <a_samp>
  29. #include <foreach>
  30.  
  31. new Text:Streets[MAX_PLAYERS];
  32.  
  33. forward Street_Updates();
  34.  
  35. enum STREETNAME_MAIN
  36. {
  37. STREETNAME_NAME[32],
  38. Float:STREETNAME_LOCATION[3]
  39. };
  40.  
  41. static const gSAStreets[][STREETNAME_MAIN] =
  42. {
  43. {"Hill Street", {2163.3677,-1022.4249,62.4683}},
  44. {"Hill Street", {2166.6282,-1037.4019,60.2118}},
  45. {"Hill Street", {2173.2090,-1048.5280,56.2501}},
  46. {"Hill Street", {2182.9678,-1059.2045,50.6559}},
  47. {"Hill Street", {2192.5183,-1068.0363,45.1056}},
  48. {"Hill Street", {2205.2095,-1080.0837,37.4761}},
  49. {"Hill Street", {2215.9746,-1093.1260,30.4613}},
  50. {"Hill Street", {2219.5205,-1107.9756,26.2334}},
  51. {"San Pedro Ave & E. Vinewood", {1982.0947,-1053.4181,24.3984}},
  52. {"San Pedro Ave", {1987.2188,-1036.2236,24.3085}},
  53. {"San Pedro Ave", {1994.8878,-1016.5814,26.4915}},
  54. {"San Pedro Ave", {2006.4591,-999.4016,30.8420}},
  55. {"San Pedro Ave", {2019.0574,-987.4991,35.6598}},
  56. {"San Pedro Ave", {2037.2461,-980.3242,41.2715}},
  57. {"San Pedro Ave", {2053.7537,-978.3713,45.2112}},
  58. {"San Pedro Ave", {2072.1245,-980.4794,48.6793}},
  59. {"San Pedro Ave", {2087.5793,-984.2504,51.4208}},
  60. {"San Pedro Ave", {2103.7849,-989.0864,54.0382}},
  61. {"San Pedro Ave", {2120.5818,-993.3949,57.2764}},
  62. {"San Pedro Ave", {2136.8247,-998.3556,60.4250}},
  63. {"San Pedro Ave", {2147.7275,-1001.4353,61.9753}},
  64. {"San Pedro Ave & Hill Street", {2163.2515,-1004.6052,62.6328}},
  65. {"San Pedro Ave", {2182.2322,-1007.9039,62.5449}},
  66. {"San Pedro Ave", {2216.4250,-1020.6353,60.2270}},
  67. {"San Pedro Ave", {2243.1472,-1038.9369,55.0251}},
  68. {"San Pedro Ave", {2266.8372,-1059.3041,48.7798}},
  69. {"San Pedro Ave", {2292.2871,-1074.1527,47.1796}},
  70. {"San Pedro Ave", {2314.9556,-1078.3728,48.6442}},
  71. {"San Pedro Ave", {2342.2927,-1077.3535,51.6152}},
  72. {"San Pedro Ave", {2365.5530,-1071.5347,53.5246}},
  73. {"San Pedro Ave", {2385.7000,-1062.4679,53.6911}},
  74. {"San Pedro Ave", {2400.5068,-1049.0186,51.9864}},
  75. {"San Pedro Ave", {2421.0530,-1037.1287,51.9749}},
  76. {"San Pedro Ave", {2441.6846,-1033.7975,56.0599}},
  77. {"San Pedro Ave", {2465.8333,-1035.3616,61.5535}},
  78. {"San Pedro Ave", {2489.4063,-1043.4742,67.6205}},
  79. {"San Pedro Ave", {2510.2959,-1047.8960,69.1193}},
  80. {"San Pedro Ave", {2532.5576,-1048.3618,69.2564}},
  81. {"San Pedro Ave & Peace Rd", {2561.8477,-1047.7813,69.2518}},
  82. {"San Pedro Ave", {2580.3062,-1047.5933,69.2514}},
  83. {"San Pedro Ave", {2606.0398,-1047.7351,69.2562}},
  84. {"San Pedro Ave", {2623.5425,-1048.2861,69.2516}},
  85. {"San Pedro Ave & Forum Street", {2642.8467,-1047.8704,69.2483}},
  86. {"San Pedro Ave", {2661.9558,-1047.6611,69.2577}},
  87. {"San Pedro Ave", {2682.3711,-1048.0504,69.2597}},
  88. {"San Pedro Ave", {2701.1978,-1048.0520,66.2399}},
  89. {"San Pedro Ave", {2727.0930,-1047.9833,56.7669}},
  90. {"San Pedro Ave", {2747.2090,-1047.9296,49.4208}},
  91. {"San Pedro Ave", {2772.1042,-1049.0085,40.3279}},
  92. {"San Pedro Ave", {2798.1416,-1049.2480,30.8091}},
  93. {"San Pedro Ave", {2819.3669,-1049.4775,25.2812}},
  94. {"San Pedro Ave", {2202.3733,-1013.7556,61.1773}},
  95. {"San Pedro Ave", {2231.1167,-1029.2981,58.0302}},
  96. {"San Pedro Ave & Santa Monica", {2837.1780,-1049.7655,23.1038}},
  97. {"Peace Rd", {2561.4707,-1065.0443,68.9868}},
  98. {"Peace Rd", {2555.3777,-1078.9926,67.1077}},
  99. {"Peace Rd", {2544.8977,-1086.8411,63.1955}},
  100. {"Peace Rd", {2532.0840,-1090.8497,58.8623}},
  101. {"Peace Rd", {2514.4104,-1092.1432,53.6337}},
  102. {"Peace Rd", {2492.4807,-1091.1797,48.2034}},
  103. {"Peace Rd", {2471.5276,-1089.0642,44.3304}},
  104. {"Peace Rd", {2451.1855,-1087.0238,42.4246}},
  105. {"Peace Rd", {2431.3586,-1086.1930,41.7664}},
  106. {"Peace Rd", {2411.6187,-1088.5203,39.8116}},
  107. {"Peace Rd", {2396.5332,-1091.7572,37.8299}},
  108. {"Peace Rd", {2379.7363,-1096.6476,35.3865}},
  109. {"Peace Rd", {2362.0176,-1103.2007,32.7240}},
  110. {"Peace Rd", {2344.8335,-1112.9507,30.0607}},
  111. {"Peace Rd", {2332.5061,-1124.6038,28.1098}},
  112. {"Peace Rd", {2326.4695,-1134.9760,27.1658}},
  113. {"Peace Rd & E. Broadway", {2322.6350,-1151.9192,26.6386}},
  114. {"Cruze Intersection", {2826.9502,43.0625,19.8635}},
  115. {"Route 1", {2844.8420,40.6489,19.6826}},
  116. {"Route 1", {2860.7971,30.2055,19.0239}},
  117. {"Route 1", {2871.0940,15.0861,17.8483}},
  118. {"Route 1", {2876.0366,-2.8913,16.9847}},
  119. {"Route 1", {2877.5576,-20.7335,16.6622}},
  120. {"Route 1", {2878.3386,-40.1582,17.4239}},
  121. {"Route 1", {2881.5850,-59.1383,19.1983}},
  122. {"Route 1", {2881.2610,-86.2049,21.7443}},
  123. {"Route 1", {2866.6833,-109.0033,22.6511}},
  124. {"Route 1", {2855.1155,-124.7751,21.8879}},
  125. {"Route 1", {2857.4673,-143.2361,20.9125}},
  126. {"Route 1", {2859.3994,-161.6026,19.9216}},
  127. {"Route 1", {2850.8271,-177.6674,17.7612}},
  128. {"Route 1", {2838.4172,-192.0915,16.1010}},
  129. {"Route 1", {2825.7283,-206.4340,14.8586}},
  130. {"Route 1", {2813.4641,-220.7832,13.6318}},
  131. {"Route 1", {2801.6846,-235.7648,11.9998}},
  132. {"Route 1", {2793.2646,-251.9865,10.2030}},
  133. {"Route 1", {2798.1008,-268.8965,9.2847}},
  134. {"Route 1", {2810.2717,-283.1030,8.6582}},
  135. {"Route 1", {2822.5247,-297.0281,7.9468}},
  136. {"Route 1", {2832.0798,-313.1148,7.4530}},
  137. {"Route 1", {2835.6956,-331.3960,7.6288}},
  138. {"Route 1", {2837.6001,-351.9196,7.7894}},
  139. {"Route 1", {2838.0452,-373.1519,8.0241}},
  140. {"Route 1", {2830.0947,-392.0719,8.7911}},
  141. {"Route 1", {2817.6074,-408.9289,9.7346}},
  142. {"Route 1", {2804.8105,-425.5077,10.4925}},
  143. {"Route 1", {2794.4541,-443.6886,10.8203}},
  144. {"Route 1", {2786.0044,-462.9980,10.8203}},
  145. {"Route 1", {2778.5610,-486.2771,10.8238}},
  146. {"Route 1", {2783.5828,-506.5681,10.8258}},
  147. {"Route 1", {2796.2693,-523.7587,10.8203}},
  148. {"Route 1", {2809.0474,-539.7775,10.8203}},
  149. {"Route 1", {2821.4502,-556.2399,10.8203}},
  150. {"Route 1", {2833.0396,-574.1671,10.8203}},
  151. {"Route 1", {2841.6167,-594.2194,10.8203}},
  152. {"Route 1", {2845.3687,-615.9781,10.8203}},
  153. {"Route 1", {2846.3196,-639.8246,10.8233}},
  154. {"Route 1", {2846.6179,-661.2028,10.8203}},
  155. {"Route 1", {2846.0535,-680.8206,10.8230}},
  156. {"Route 1", {2846.1216,-702.3649,10.8231}},
  157. {"Route 1", {2846.0686,-724.1414,10.8203}},
  158. {"Route 1", {2845.6682,-745.8210,10.8203}},
  159. {"Route 1", {2845.2668,-767.4045,10.8203}},
  160. {"Route 1", {2844.8792,-788.3334,10.8748}},
  161. {"Route 1", {2844.6357,-808.7032,10.9141}},
  162. {"Route 1", {2844.7354,-830.3102,10.9141}},
  163. {"Route 1", {2844.3196,-852.8065,10.8778}},
  164. {"Route 1", {2843.7612,-873.7604,10.7762}},
  165. {"Santa Monica", {2843.1238,-896.5430,11.6191}},
  166. {"Santa Monica", {2842.5010,-915.9705,13.6088}},
  167. {"Santa Monica", {2841.7888,-936.6910,15.8007}},
  168. {"Santa Monica", {2840.9607,-957.8051,17.8468}},
  169. {"Santa Monica", {2840.5244,-978.8018,19.6790}},
  170. {"Santa Monica", {2839.7141,-998.9614,21.2450}},
  171. {"Santa Monica", {2838.9424,-1019.0087,22.3904}},
  172. {"Santa Monica", {2838.6763,-1033.6019,23.0073}},
  173. {"Santa Monica", {2838.3958,-1073.1221,23.3321}},
  174. {"Santa Monica", {2838.2163,-1094.5887,23.8340}},
  175. {"Santa Monica", {2838.1318,-1116.2854,24.4816}},
  176. {"Santa Monica", {2838.1953,-1137.8090,24.7513}},
  177. {"Santa Monica", {2839.2925,-1159.3212,24.7477}},
  178. {"Santa Monica", {2840.7490,-1180.9989,24.5652}},
  179. {"Santa Monica", {2843.5920,-1204.2030,23.9223}},
  180. {"Santa Monica", {2846.2952,-1227.6050,22.8605}},
  181. {"Santa Monica", {2850.3135,-1249.6379,21.9072}},
  182. {"Santa Monica", {2854.5281,-1271.4351,20.4884}},
  183. {"Santa Monica", {2858.1560,-1293.4274,17.5037}},
  184. {"Santa Monica", {2862.2935,-1314.5957,12.7307}},
  185. {"Santa Monica", {2866.0854,-1335.6978,10.8990}},
  186. {"Santa Monica", {2869.6943,-1357.0616,10.9095}},
  187. {"Santa Monica & Bush Street", {2873.3813,-1385.8760,10.9219}},
  188. {"Santa Monica", {2875.7817,-1405.4990,10.9234}},
  189. {"Santa Monica", {2875.4607,-1426.8973,10.8346}},
  190. {"Santa Monica", {2875.3687,-1448.9542,10.7891}},
  191. {"Santa Monica", {2875.4565,-1469.4954,10.7891}},
  192. {"Santa Monica & Sea Street", {2873.2861,-1488.2886,10.8157}},
  193. {"Santa Monica", {2869.4883,-1508.6543,10.8623}},
  194. {"Santa Monica", {2865.0640,-1529.5959,10.9219}},
  195. {"Santa Monica", {2858.3132,-1550.1605,10.9141}},
  196. {"Santa Monica", {2850.9729,-1571.3291,10.9219}},
  197. {"Santa Monica", {2840.0361,-1589.0985,10.9219}},
  198. {"Santa Monica", {2831.1565,-1607.9551,10.9219}},
  199. {"Santa Monica", {2824.4919,-1628.0098,10.8847}},
  200. {"Santa Monica", {2823.6965,-1638.3915,10.7814}},
  201. {"Santa Monica & St Anthony", {2822.4795,-1653.1798,10.7028}},
  202. {"Bush Street", {2851.0403,-1386.3979,11.9068}},
  203. {"Bush Street", {2832.1179,-1386.2767,15.9171}},
  204. {"Bush Street", {2813.0361,-1386.5154,19.9457}},
  205. {"Bush Street", {2797.4775,-1379.4932,21.2552}},
  206. {"Bush Street", {2796.7695,-1360.0070,25.1067}},
  207. {"Bush Street", {2796.8933,-1340.3180,29.8214}},
  208. {"Bush Street", {2796.9810,-1321.8292,34.2115}},
  209. {"Bush Street", {2796.8916,-1301.7079,39.0288}},
  210. {"Bush Street", {2796.7993,-1281.6799,43.6838}},
  211. {"Bush Street", {2794.1624,-1261.8763,46.7925}},
  212. {"Bush Street", {2777.9751,-1258.1458,48.4957}},
  213. {"Bush Street", {2760.0833,-1258.1427,56.2252}},
  214. {"Saints Blvd & Bush Street", {2739.4463,-1258.1072,59.5569}},
  215. {"Saints Blvd & Caeser Rd", {2722.9500,-1258.1633,59.5571}},
  216. {"Saints Blvd", {2722.6560,-1240.8004,60.8227}},
  217. {"Saints Blvd", {2722.6104,-1221.1523,64.3143}},
  218. {"Saints Blvd", {2722.7087,-1200.2623,68.0931}},
  219. {"Saints Blvd & Fremont Steet", {2722.4534,-1185.0774,69.2398}},
  220. {"Saints Blvd", {2722.5410,-1165.9087,69.3074}},
  221. {"Saints Blvd", {2722.8208,-1145.0657,69.4141}},
  222. {"Saints Blvd", {2722.7820,-1123.7262,69.4141}},
  223. {"Saints Blvd", {2722.6829,-1103.4385,69.4141}},
  224. {"Saints Blvd", {2712.6418,-1086.4258,69.2729}},
  225. {"Saints Blvd", {2689.7415,-1086.4277,69.1250}},
  226. {"Saints Blvd", {2668.5491,-1086.2573,69.2113}},
  227. {"Saints Blvd", {2654.0962,-1086.1676,69.4337}},
  228. {"Saints Blvd", {2654.2830,-1071.5763,69.4308}},
  229. {"Saints Blvd & Forum Steet", {2642.7419,-1066.2535,69.4531}},
  230. {"Saints Blvd & Forum Steet", {2642.5703,-1084.2418,69.4531}},
  231. {"Saints Blvd", {2675.1455,-1071.4193,69.1250}},
  232. {"Saints Blvd", {2695.8379,-1071.1667,69.1498}},
  233. {"Saints Blvd", {2716.8752,-1072.2861,69.2656}},
  234. {"Saints Blvd", {2734.0322,-1083.7441,69.3644}},
  235. {"Saints Blvd", {2737.7776,-1104.2264,69.4141}},
  236. {"Saints Blvd", {2737.7241,-1125.6962,69.4141}},
  237. {"Saints Blvd", {2737.9019,-1146.9747,69.4141}},
  238. {"Saints Blvd", {2737.8281,-1167.9716,69.2897}},
  239. {"Saints Blvd", {2737.6985,-1188.8949,69.2387}},
  240. {"Saints Blvd", {2737.4871,-1210.0509,66.3174}},
  241. {"Saints Blvd", {2737.7263,-1231.7383,62.4055}},
  242. {"Saints Blvd", {2737.6890,-1244.5103,60.1734}},
  243. {"Saints Blvd", {2737.8496,-1270.5619,59.1326}},
  244. {"Saints Blvd", {2737.7705,-1290.3485,55.5947}},
  245. {"Saints Blvd", {2737.6553,-1311.3405,51.7978}},
  246. {"Saints Blvd", {2737.4929,-1334.9604,47.5347}},
  247. {"Saints Blvd", {2737.7310,-1355.6243,43.8029}},
  248. {"Saints Blvd", {2737.8259,-1377.6755,39.8237}},
  249. {"Saints Blvd", {2737.7771,-1401.2695,35.5602}},
  250. {"Saints Blvd", {2737.7961,-1419.2253,32.3152}},
  251. {"Saints Blvd", {2737.8770,-1440.0018,30.2813}},
  252. {"Saints Blvd", {2737.6338,-1460.1704,30.2813}},
  253. {"Saints Blvd", {2737.6650,-1476.1156,30.2813}},
  254. {"Saints Blvd & Sea Street", {2737.5005,-1484.9834,30.2813}},
  255. {"Saints Blvd", {2737.5779,-1502.2151,30.2813}},
  256. {"Saints Blvd", {2737.5552,-1523.6674,29.6721}},
  257. {"Saints Blvd", {2737.7158,-1544.9478,26.2668}},
  258. {"Saints Blvd", {2737.7961,-1565.5627,20.4986}},
  259. {"Saints Blvd", {2737.8069,-1586.2794,14.8351}},
  260. {"Saints Blvd", {2737.7556,-1606.8662,12.8430}},
  261. {"Saints Blvd", {2737.5708,-1627.6971,12.8438}},
  262. {"Saints Blvd", {2737.6484,-1642.2026,12.9765}},
  263. {"Saints Blvd & St Anthony", {2737.7437,-1654.3607,13.0628}},
  264. {"Saints Blvd & St Anthony", {2723.2539,-1655.0002,13.0628}},
  265. {"Saints Blvd", {2722.7080,-1642.9790,12.9906}},
  266. {"Saints Blvd & 125 Highway", {2722.4810,-1625.5701,12.8438}},
  267. {"Saints Blvd & 125 Highway", {2722.7246,-1612.3275,12.8494}},
  268. {"Saints Blvd", {2722.7568,-1596.3732,13.2977}},
  269. {"Saints Blvd", {2722.8586,-1578.2084,17.0305}},
  270. {"Saints Blvd", {2722.6868,-1557.1880,22.8135}},
  271. {"Saints Blvd", {2722.6482,-1531.4084,28.7941}},
  272. {"Saints Blvd", {2722.5620,-1521.3818,29.9375}},
  273. {"Saints Blvd & Free Street", {2722.4543,-1509.4491,30.2813}},
  274. {"Saints Blvd", {2722.4861,-1494.8717,30.2813}},
  275. {"Saints Blvd", {2722.7529,-1480.2506,30.2813}},
  276. {"Saints Blvd", {2722.7249,-1459.6580,30.2813}},
  277. {"Saints Blvd", {2722.6868,-1440.2761,30.2813}},
  278. {"Saints Blvd", {2722.8457,-1421.8928,31.8327}},
  279. {"Saints Blvd", {2722.8457,-1402.9806,35.2511}},
  280. {"Saints Blvd", {2722.8457,-1382.7651,38.9030}},
  281. {"Saints Blvd", {2722.5251,-1362.5817,42.5461}},
  282. {"Saints Blvd", {2722.6880,-1338.9934,46.8052}},
  283. {"Saints Blvd", {2722.8130,-1319.7717,50.2768}},
  284. {"Saints Blvd", {2722.7366,-1300.7590,53.7141}},
  285. {"Saints Blvd", {2722.7366,-1279.7731,57.4900}},
  286. {"Sea Street", {2751.1516,-1488.4927,29.9856}},
  287. {"Sea Street", {2769.8879,-1488.4049,27.5795}},
  288. {"Sea Street", {2788.6899,-1488.4720,23.0799}},
  289. {"Sea Street", {2807.5588,-1488.4620,17.7999}},
  290. {"Sea Street", {2830.4668,-1488.3521,12.7418}},
  291. {"Sea Street", {2849.7153,-1488.3448,10.7477}},
  292. {"Sea Street", {2859.4800,-1488.2987,10.7409}},
  293. {"425 East & St Anthony", {2855.3276,-1659.2406,10.8423}},
  294. {"425 East", {2873.7480,-1661.5782,10.8750}},
  295. {"St Anthony", {2839.3335,-1657.4122,10.6948}},
  296. {"St Anthony", {2802.4153,-1657.2496,10.6953}},
  297. {"St Anthony", {2782.3376,-1657.2009,11.1355}},
  298. {"St Anthony", {2762.4819,-1657.2200,12.1731}},
  299. {"St Anthony", {2744.4990,-1657.1906,13.0628}},
  300. {"St Anthony", {2705.7742,-1657.4534,12.6074}},
  301. {"St Anthony", {2685.1218,-1656.9325,11.3329}},
  302. {"St Anthony", {2664.4246,-1657.4423,10.6953}},
  303. {"St Anthony & Forum Street", {2645.4746,-1657.4338,10.7106}},
  304. {"425 East", {2837.6172,-1890.8933,10.9375}},
  305. {"425 East & Forum Street", {2822.6353,-1890.5454,10.9299}},
  306. {"Forum Street", {2808.4568,-1890.6927,10.9293}},
  307. {"Forum Street", {2796.0151,-1890.6735,10.9111}},
  308. {"Forum Street", {2779.8711,-1890.6365,10.8828}},
  309. {"Forum Street & Sand Street", {2772.2754,-1890.7668,10.8828}},
  310. {"Forum Street", {2754.0684,-1890.7579,10.8828}},
  311. {"Forum Street", {2733.6240,-1890.6580,10.8828}},
  312. {"Forum Street", {2713.7097,-1889.6415,10.8828}},
  313. {"Forum Street", {2694.3206,-1883.9722,10.8828}},
  314. {"Forum Street", {2676.1448,-1872.4698,10.8891}},
  315. {"Forum Street", {2662.2988,-1859.4891,10.9050}},
  316. {"Forum Street", {2651.9636,-1843.3917,10.8438}},
  317. {"Forum Street", {2645.9797,-1825.6743,10.8438}},
  318. {"Forum Street", {2643.2661,-1805.9979,10.7679}},
  319. {"Forum Street", {2642.6704,-1786.1803,10.7188}},
  320. {"Forum Street", {2642.7915,-1765.4756,10.7188}},
  321. {"Forum Street", {2642.7747,-1744.1027,10.7263}},
  322. {"Forum Street & Liverpool", {2642.8291,-1735.0939,10.7344}},
  323. {"Forum Street", {2642.8013,-1717.3756,10.7266}},
  324. {"Forum Street", {2642.9236,-1698.9858,10.7344}},
  325. {"Forum Street", {2642.7134,-1679.0741,10.7226}},
  326. {"Forum Street", {2643.0627,-1641.0760,10.7101}},
  327. {"Forum Street", {2642.9641,-1620.9191,10.7266}},
  328. {"Forum Street", {2642.8108,-1601.1904,11.8175}},
  329. {"Forum Street", {2642.9353,-1581.6864,15.3367}},
  330. {"Forum Street", {2642.9817,-1562.9189,18.7245}},
  331. {"Forum Street", {2642.9268,-1544.1498,22.1167}},
  332. {"Forum Street", {2642.8623,-1528.2255,24.9942}},
  333. {"Forum Street", {2642.8276,-1509.6199,28.3474}},
  334. {"Forum Street", {2642.8276,-1490.2200,30.2627}},
  335. {"Forum Street", {2642.6995,-1469.4874,30.2813}},
  336. {"Forum Street", {2642.8113,-1458.6490,30.2813}},
  337. {"Forum Street & Carson", {2642.6516,-1447.9620,30.2758}},
  338. {"Forum Street", {2642.6375,-1433.4492,30.2869}},
  339. {"Forum Street", {2642.6909,-1415.5662,30.2868}},
  340. {"Forum Street & Free", {2642.8220,-1407.4573,30.2867}},
  341. {"Forum Street", {2642.8169,-1387.9329,30.2813}},
  342. {"Forum Street", {2642.7568,-1368.6198,31.3288}},
  343. {"Forum Street", {2642.5942,-1346.3544,35.3510}},
  344. {"Forum Street", {2642.7383,-1324.0033,39.3821}},
  345. {"Forum Street", {2642.6604,-1302.7285,43.2318}},
  346. {"Forum Street", {2642.5706,-1279.3466,47.4539}},
  347. {"Forum Street & Caesar Rd", {2642.6533,-1258.8506,49.8466}},
  348. {"Forum Street", {2642.7861,-1241.2838,49.8491}},
  349. {"Forum Street", {2642.7104,-1222.3280,49.8438}},
  350. {"Forum Street", {2642.6133,-1197.9894,50.6428}},
  351. {"Forum Street", {2642.6943,-1175.1541,55.1612}},
  352. {"Forum Street", {2642.6714,-1154.8257,60.7133}},
  353. {"Forum Street", {2642.7781,-1134.2717,64.5115}},
  354. {"Forum Street", {2642.7363,-1116.4664,67.3340}},
  355. {"Forum Street", {2642.6074,-1098.0474,69.2708}},
  356. {"Free Street", {2656.4866,-1404.6588,30.2835}},
  357. {"Free Street", {2674.5671,-1413.0377,30.3288}},
  358. {"Free Street", {2678.0637,-1432.1339,30.3572}},
  359. {"Free Street", {2677.1863,-1452.0876,30.3807}},
  360. {"Free Street", {2676.8667,-1472.9742,30.3993}},
  361. {"Free Street", {2681.3879,-1492.4825,30.4184}},
  362. {"Free Street", {2695.6853,-1504.8801,30.4401}},
  363. {"Free Street", {2708.5564,-1508.0948,30.3156}}
  364. };
  365. new Timer;
  366. public OnFilterScriptInit()
  367. {
  368. Timer = SetTimer("Street_Updates", 1000, 1);
  369. for(new i=0; i<MAX_PLAYERS; i++) { CreatePlayerTextDraws(i); }
  370. return 1;
  371. }
  372.  
  373. public OnFilterScriptExit()
  374. {
  375. KillTimer(Timer);
  376. for(new i=0; i < MAX_PLAYERS; i++)
  377. {
  378. TextDrawHideForPlayer(i, Streets[i]);
  379. TextDrawDestroy(Streets[i]); Streets[i] = Text:INVALID_TEXT_DRAW;
  380. }
  381. return 1;
  382. }
  383.  
  384. public Street_Updates()
  385. {
  386. foreach(Player, i)
  387. {
  388. new IsATID = -1;
  389. for(new g = 0; g < sizeof(gSAStreets); g++ )
  390. {
  391. if(IsPlayerInRangeOfPoint(i, 15.0, gSAStreets[g][STREETNAME_LOCATION][0], gSAStreets[g][STREETNAME_LOCATION][1], gSAStreets[g][STREETNAME_LOCATION][2]))
  392. {
  393. IsATID = g; break;
  394. }
  395. }
  396. if(IsATID != -1) { TextDrawSetString(Streets[i],gSAStreets[IsATID][STREETNAME_NAME]); TextDrawShowForPlayer(i, Streets[i]); }
  397. else { TextDrawHideForPlayer(i, Streets[i]); }
  398. }
  399. return 1;
  400. }
  401. stock CreatePlayerTextDraws(playerid)
  402. {
  403.  
  404.  
  405. Streets[playerid] = TextDrawCreate(36.000000, 328.000000, "_");
  406. TextDrawBackgroundColor(Streets[playerid], 255);
  407. TextDrawFont(Streets[playerid], 1);
  408. TextDrawLetterSize(Streets[playerid], 0.200000, 1.100000);
  409. TextDrawColor(Streets[playerid], -1);
  410. TextDrawSetOutline(Streets[playerid], 0);
  411. TextDrawSetProportional(Streets[playerid], 1);
  412. TextDrawSetShadow(Streets[playerid], 1);
  413.  
  414. return 1;
  415. }
Advertisement
Add Comment
Please, Sign In to add comment