Advertisement
J16D

GTA SA check weather rainy

May 14th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. {
  2. 0xC8131C - [word] Upcoming weather.
  3. 0xC81320 - [word] Current weather.
  4.  
  5. Weather Values:
  6. 8 = RAINY_SF
  7. 16 = RAINY_COUNTRYSIDE
  8. }
  9. {$CLEO}
  10. 0000:
  11.  
  12. :start
  13. repeat
  14. wait 0
  15. until 0ADC: test_cheat "rainy"
  16. 0ACA: show_text_box "ON"
  17. wait 500
  18. 31@ = 0xC81320 // [word] Current weather.
  19. 27@ = 0xC8131C //[word] Upcoming weather.
  20.  
  21. repeat
  22. 0A8D: 30@ = read_memory 31@ size 2 virtual_protect 0
  23. 0A8D: 26@ = read_memory 27@ size 2 virtual_protect 0
  24. if or
  25. 30@ == 8 // check current weather is Rainy_SF (8)
  26. 26@ == 8 // check upcoming weather is Rainy_SF (8)
  27. then
  28. /// here do whatever you want...
  29. end
  30. wait 0
  31. until 0ADC: test_cheat "rainy"
  32. 0ACA: show_text_box "OFF"
  33. wait 500
  34. jump @start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement