Advertisement
Guest User

Untitled

a guest
Sep 13th, 2016
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.20 KB | None | 0 0
  1. hex
  2. 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15
  3. end
  4.  
  5. /*
  6. 0@ - p1cador.mp3
  7. 1@ - get_hook_param PARAM_BITSTREAM
  8. 2@ - RPC_GIVETAKEDAMAGE
  9. 3@ - 0 = give / 1 =take
  10. 4@ - Player ID
  11. 5@ - ammount damage(FLOAT)
  12. 6@ - GUN -> BodyPart
  13. 7@ - handle
  14. 8@ - nickname
  15. 9@ - COUNTER
  16. 10@ - прицел INGAME X
  17. 11@ - прицел INGAME Y
  18. 12@ - прицел WINDOW X
  19. 13@ - прицел WINDOW Y
  20. 14@ - 4@
  21. 15@ - 5@
  22. 16@ - 4@
  23. 17@ - 5@
  24. 18@ - nickname(2)
  25. 19@ - MAIN TRIGGER 0-600ms
  26. 20@ - ACTOR X
  27. 21@ - ACTOR Y
  28. 22@ - ACTOR Z
  29. 23@ - length 31@ 29@
  30. 24@ - font 30@ высота
  31. 25@ - TRIGGER 1
  32. 26@ - TRIGGER 2
  33. 27@ - length 31@ <-------------------
  34. 28@ - alloc dmg |
  35. 29@ - alloc name |
  36. 30@ - FONT dmg |
  37. 31@ - FONT name <--------------------
  38. 32@ -
  39. */
  40. {$CLEO}
  41. {$INCLUDE SF}
  42. 0000:
  43.  
  44. while not SAMP.Available()
  45. wait 100
  46. end
  47.  
  48. ////////////////////////////////////////
  49. /*alloc 30@ 128
  50.  
  51. 0b6d: render 31@ = create_font "Arial" height 15 flags 12
  52.  
  53. 0B5A: get_screen_resolution 1@ 2@
  54. 0062: 1@ -= 1@
  55. //0062: 2@ -= 2@
  56. 2@ -= 25
  57.  
  58.  
  59. while true
  60. wait 0
  61. format 30@ "{ffffff}DMG Informer 0.3.7 RC2 {BEBEBE}v 0.1"
  62. 0B6F: render font 31@ draw_text 30@ pos 1@ 2@ color 0xFFffffff
  63. //0B6C: render 3@ = font 31@ draw_height
  64. 0062: 2@ -= 3@
  65. format 30@ "{ffffff}by {ff0000}p{ffffff}1cador"
  66. 0B6F: render font 31@ draw_text 30@ pos 1@ 2@ color 0xFFffff
  67. 005a: 2@ += 3@
  68.  
  69.  
  70.  
  71.  
  72.  
  73. if 0B61: samp is_local_player_spawned
  74. then break
  75. end
  76. end
  77. */
  78. 0AF8: samp add_message_to_chat "DMG Informer {ff0000}v 0.1.1 {ffffff}(0.3.7 RC2) by {ff0000}p1cador" color 0xffffff
  79.  
  80.  
  81.  
  82. /////////////////////////////////////
  83.  
  84. 9@ = 0
  85. 3@ = -1
  86. 25@ = 0
  87. 26@ = 0
  88. 14@ = 0
  89. 15@ = 0
  90. 16@ = 0
  91. 17@ = 0
  92. //0952: load_soundtrack 1149
  93. //qoloqol3.mp3
  94. while true
  95. wait 0
  96. if 0AAC: 0@ = load_audiostream "CLEO\p1cador.mp3"
  97. then
  98. //0AC1: 9@ = load_audiostream_with_3d_support "CLEO\qoloqol3.mp3"
  99. 0B78: log "{F44336}[p1cador] > Audio Loaded!"
  100. 0ABC: set_audiostream 0@ volume 1.0
  101. break
  102. else
  103. end
  104. end
  105.  
  106. 0b6d: render 31@ = create_font "Arial" height 10 flags 12
  107. 0b6d: render 30@ = create_font "Arial" height 21 flags 13
  108. alloc 29@ 48
  109. alloc 28@ 48
  110.  
  111. 10@ = 339.0 // ПРИЦЕЛ //10@ += 45.0
  112. 11@ = 174.0 // ПРИЦЕЛ
  113.  
  114.  
  115.  
  116. 0BE1: raknet setup_outcoming_rpc_hook @outRPC
  117. //thread "qol"
  118.  
  119. //0085: 13@ = 11@ // (int)
  120. //0087: 17@ = 3@ // (float)
  121.  
  122. //003B: 12@ == 21@ // (int)
  123. //0045: 85@ == 69@ // (float)
  124.  
  125. while true
  126. wait 0
  127.  
  128.  
  129. if 25@ == 9
  130. then
  131. 9@ += 1
  132. 10@ = 384.0
  133. 0B60: convert_game_screen_coords 10@ 11@ to_window_screen_coords 12@ 13@
  134. if SAMP.IsPlayerPaused(4@)
  135. then
  136. format 28@ "{FFFFFF}AFK"
  137. else
  138. if Actor.Dead(7@)
  139. then
  140. format 28@ "{ff0000} ВЫЕБАН" 15@
  141. else
  142. format 28@ "-%.2f" 15@
  143. end
  144. end
  145. 0b6f: render font 30@ draw_text 28@ pos 12@ 13@ color 0x8fff0000
  146. 0B6C: render 24@ = font 30@ draw_height
  147. 005a: 24@ -= 13@ //error opcode
  148.  
  149.  
  150. format 29@ "%s[%d]" 8@ 14@
  151. 0b6f: render font 31@ draw_text 29@ pos 12@ 24@ color 0xf0ffffff //ff00ff00
  152.  
  153. else
  154. end
  155.  
  156. if 26@ == 10
  157. then
  158. 9@ += 1
  159. 10@ = 294.0
  160.  
  161. 0B60: convert_game_screen_coords 10@ 11@ to_window_screen_coords 12@ 13@
  162. 0B6B: render 23@ = font 31@ draw_text 29@ length
  163. 0063: 12@ -= 23@
  164.  
  165. if or
  166. actor.dead($PLAYER_ACTOR)
  167. not player.Defined($PLAYER_ACTOR)
  168. then
  169. format 28@ ""
  170. format 29@ ""
  171. else
  172. format 28@ "- %.2f" 17@
  173. format 29@ "%s[%d]" 18@ 16@
  174. end
  175. 0b6f: render font 30@ draw_text 28@ pos 12@ 13@ color 0x7fff0000
  176. 0B6C: render 24@ = font 30@ draw_height
  177. 005a: 24@ -= 13@//error opcode
  178.  
  179. //format 29@ "%s[%d]" 18@ 16@ //TAKE
  180. 0b6f: render font 31@ draw_text 29@ pos 12@ 24@ color 0xf0FFBFBF
  181.  
  182.  
  183. else
  184. end
  185.  
  186.  
  187. if 9@ == 450
  188. then
  189. 25@ = -1
  190. 26@ = -1
  191. //0AF8: samp add_message_to_chat "GAVENDA" color 0xFFF000
  192. else
  193. end
  194.  
  195. end
  196.  
  197.  
  198. //0BDE: pause_thread 0
  199.  
  200. :outRPC
  201. 0BE5: raknet 2@ = get_hook_param PARAM_PACKETID
  202. IF 0039: 2@ == RPC_GIVETAKEDAMAGE
  203. THEN
  204. 0BE5: raknet 1@ = get_hook_param PARAM_BITSTREAM
  205. 0BE7: raknet 3@ = bit_stream_read 1@ type BS_TYPE_BOOL //give/take
  206. 0BE7: raknet 4@ = bit_stream_read 1@ type BS_TYPE_SHORT //Player
  207. 0BE7: raknet 5@ = bit_stream_read 1@ type BS_TYPE_INT //ammount(FLOAT)
  208. 0BE7: raknet 6@ = bit_stream_read 1@ type BS_TYPE_INT //GUN
  209. 0BE7: raknet 6@ = bit_stream_read 1@ type BS_TYPE_INT //BodyPart
  210. 9@ = 0
  211. if 3@ == 0
  212. then
  213. 25@ = 9
  214. 0085: 14@ = 4@
  215. 0085: 15@ = 5@
  216. 0B20: samp 7@ = actor_handle_by_samp_player_id 14@
  217. 0B36: samp 8@ = get_player_nickname 14@
  218. 0AAD: set_mp3 0@ perform_action 1
  219.  
  220. //0B78: log "{F44336}[MyTestScript] > Audio Action Changed."
  221. //0AF8: samp add_message_to_chat "GIVE %d %.2f" color 0x00ff00 4@ 5@ //%.1f
  222. else
  223. end
  224.  
  225. if 3@ == 1
  226. then
  227. 26@ = 10
  228. 0085: 16@ = 4@
  229. 0085: 17@ = 5@
  230. //0B20: samp 7@ = actor_handle_by_samp_player_id 14@
  231. 0B36: samp 18@ = get_player_nickname 16@
  232. //0AAD: set_mp3 0@ perform_action 1
  233. //0B78: log "{F44336}[MyTestScript] > Audio Action Changed."
  234. //0AF8: samp add_message_to_chat "TAKE %d %.2f" color 0xff0000 4@ 5@ //%.1f
  235. else
  236. end
  237.  
  238.  
  239.  
  240. 0BE0: raknet hook_ret true
  241. ELSE 0BE0: raknet hook_ret TRUE
  242. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement