Jump to content

Easily disable Cleo scripts


tronfan

Recommended Posts

I'd love to try some of the Cleo scripts for SA, such as the car spawner or the speedometer, but I wouldn't want it on all the time because sometimes I want to play the game as is. Is there some easy way to add or remove scripts as needed?

Link to comment
Share on other sites

play the game as is? you mean like unmodded?

then move cleo.asi out of game dir, start game either with or without cleo, that's the easiest way

there are also other methods, like 0ABA: end_custom_thread_named or modify the cleoscripts by adding keypress checks or by adding a global var
0ABA: end_custom_thread can be easy
it requires that the cleo script have a valid thread name at script beginn

thread 'TH_NAME'

you need to open the script with sannybuilder to get the thread name and paste it to the end thread command of your "disabler script"
it works only if it is a valid name: max.7 charackters as name are valid

 

if the name is wrong, then correct it
if there isn' a thread name, then add it, then compile the script again

I would do the codes for a disabler script in this way
1. check with 0AAB: if the script exist in cleo folder: expects FILE NAME
2. check with 0AAA: if the thread is running: expects THREAD NAME
3. terminate thread with 0ABA: expects THREAD NAME

if    0AAB:   file_exists "CLEO\RUN.cs"//  check if the script exist in cleo folder: expects FILE NAME    then    0AAA: 0@ = thread 'TH_NAME' pointer  //   check if the thread is running: expects THREAD NAME    if        not 0@ == 0        then        0ABA: end_custom_thread_named 'TH_NAME' // terminate thread: expects THREAD NAME      endend
  • Like 1
Link to comment
Share on other sites

Could I just rename the Cleo.asi file when I want to play unmodded, and put it back to the the right name when I want to use mods?

Link to comment
Share on other sites

Well, I don't want to install Cleo until I'm sure i can easily put it back to an un modded game.

Link to comment
Share on other sites

You need to remove 'asi' extension from CLEO.asi file, so it won't be loaded with Asi Loader. Rename it to CLEO.jasi, for example.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.