TeHArGiS10

Untitled

Jun 12th, 2016
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. {$CLEO .cs}
  2. 0000:
  3. thread "TehArgis"
  4. 0B34: "fss" @cmd
  5. 0@ = 0
  6.  
  7. :MAIN
  8. wait 0
  9. 0A8D: 1@ = read_memory 0xB6F178 size 4 virtual_protect 0
  10. 0C03: math 2@ = sine 1@ // (float)
  11. 0C05: math 3@ = cosine 1@ // (float)
  12. 0013: 2@ *= 25
  13. 0013: 3@ *= 25
  14. if
  15. 0@ == 1
  16. else_jump @MAIN
  17. if
  18. Actor.Driving($PLAYER_ACTOR)
  19. else_jump @ONFOOT
  20. jump @INCAR
  21.  
  22. :ONFOOT
  23. wait 0
  24. call @SendOnFootFakeSpeedSync 3 2@ 3@ 0
  25. SAMP.CmdRet()
  26. jump @MAIN
  27.  
  28. :INCAR
  29. wait 0
  30. 5@ = Actor.CurrentCar($PLAYER_ACTOR)
  31. 6@ = SAMP.GetSAMPVehicleIDByCarHandle(5@)
  32. wait 0
  33. call @SendIncarFakeSpeedSync 4 2@ 3@ 0 6@
  34. SAMP.CmdRet()
  35. jump @MAIN
  36.  
  37. :CMD
  38. wait 0
  39. SAMP.IsCommandTyped(1@)
  40. if
  41. 056D: actor $PLAYER_ACTOR defined
  42. then
  43. 0B12: 0@ = 0@ XOR 1
  44. if
  45. 0@ == 1
  46. then
  47. 0ACD: show_text_highpriority "~y~FSS: ~g~ON" time 1500
  48. else
  49. 0ACD: show_text_highpriority "~y~FSS: ~r~OFF" time 1500
  50. end
  51. end
  52. SAMP.CmdRet()
  53. jump @MAIN
  54.  
  55. :SendOnFootFakeSpeedSync
  56. 3@ = SAMP.GetSAMPPlayerIDByActorHandle($PLAYER_ACTOR)
  57. 3@ = SAMP.GetPlayerStruct(3@)
  58. 3@ += 109
  59. 0AC8: 4@ = allocate_memory_size 68
  60. 0C10: memcpy destination 4@ source 3@ size 68
  61. 0C0D: 4@ 38 4 = 6.0
  62. 0C0D: 4@ 42 4 = 6.0
  63. 0C0D: 4@ 46 4 = 6.0
  64. 0B3D: raknet 5@ = new_bit_stream
  65. RakNet.Write(5@, 207, 0, 1)
  66. RakNet.Write(5@, 4@, 5, 68)
  67. 0B8B: raknet send bit_stream 5@
  68. 0B3E: raknet delete_bit_stream 5@
  69. 0AC9: free_allocated_memory 4@
  70. 0AB2: ret 0
  71.  
  72. :SendIncarFakeSpeedSync
  73. 4@ = SAMP.GetSAMPPlayerIDByActorHandle($PLAYER_ACTOR)
  74. 4@ = SAMP.GetPlayerStruct(4@)
  75. 4@ += 170
  76. 0AC8: 5@ = allocate_memory_size 63
  77. 0C10: memcpy destination 5@ source 4@ size 63
  78. 0C0D: struct 5@ offset 36 size 4 = 6.0
  79. 0C0D: struct 5@ offset 40 size 4 = 6.0 // lower the value if the server has a speed limit on vehicles
  80. 0C0D: struct 5@ offset 44 size 4 = 6.0
  81. 0B3D: raknet 6@ = new_bit_stream
  82. 0B40: raknet bit_stream 6@ write 200 type 0 size 1
  83. 0B40: raknet bit_stream 6@ write 5@ type 5 size 63
  84. 0B42: raknet send bit_stream 6@ priority 1 reliability 7 ordering_channel 0
  85. 0B3E: raknet delete_bit_stream 6@
  86. 0AC9: free_allocated_memory 5@
  87. 0AB2: ret 0
Advertisement
Add Comment
Please, Sign In to add comment