Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.57 KB | None | 0 0
  1. {$CLEO .cs}
  2. thread "TP"
  3. 0000: NOP
  4.  
  5. repeat
  6. wait 0
  7. until Samp.Available()
  8. 0B34: samp register_client_command "tpmenu" to_label @tpmenu
  9.  
  10. repeat
  11. wait 0
  12. if 30@ == 1
  13. then
  14. 0B80: dialog 3@ = create "ARPTP by Supra (Modified by Axwell)"
  15. 0AB1: call_scm_func @set_dialog_pos 3 3@ 300 350
  16. 0B82: dialog 3@ add_button id 0 text "Øàõòà" pos_XY 5 5 size 95 25
  17. 0B82: dialog 3@ add_button id 1 text "Çàâîä" pos_XY 5 30 size 95 25
  18. 0B82: dialog 3@ add_button id 2 text "Ãðóç÷èê" pos_XY 5 55 size 95 25
  19. 0B82: dialog 3@ add_button id 3 text "Ðàçâ.Ïðîä." pos_XY 5 80 size 95 25
  20. 0B82: dialog 3@ add_button id 4 text "Ìýðèÿ LS" pos_XY 5 105 size 95 25
  21. 0B82: dialog 3@ add_button id 5 text "Ìýðèÿ SF" pos_XY 5 130 size 95 25
  22. 0B82: dialog 3@ add_button id 6 text "Ìýðèÿ LV" pos_XY 5 155 size 95 25
  23. 0B82: dialog 3@ add_button id 7 text "LSPD" pos_XY 5 180 size 95 25
  24. 0B82: dialog 3@ add_button id 8 text "SFPD" pos_XY 5 205 size 95 25
  25. 0B82: dialog 3@ add_button id 9 text "LVPD" pos_XY 5 230 size 95 25
  26. 0B82: dialog 3@ add_button id 10 text "Hosp. LS" pos_XY 5 255 size 95 25
  27. 0B82: dialog 3@ add_button id 11 text "Hosp. SF" pos_XY 5 280 size 95 25
  28. 0B82: dialog 3@ add_button id 12 text "Hosp. LV" pos_XY 5 305 size 95 25
  29. 0B82: dialog 3@ add_button id 13 text "Ballas" pos_XY 100 5 size 95 25
  30. 0B82: dialog 3@ add_button id 14 text "Grove" pos_XY 100 30 size 95 25
  31. 0B82: dialog 3@ add_button id 15 text "Aztecas" pos_XY 100 55 size 95 25
  32. 0B82: dialog 3@ add_button id 16 text "Vagos" pos_XY 100 80 size 95 25
  33. 0B82: dialog 3@ add_button id 17 text "Rifa" pos_XY 100 105 size 95 25
  34. 0B82: dialog 3@ add_button id 18 text "LCN" pos_XY 100 130 size 95 25
  35. 0B82: dialog 3@ add_button id 19 text "Yakuza" pos_XY 100 155 size 95 25
  36. 0B82: dialog 3@ add_button id 20 text "Rus.mafia" pos_XY 100 180 size 95 25
  37. 0B82: dialog 3@ add_button id 21 text "FBI" pos_XY 100 205 size 95 25
  38. 0B82: dialog 3@ add_button id 22 text "ÀÏ" pos_XY 100 230 size 95 25
  39. 0B82: dialog 3@ add_button id 23 text "LSFM" pos_XY 100 255 size 95 25
  40. 0B82: dialog 3@ add_button id 24 text "SFFM" pos_XY 100 280 size 95 25
  41. 0B82: dialog 3@ add_button id 25 text "LVFM" pos_XY 100 305 size 95 25
  42. 0B82: dialog 3@ add_button id 26 text "TV" pos_XY 195 5 size 95 25
  43. 0B82: dialog 3@ add_button id 27 text "ÑÂ" pos_XY 195 30 size 95 25
  44. 0B82: dialog 3@ add_button id 28 text "ÂÌÔ" pos_XY 195 55 size 95 25
  45. 0B82: dialog 3@ add_button id 29 text "ÂÂÑ" pos_XY 195 80 size 95 25
  46. 0B82: dialog 3@ add_button id 30 text "Âîåíêîì." pos_XY 195 105 size 95 25
  47. 0B82: dialog 3@ add_button id 31 text "Àâòîøêîëà" pos_XY 195 130 size 95 25
  48. 0B82: dialog 3@ add_button id 32 text "Ìåòêà" pos_XY 195 155 size 95 25
  49. 0B82: dialog 3@ add_button id 33 text "Exit" pos_XY 195 180 size 95 25
  50. 0B8D: samp set_cursor_mode 2
  51. while 0B87: dialog 3@ is_visible
  52. wait 0
  53.  
  54. {=====Ïåðåíîñ=====}
  55. if 0AB0: key_pressed 1
  56. then
  57. 0B5E: get_cursor_pos 28@ 27@
  58. 0B85: samp dialog 3@ get_position_to 26@ 25@ size_to 0@ 0@
  59. if and
  60. 001D: 28@ > 26@
  61. 001D: 27@ > 25@
  62. then
  63. 26@ += 340
  64. 25@ += 20
  65. if and
  66. 001D: 26@ > 28@
  67. 001D: 25@ > 27@
  68. then
  69. 26@ -= 340
  70. 25@ -= 20
  71. 0062: 28@ -= 26@
  72. 0062: 27@ -= 25@
  73. while 0AB0: key_pressed 1
  74. wait 0
  75. 0B5E: get_cursor_pos 26@ 25@
  76. 0062: 26@ -= 28@
  77. 0062: 25@ -= 27@
  78. 0B84: samp dialog 3@ set_pos_XY 26@ 25@ size 300 350
  79. end
  80. end
  81. end
  82. end
  83. {=================}
  84. if 0B81: dialog 3@ pop_event_to 4@ {id ñîáûòèÿ} control_id_to 2@ {id êîìïîíåíòà}
  85. then
  86. if 2@ == 32
  87. then
  88. if 0AB6: store_target_marker_coords_to 4@ 5@ 6@ // IF and SET
  89. then
  90. 0AB1: call_scm_func @TP 3 4@ 5@ 6@ // Òåëåïîðòèðóåì
  91. wait 0
  92. 0AB6: store_target_marker_coords_to 4@ 5@ 6@ // IF and SET
  93. Actor.PutAt($PLAYER_ACTOR, 4@, 5@, 6@)
  94. 0B86: dialog 3@ set_visible false
  95. 0B8D: samp set_cursor_mode 0
  96. 30@ = 0
  97. else
  98. 0AF8: samp add_message_to_chat "Îøèáêà! Íåîáõîäèìî ïîñòàâèòü ìåòêó íà êàðòå" color 0xff0000
  99. end
  100. else
  101. if 2@ == 33
  102. then
  103. 0B86: dialog 3@ set_visible false
  104. 0B8D: samp set_cursor_mode 0
  105. 30@ = 0
  106. else
  107. 0AB1: call_scm_func @coords 1 2@ 4@ 5@ 6@ // Ïîëó÷àåì êîîðäèíàòû
  108. 0AB1: call_scm_func @TP 3 4@ 5@ 6@ // Òåëåïîðòèðóåì
  109. 0B86: dialog 3@ set_visible false
  110. 0B8D: samp set_cursor_mode 0
  111. 30@ = 0
  112. end
  113. end
  114. end
  115. end
  116. end
  117. until false
  118.  
  119. :tpmenu
  120. if 30@ == 0
  121. then
  122. 30@ = 1
  123. end
  124. 0B43: samp cmd_ret
  125.  
  126. :set_dialog_pos // [0@ = dialog id] [1@ = size x] [2@ = size y]
  127. 0B5A: get_screen_resolution 3@ 4@
  128. 0063: 4@ -= 2@
  129. 0B84: dialog 0@ set_pos_XY 1 4@ size 1@ 2@
  130. 0AB2: ret 0
  131.  
  132. :TP {x} {y} {z}
  133. Actor.PutAt($PLAYER_ACTOR, 0, 0, -10000)
  134. wait 4000
  135. Actor.PutAt($PLAYER_ACTOR, 0@, 1@, 2@)
  136. 0AB2: ret 0
  137.  
  138. :coords {but }
  139. if 0@ == 0 // waxta
  140. then
  141. 1@ = -1893.5366
  142. 2@ = -1602.8402
  143. 3@ = 21.7500
  144. end
  145.  
  146. if 0@ == 1 // Çàâîä
  147. then
  148. 1@ = -129.7006
  149. 2@ = -339.2880
  150. 3@ = 1.4297
  151. end
  152.  
  153. if 0@ == 2 // Ãðóç÷èê
  154. then
  155. 1@ = 2158.5872
  156. 2@ = -2316.2393
  157. 3@ = 15.8181
  158. end
  159.  
  160. if 0@ == 3 // Ðàçâ. ïðîä.
  161. then
  162. 1@ = 2286.1265
  163. 2@ = -2312.2734
  164. 3@ = 13.5413
  165. end
  166.  
  167. if 0@ == 4 // Ìýðèÿ ËÑ
  168. then
  169. 1@ = 1505.3599
  170. 2@ = -1753.9567
  171. 3@ = 13.5469
  172. end
  173.  
  174. if 0@ == 5 // Ìýðèÿ ÑÔ
  175. then
  176. 1@ = -2768.9116
  177. 2@ = 361.9172
  178. 3@ = 4.4738
  179. end
  180.  
  181. if 0@ == 6 // Ìýðèÿ ËÂ
  182. then
  183. 1@ = 2389.1733
  184. 2@ = 2423.1089
  185. 3@ = 10.8125
  186. end
  187.  
  188. if 0@ == 7 // lSPD
  189. then
  190. 1@ = 1553.6309
  191. 2@ = -1671.4644
  192. 3@ = 13.5562
  193. end
  194.  
  195. if 0@ == 8 // SFPD
  196. then
  197. 1@ = -1601.9305
  198. 2@ = 717.2076
  199. 3@ = 11.3774
  200. end
  201.  
  202. if 0@ == 9 // LVPD
  203. then
  204. 1@ = 2281.3735
  205. 2@ = 2428.8369
  206. 3@ = 10.8203
  207. end
  208.  
  209. if 0@ == 10 // Hosp LS
  210. then
  211. 1@ = 1180.3518
  212. 2@ = -1305.7943
  213. 3@ = 13.7950
  214. end
  215.  
  216. if 0@ == 11 // Hosp SF
  217. then
  218. 1@ = -2680.4097
  219. 2@ = 637.1298
  220. 3@ = 14.4531
  221. end
  222.  
  223. if 0@ == 12 // Hosp LV
  224. then
  225. 1@ = 1592.6801
  226. 2@ = 1816.8179
  227. 3@ = 10.8203
  228. end
  229.  
  230. if 0@ == 13 // ballas
  231. then
  232. 1@ = 2017.0066
  233. 2@ = -1109.5461
  234. 3@ = 26.2031
  235. end
  236.  
  237. if 0@ == 14 // grove
  238. then
  239. 1@ = 2465.0613
  240. 2@ = -1710.5726
  241. 3@ = 13.5022
  242. end
  243.  
  244. if 0@ == 15 // aztec
  245. then
  246. 1@ = 2170.1987
  247. 2@ = -1728.4161
  248. 3@ = 13.5409
  249. end
  250.  
  251. if 0@ == 16 // vaginos
  252. then
  253. 1@ = 2766.8125
  254. 2@ = -1178.2269
  255. 3@ = 69.4036
  256. end
  257.  
  258. if 0@ == 17 // Rifa
  259. then
  260. 1@ = 2786.8208
  261. 2@ = -1898.5823
  262. 3@ = 11.0657
  263. end
  264.  
  265. if 0@ == 18 // LCN
  266. then
  267. 1@ = 1432.5754
  268. 2@ = 2733.1392
  269. 3@ = 10.8203
  270. end
  271.  
  272. if 0@ == 19 // Yakuza
  273. then
  274. 1@ = 2549.2310
  275. 2@ = 1842.1932
  276. 3@ = 10.8203
  277. end
  278.  
  279. if 0@ == 20 // Rus. Maf
  280. then
  281. 1@ = 985.8802
  282. 2@ = 1690.6359
  283. 3@ = 9.1081
  284. end
  285.  
  286. if 0@ == 21 // FBI
  287. then
  288. 1@ = -2374.7913
  289. 2@ = 484.8788
  290. 3@ = 29.7990
  291. end
  292.  
  293. if 0@ == 22 // AP
  294. then
  295. 1@ = 951.6120
  296. 2@ = -893.6904
  297. 3@ = 45.7656
  298. end
  299.  
  300. if 0@ == 23 // LSFM
  301. then
  302. 1@ = 1630.1149
  303. 2@ = -1650.5219
  304. 3@ = 22.5156
  305. end
  306.  
  307. if 0@ == 24 // SFFM
  308. then
  309. 1@ = -1838.0138
  310. 2@ = 587.2550
  311. 3@ = 35.1641
  312. end
  313.  
  314. if 0@ == 25 // LVFM
  315. then
  316. 1@ = 2101.2039
  317. 2@ = 2359.7285
  318. 3@ = 11.2422
  319. end
  320.  
  321. if 0@ == 26 // TV
  322. then
  323. 1@ = 1785.4913
  324. 2@ = -1307.5454
  325. 3@ = 13.6968
  326. end
  327.  
  328. if 0@ == 27 // CÂ
  329. then
  330. 1@ = 397.0686
  331. 2@ = 1918.8665
  332. 3@ = 17.6406
  333. end
  334.  
  335. if 0@ == 28 // ÂÌÔ
  336. then
  337. 1@ = -2334.5613
  338. 2@ = 2367.3196
  339. 3@= 5.6221
  340. end
  341.  
  342. if 0@ == 29 // ÂÂÑ
  343. then
  344. 1@ = 495.6856
  345. 2@ = 2603.2561
  346. 3@ = 61.5528
  347. end
  348.  
  349. if 0@ == 30 // Âîåíêîì
  350. then
  351. 1@ = 1139.3917
  352. 2@ = 1382.6759
  353. 3@ = 10.8203
  354. end
  355.  
  356. if 0@ == 31 // Àâòîøêîëà
  357. then
  358. 1@ = -2040.5258
  359. 2@ = -104.4789
  360. 3@ = 35.1719
  361. end
  362.  
  363. 0AB2: ret 3 1@ 2@ 3@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement