Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. /*
  2. CLEO script for GTA:SA wrote in GTA3script language (0.2.0)
  3.  
  4. Description: Removes dealer help box by hacking his external script changing 88FE: opcode ("NOT IS_HELP_MESSAGE_BEING_DISPLAYED")
  5. into 0485: ("IS_PC_VERSION") (also named as "return_true" by modders)
  6. */
  7.  
  8. {
  9. NOP
  10.  
  11. LVAR_INT mAdress
  12. LVAR_INT tempVar
  13.  
  14. mainloop:
  15. WAIT 0
  16. GET_SCRIPT_STRUCT_NAMED DEALER mAdress
  17. IF mAdress > NULL
  18.  
  19. mAdress += 16 //base ip
  20. READ_MEMORY mAdress 4 FALSE mAdress
  21.  
  22. mAdress += 2980 //offset
  23.  
  24. READ_MEMORY mAdress 1 FALSE tempVar
  25.  
  26. IF tempVar = 0xFE //88FE:
  27. WRITE_MEMORY mAdress 2 0x8504 FALSE
  28. ENDIF
  29. ENDIF
  30. GOTO mainloop
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement