SAMP

Untitled

Aug 10th, 2013
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. {$CLEO .cs}
  2.  
  3. thread "Rejoin + Change NickName"
  4. 0662: NOP "Made by FYP"
  5.  
  6. const
  7. self = $PLAYER_ACTOR
  8. VK_RCONTROL = 0xA3
  9. VK_KEY_3 = 0x33
  10. VK_KEY_4 = 0x34
  11. SAMP_BASE = 29@
  12.  
  13. DISCONNECT_QUIT = 0
  14. DISCONNECT_TIMEOUT = 1
  15.  
  16. GAMESTATE_NONE = 0
  17. GAMESTATE_WAIT_CONNECT = 1
  18. GAMESTATE_AWAIT_JOIN = 2
  19. GAMESTATE_CONNECTING = 3
  20. GAMESTATE_CONNECTED = 4
  21. GAMESTATE_RESTARTING = 5
  22. GAMESTATE_DISCONNECTED = 6
  23.  
  24. TIME_RECONNECT = 15
  25. end
  26.  
  27. if
  28. 8AF7: get_samp_base_to SAMP_BASE
  29. then
  30. 0A93: end_custom_thread
  31. end
  32. repeat
  33. wait 400
  34. until 0AFA: is_samp_structures_available
  35.  
  36. // ================================== MAIN ================================== //
  37.  
  38. while true
  39. wait 0
  40. if and
  41. player.Defined(0)
  42. 8B21: not samp is_chat_not_opened
  43. 0AB0: VK_RCONTROL
  44. then
  45. if 0AB0: VK_KEY_3
  46. then
  47. 0B28: samp disconnect_with_reason DISCONNECT_QUIT
  48. wait TIME_RECONNECT
  49. 0B27: samp set_gamestate GAMESTATE_WAIT_CONNECT
  50. repeat
  51. wait 20
  52. until 8AB0: VK_KEY_3
  53. else if 0AB0: VK_KEY_4
  54. then
  55. 0209: 1@ = random_int_in_ranges 65 91 // A-Z
  56. 0B29: samp set_local_name "BlastHack.Net[%c]" 1@
  57. 0AF8: samp add_message_to_chat "[SF]: New NickName BlastHack.Net[%c]" color 0x00DD00 1@
  58. 0B28: samp disconnect_with_reason DISCONNECT_TIMEOUT
  59. 0B27: samp set_gamestate GAMESTATE_WAIT_CONNECT
  60. repeat
  61. wait 20
  62. until 8AB0: VK_KEY_4
  63. end
  64. end
  65. end
  66. end
  67.  
  68. // ============================== END OF MAIN ============================== //
Advertisement
Add Comment
Please, Sign In to add comment