Jump to content

Couple 'o questions


Anurag_Anmol

Recommended Posts

OK umm

 

1 - What address should I put if I want a script to know what the player have typed if I already did one of it? Like -

 

 

0A8D: 1@ = read_memory 9867536 size 2 virtual_protect 0 0A8D: 2@ = read_memory ??????? size 1 virtual_protect 0

 

 

2 - How many letters that the player typed can CLEO read? I know CLEO can support 1, 2, 4

 

3 - Ehhhumm what letter is what... you know like -

 

 

04A4:   1@ == 20563 // @ == any 04A4:   2@ == 70 // @ == any 

 

 

I read from a guide now I can't find it xD

 

Well thats all tounge.gif

Link to comment
https://gtaforums.com/topic/459251-couple-o-questions/
Share on other sites

Get CLEO4. There is no reason not to. Then you can use

 

 

OADC: test_cheat "LOLWUT"

 

 

LOWUT can be changed to any string of letters, and I think numbers

 

No need for that memory stuff for keypresses in your script anymore

Link to comment
https://gtaforums.com/topic/459251-couple-o-questions/#findComment-1060126789
Share on other sites

Yay! I already have CLEO4 tounge.gif OSUM!

 

EDIT : NEW QUESTION!!!

 

How do I take settings from a outside file to say like how many HP to re-plenish (making car spawner script not tht tounge.gif) like settings.ini

 

EDIT 2 : NEWER QUESTION!!! (lol)

 

How do I use custom text in CLEO? (I heard it from somewhere...)

 

EDIT 3 : NEWEST QUESTION!!! (rofl)

 

How do I protect a CLEO script?

 

EDIT 4 : Can't compile the test_cheat line because -

Unknown directive OADC: test_cheat "INVISIBLE".
Buuuuuut I checked sascm.ini file and its there wtf

 

EDIT 5 : OMG wtf I copied the line from CLEO database and then it could compile wtf

Edited by Anurag_Anmol
Link to comment
https://gtaforums.com/topic/459251-couple-o-questions/#findComment-1060126798
Share on other sites

Yay! I already have CLEO4 tounge.gif OSUM!

 

EDIT : NEW QUESTION!!!

 

How do I take settings from a outside file to say like how many HP to re-plenish (making car spawner script not tht tounge.gif) like settings.ini

 

EDIT 2 : NEWER QUESTION!!! (lol)

 

How do I use custom text in CLEO? (I heard it from somewhere...)

 

EDIT 3 : NEWEST QUESTION!!! (rofl)

 

How do I protect a CLEO script?

 

EDIT 4 : Can't compile the test_cheat line because -

Unknown directive OADC: test_cheat "INVISIBLE".
Buuuuuut I checked sascm.ini file and its there wtf

 

EDIT 5 : OMG wtf I copied the line from CLEO database and then it could compile wtf

2. Use 0ACE

3.What do you mean?

 

Link to comment
https://gtaforums.com/topic/459251-couple-o-questions/#findComment-1060126910
Share on other sites

Okay.. stay calm now.. easy does it..

 

Get infomation from ini

 

Code

 

0AF0: 0@ = get_int_from_ini_file "cleo\settings.ini" section "Spawner" key "carHealth"

 

 

File

 

[spawner]carHealth=50

 

 

 

What do you mean by "custom text". There's a lot of ways you can use strings and stuff, but you're gonna have to be more specific there.

 

 

Script Protection

 

There is no real way to protect a script. Simply put, the better the script is.. the more protected it is (cause no one will be able to understand it).

 

There are a few ways you can cause decompilation errors, but it takes a lot to fully make it protected. In the end, it is not worth it.

 

 

Download the latest sascm.ini (press the "San Andreas" radio button and click all enabled checkboxes below) from the Opcode Database.

 

Save the file to "[...]\Sanny Builder\data\sa\", overwriting the current sascm.ini

 

Do the same again, but by clicking the "opcodes.txt" link to get the list that enables Sanny's built-in Opcode Search and F1 Automation Key.

Link to comment
https://gtaforums.com/topic/459251-couple-o-questions/#findComment-1060126919
Share on other sites

Yay! I already have CLEO4 tounge.gif OSUM!

 

EDIT : NEW QUESTION!!!

 

How do I take settings from a outside file to say like how many HP to re-plenish (making car spawner script not tht tounge.gif) like settings.ini

 

EDIT 2 : NEWER QUESTION!!! (lol)

 

How do I use custom text in CLEO? (I heard it from somewhere...)

 

EDIT 3 : NEWEST QUESTION!!! (rofl)

 

How do I protect a CLEO script?

 

EDIT 4 : Can't compile the test_cheat line because -

Unknown directive OADC: test_cheat "INVISIBLE".
Buuuuuut I checked sascm.ini file and its there wtf

 

EDIT 5 : OMG wtf I copied the line from CLEO database and then it could compile wtf

2. Use 0ACE

3.What do you mean?

You can't protect with a code.

You need a password or something biggrin.gif

Link to comment
https://gtaforums.com/topic/459251-couple-o-questions/#findComment-1060126923
Share on other sites

 

You can't protect with a code.

You need a password or something biggrin.gif

 

whatfor? If don't want aynobdy to read your scripts you better start working with a scripthook for C++/C#. And don't tell me you've never decompiled any script by someone else to learn from it confused.gif

 

but it doesn't work still.. -Starts New Thread-

 

Well, thats what CLEO is suppoesed to do:

generating a new thread outside main.scm and load it with the main threads together confused.gif

Whats your problem?

Link to comment
https://gtaforums.com/topic/459251-couple-o-questions/#findComment-1060127438
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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

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