Advertisement
Guest User

Simple bot

a guest
Jul 22nd, 2019
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. {$CLEO .cs}
  2.  
  3. 0000: NOP
  4.  
  5. wait 10000 // wait until samp is ready
  6.  
  7. while true
  8. wait 0
  9.  
  10. if
  11. 0ADC: test_cheat "ON" // if press keys O AND N
  12. then
  13. 0@ = true
  14. 0AD1: show_formatted_text_highpriority "Walking...." time 2000
  15. end
  16.  
  17. if
  18. 0@ == true
  19. then // 1
  20. if
  21. 00ED: actor $PLAYER_ACTOR sphere 0 near_point 1303.3429 1272.8828 radius 1.0 1.0 on_foot // start position
  22. then // 2
  23. repeat
  24. wait 0
  25. 0AB1: @Set_Game_key 2 KeyOffSet 0x57 State 255
  26. 0AB1: @CAMERA_AT_POS 3 XYZ: 1308.2167 1291.9474 10.8203
  27. until 00ED: actor $PLAYER_ACTOR sphere 0 near_point 1308.2167 1291.9474 radius 1.0 1.0 on_foot /// repeat until reach position
  28. if
  29. 00ED: actor $PLAYER_ACTOR sphere 0 near_point 1308.2167 1291.9474 radius 1.0 1.0 on_foot // if reached position
  30. then // 3
  31. repeat
  32. wait 0
  33. 0AB1: @Set_Game_key 2 KeyOffSet 0x57 State 255
  34. 0AB1: @CAMERA_AT_POS 3 XYZ: 1299.5552 1307.0544 10.8203
  35. until 00ED: actor $PLAYER_ACTOR sphere 0 near_point 1299.5552 1307.0544 radius 1.0 1.0 on_foot /// repeat until reach position
  36. if
  37. 00ED: actor $PLAYER_ACTOR sphere 0 near_point 1299.5552 1307.0544 radius 1.0 1.0 on_foot // if reached position
  38. then // 4
  39. repeat
  40. wait 0
  41. 0AB1: @Set_Game_key 2 KeyOffSet 0x57 State 255
  42. 0AB1: @CAMERA_AT_POS 3 XYZ: 1299.5552 1307.0544 10.8203
  43. until 00ED: actor $PLAYER_ACTOR sphere 0 near_point 1299.5552 1307.0544 radius 1.0 1.0 on_foot /// repeat until reach position
  44. if
  45. 00ED: actor $PLAYER_ACTOR sphere 0 near_point 1299.5552 1307.0544 radius 1.0 1.0 on_foot // if reached position
  46. then // 5
  47. repeat
  48. wait 0
  49. 0AB1: @Set_Game_key 2 KeyOffSet 0x57 State 255
  50. 0AB1: @CAMERA_AT_POS 3 XYZ: 1295.8840 1288.2472 10.8203
  51. until 00ED: actor $PLAYER_ACTOR sphere 0 near_point 1295.8840 1288.2472 radius 1.0 1.0 on_foot /// repeat until reach position
  52. if
  53. 00ED: actor $PLAYER_ACTOR sphere 0 near_point 1295.8840 1288.2472 radius 1.0 1.0 on_foot // if reached position
  54. then // 6 , so we have 6 - then , that means we need 6 end
  55. 0AD1: show_formatted_text_highpriority "You reached last position" time 2000
  56. 0@ = false // disable bot when reach last point
  57. end
  58. end
  59. end
  60. end
  61. end
  62. end
  63.  
  64. end // also while true always must have - end
  65.  
  66. :Set_Game_Key
  67. // 0AB1: @Set_Game_key 2 KeyOffSet 0x57 State 255
  68. 2@ = 0xB731A8
  69. 0@ *= 2
  70. 005A: 2@ += 0@ // (int)
  71. 0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
  72. 0AB2: ret 0
  73.  
  74. //0AB1: @AIM_AT_POS 3 XYZ: 1@ 2@ 3@
  75. :CAMERA_AT_POS
  76. 0087: 8@ = 3@
  77. 068D: get_camera_position_to 3@ 4@ 5@
  78. 0063: 0@ -= 3@
  79. 0063: 1@ -= 4@
  80. 0604: get_Z_angle_for_point 0@ 1@ store_to 6@
  81. 6@ -= 90.0
  82. 0017: 6@ /= 57.2957795
  83. 005B: 6@ += 8@ // (float)
  84. 0A8D: 7@ = read_memory 0xB6F248 size 4 virtual_protect 0
  85. 0A25: set_camera_on_players_X_angle 7@ Z_angle 6@
  86. 0661: "by Opcode.eXe | UGBASE.EU"
  87. 0AB2: 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement