Anurag_Anmol Posted September 15, 2010 Share Posted September 15, 2010 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 Link to comment https://gtaforums.com/topic/459251-couple-o-questions/ Share on other sites More sharing options...
james227uk Posted September 15, 2010 Share Posted September 15, 2010 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 More sharing options...
Anurag_Anmol Posted September 15, 2010 Author Share Posted September 15, 2010 (edited) Yay! I already have CLEO4 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 ) 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 September 15, 2010 by Anurag_Anmol Link to comment https://gtaforums.com/topic/459251-couple-o-questions/#findComment-1060126798 Share on other sites More sharing options...
Jerry123 Posted September 15, 2010 Share Posted September 15, 2010 Yay! I already have CLEO4 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 ) 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 More sharing options...
yair1221 Posted September 15, 2010 Share Posted September 15, 2010 i think he means making the CS file unreadable everytime you try to compile it an error pops up Link to comment https://gtaforums.com/topic/459251-couple-o-questions/#findComment-1060126914 Share on other sites More sharing options...
Deji Posted September 15, 2010 Share Posted September 15, 2010 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 More sharing options...
Jerry123 Posted September 15, 2010 Share Posted September 15, 2010 Yay! I already have CLEO4 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 ) 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 Link to comment https://gtaforums.com/topic/459251-couple-o-questions/#findComment-1060126923 Share on other sites More sharing options...
yair1221 Posted September 15, 2010 Share Posted September 15, 2010 custom text: 0ADF: add_dynamic_GXT_entry "ENTRYHERE" text "Here you put the text" 00BC: show_text_highpriority GXT 'ENTRYHERE' time 1000 flag 1 Link to comment https://gtaforums.com/topic/459251-couple-o-questions/#findComment-1060126926 Share on other sites More sharing options...
Anurag_Anmol Posted September 15, 2010 Author Share Posted September 15, 2010 Thanks a lot guys! It compiled, but it doesn't work still.. -Starts New Thread- Link to comment https://gtaforums.com/topic/459251-couple-o-questions/#findComment-1060127179 Share on other sites More sharing options...
TheSiggi Posted September 16, 2010 Share Posted September 16, 2010 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 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 Whats your problem? Link to comment https://gtaforums.com/topic/459251-couple-o-questions/#findComment-1060127438 Share on other sites More sharing options...
Anurag_Anmol Posted September 16, 2010 Author Share Posted September 16, 2010 I mean't forum thread lol and I did learn from other scripts Fine not gunna try to protect Link to comment https://gtaforums.com/topic/459251-couple-o-questions/#findComment-1060127629 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now