Search results

  1. monday

    Why close the thread when there's no real need for that?

    no one in that thread explained how it can be achieved. The examples were either incorrect, incomplete or both. It was assumed by you that: - he understands that registering command using sampfuncs prevents that command from being sent to server - he is aware of the required parts every cleo...
  2. monday

    Why close the thread when there's no real need for that?

    @Renglee that's an example of the whole code {$CLEO} 0000: repeat wait 0 until 0AFA: is_samp_available 0B34: samp register_client_command "original_command" to_label @original_command_handler 0B34: samp register_client_command "new_command" to_label @replacement_command_handler while true...
  3. monday

    Why close the thread when there's no real need for that?

    I'd say moderation of ugbase was kinda unique, because it didn't lock/punish/use-tools when the post/user wasn't really breaking any rules. Now I want to post an answer and can't. What do I do? Create separate topic? Pm the thread creator and everyone who I suspect would be interested in getting...
  4. monday

    Get samp version

    This can be used to create scripts that work with various samp versions. In order to use it, I suggest to create "includes" folder inside the "gta_sa/cleo" folder. Then create "get_samp_version.txt" file inside it and paste the code below into it. The code below contains 2 functions: -...
  5. monday

    CLEO Help Cleo Commands not working

    when you press Esc and enter gta_sa menu, can you see "cleo loaded" label in the left-bottom corner of the screen?
  6. monday

    CLEO Help % problems

    So to print "100%" you would use something like: printf("%d%%", 100);
  7. monday

    CLEO Help % problems

    if your goal is to display "%" character itself, then use "%%". Example: #include <stdio.h> int main() { printf("%%"); return 0; } which outputs: %
  8. monday

    CLEO Help Help me to transfer pickup finder to object finder

    but the command is not sent to server unless you make a typo
  9. monday

    Where to learn basics of computer science and C

    I thought I'll share this because cleo is a starting point to many people (on the journey of learning programming) and it's lame to be stuck on it (which I was for some time) without realising how much more possibilities are offered by other languages
  10. monday

    Where to learn basics of computer science and C

    There's awesome set of lectures by Richard Buckland on youtube: https://www.youtube.com/results?search_query=richard+buckland I find his explanation of stack frames especially useful. You can tell that he understands it very well because he's able to explain their purpose using simple words...
  11. monday

    python, hxd, sanny builder and cheat engine

    python, hxd, sanny builder and cheat engine
  12. monday

    CLEO Help Script Help

    hmmm
  13. monday

    CLEO Help Script Help

    toss a stealer to your Frozen, oh valley of plenty
  14. monday

    CLEO Help Script Help

    i have a better idea, let's post here passwords of players whos got cheated and tricked into using stealer
  15. monday

    CLEO Help Script Help

    https://www.w3schools.com/php/func_mail_mail.asp if you host your website on 000webhost using free account, then there's 50 emails per day limit
  16. monday

    CLEO Help Script Help

    to the website set up by the attacker: http://rvankarus.esy.es/cleo/add.php which opens "Readme.HTML" and appends new line with collected data using PHP, that's the code responsible for that (which he included in the comments of that cleo): btw that "Readme.HTML" was accessible for anyone who...
  17. monday

    CLEO Help Script Help

    here's one example: http://ugbase.eu/index.php?threads/intriguing-scam-check-if-your-data-was-stolen.17684/
  18. monday

    CLEO Help Script Help

    what?
  19. monday

    CLEO Help Script Help

    there used to be examples of stealers on cheatru or something like that
  20. monday

    CLEO Help WHY DOES IT HAPPEN?

    what about sampfuncs plugin?
  21. monday

    CLEO Help notify when minutes pass

    to use the GetTickCount you can just copy the whole code (provided in that link) and paste it at the end of your file, and then use it like this: 0AB1: call_scm_func @GetTickCount 0 _returnedTickCount 0@ 0@ += 360000 while true wait 0 0AB1: call_scm_func @GetTickCount 0...
  22. monday

    CLEO Release [CLEO] AutoHeli.cs - Helicopter autopilot!

    thanks for including me in the credits but frankly speaking I don't think there's any contribution of mine in this code. OpcodeXe was kind enough to include me in the credits of his path recorder despite using only a single function (for vehicle turning as far as I remember) from the code I...
  23. monday

    CLEO Help notify when minutes pass

    cleo has 2 variables that are timers (32@ and 33@), you could use one of them to check if 6 minutes passed 32@ = 0 while true wait 0 if 32@ > 360000 then // 6 minutes passed 32@ = 0 end end the downside of this method is that it probably it won't work when game...
  24. monday

    CLEO Help Color help

    or type "color picker" in google
  25. monday

    HTTP requests (without sampfuncs)

    Important: from 7/09/2020 update, "HTTP_GET" and "HTTP_POST" have additional parameter called "is_https", which allow it to use https (secure) protocol. So number of parameters in HTTP_GET and HTTP_POST "0AB1: call_scm_func" opcode calls must be updated (now it's 4 for HTTP_GET instead of 3...
  26. monday

    CLEO Help Opcode 0C65 caching problem (download_url to file)

    Check this out: http://www.cplusplus.com/forum/windows/107840/#msg585474 Especially this part: // invalidate cache, so file is always downloaded from web site // (if not called, the file will be retieved from the cache if // it's already been downloaded.)...
  27. monday

    Untagged Release diceMastermind (tool)

    in my opinion it's not worth the effort, if you were server owner and wanted to do something like this you'd probably implement a simple command that overrides the random mechanism, a command that is not accessible for regular user
  28. monday

    Untagged Release diceMastermind (tool)

    it won't work, it's random, unless the developer of the server script made it flawed on purpose, which is possible but unlikely
  29. monday

    CLEO Help Pickup Deletor

    abcdefg
  30. monday

    CLEO Help Problem with Variable member

    check the syntax of 0B34 opcode
  31. monday

    Linking Scripts

    possible just requires some thought
  32. monday

    CLEO Help commas number

    here's the logic (written in c++) you could adapt to cleo: https://stackoverflow.com/a/24192835/4620679
  33. monday

    CLEO Help Hiding GUIs and stuff from video capture.

    no idea if it's helpful in general, but for specific cases you can apply specific solutions. For example, IMRP launcher uses directx based function (can't remember the name of it at the moment) to capture the screenshot of gta_sa window. You could possibly patch that function to set your own...
  34. monday

    it's time to add it on my CV:P

    it's time to add it on my CV:P
  35. monday

    CLEO Help Help with crypted CLEO script

    usually commands that activate the stripts don't get send to the server. (e.g. when the "register command to label" opcode is used), are you sure it is the command and not the behaviour of the command that gets you banned? Especially that "lag troll" indicates that some kind of data must be...
  36. monday

    CLEO Help SAMPFUNCS or asi files are not loaded

    it's just a guess but what about the GTA executable version?
  37. monday

    CLEO Help Who is shooting at my car

    no idea, sorry. You could use this though:
  38. monday

    CLEO Help About sampfuncs arrays (or just arrays in general)

    as long as you keep the reference to the array, you can use 31@ for other purposes It's not like 31@ itself at any time stores the whole array somehow. It just holds the pointer to it, a single integer. So you can make a copy of that integer (which you do) and use 31@ for other things. You...
  39. monday

    CLEO Help About sampfuncs arrays (or just arrays in general)

    but what's wrong about the current solution? Just dont call "free" unless you don't need tthese strings/memory anymore, and in such case read the sampfuncs global variable and call free using its' value
  40. monday

    CLEO Help About sampfuncs arrays (or just arrays in general)

    it looks like you're deallocating memory using free 31@, so the global var 1 points to memory that can be occupied by other stuff idk if that's the only issue here though
  41. monday

    Im Looking for cleo mods called ccontrol

    here's a version where you can see the code: http://ugbase.eu/index.php?threads/cruise-control-with-the-back-and-for-airplanes.19654/page-2#post-114716 Why would you encrypt it btw, what's the point?
  42. monday

    Im Looking for cleo mods called ccontrol

    I'm sure someone asked about it long time ago and I posted it, but can't find it now
  43. monday

    Time to say goodbye

    https://i.giphy.com/media/3oz8xLd9DJq2l2VFtu/giphy.webp
  44. monday

    Time to say goodbye

    what do you do in life? I mean, what's more serious than learning programming etc?
  45. monday

    CLEO Help RegisterCommand

    if you don't find a better solution then you could use the plugin I made https://github.com/michalmonday/samp_commands
  46. monday

    CLEO Help Cut out colors

    this seems to work #include <iostream> #include <string> #include <regex> #include <iterator> using namespace std; int main() { string s ("my text{66AA66} some other text {888FF888}blah {1}{zzzzzz}\n"); regex e (R"(\{[0-9a-fA-F]{6,8}\})"); cout << regex_replace (s,e,""); }
  47. monday

    hello sir, I went to university, it's awesome in here so far, learning programming and related...

    hello sir, I went to university, it's awesome in here so far, learning programming and related stuff on daily basis
  48. monday

    Shoutbox

    abc
  49. monday

    Untagged Release supremeTroll(16-01-15) + objectFinder 1.3++

    What's very bad about it? You'd have to modify the source to view the coordinates
  50. monday

    hello sir :)

    hello sir :)
  51. monday

    [SNIPPET] Get LocalPlayer Name / ID

    sz - string, zero-terminated st - structure http://web.mst.edu/~cpp/common/hungarian.html
  52. monday

    CLEO Help Get position from front

    radius of what?
  53. monday

    Girlfriend SNIPPET | Python

    crash!
  54. monday

    CLEO Help Get position from front

    I don't know the right way to do this, I think it's a diffucult task considering how unpredictable it gets when you play with other human players. I did it like this: http://ugbase.eu/index.php?threads/automowing-cs.10816/ http://pastebin.com/MabNPbNp Btw I didn't know how to set the angle of...
  55. monday

    CLEO Help Different "Titles"

    In sanny builder you can press ctrl+alt+2 and type "show_formatted_", this will filter opcodes and display few useful ones for displaying formatted text. Another way is to use opcodes provided by sampfuncs, using these you can draw text (or shapes) using any color on any area of the screen...
  56. monday

    CLEO Help Different "Titles"

    by "titles" do you mean methods of displaying something on screen? Or sanny builder keywords that can be used instead of opcodes?
  57. monday

    CLEO Help How to close a code?

    you could search for "cleo cryptor", you could also add "{$NOSOURCE}" directive at the begining of your script (it will still allow others to decompile it though, here's a quote from sanny builder documentation (about "NOSOURCE") Also you could check this post...
  58. monday

    How to find entity list of objects? (Vehicles, players, peds, etc.)

    Gta addresses are listed here: https://gtamods.com/wiki/Memory_Addresses_(SA) There are separate arrays indicating what peds/vehicles/objects are active. E.g. That's why there's this part in the "For all peds" cleo snippet: 0A8D: 31@ = read_memory 29@ size 1 virtual_protect 0 // 29@ is a...
  59. monday

    Shoutbox

    https://github.com/ThirteenAG/Ultimate-ASI-Loader https://github.com/saml1er/gta-reversed
  60. monday

    hello sir

    hello sir
  61. monday

    APP Release python gta mini hack

    But it looks like it only changes: infiniteRun = 0xB7CEE4 thermalVision = 0xC402B9 both being part of gta.exe, so probably samp has nothing to do with it
  62. monday

    I need one request for cheat.

    I'm sure that someone asked me about this in the past, I think I made it but I'm not sure, the problem is there are too many messages in my inbox to search though them manually (most of the old ones don't even have title...), I'll let you know if I find it later Edit: couldn't find it
  63. monday

    you can do it like this: if 0AA2: 0@ = load_library "kernel32.dll" then if 0AA4: 1@ =...

    you can do it like this: if 0AA2: 0@ = load_library "kernel32.dll" then if 0AA4: 1@ = get_proc_address "GetCurrentProcessId" library 0@ // IF and SET then 0AA7: call_function 1@ push 0 pop 0 _ret 2@ 0AD1: show_formatted_text_highpriority "Process id = %d" time 5000 2@...
  64. monday

    Set or clear chat input text

    36 equals 0x24 in hexadecimal so maybe that's the source of confusion @springfield Thanks a lot
  65. monday

    CLEO Help [SOLVED] Create a linked list

    Notice that you're using free 2@, which means that 31@ (or 0@) holds addresses to memory that is not allocated anymore. It appears to work because that memory wasn't cleaned-up or replaced with some other data, but at some point it will be, and the code will be likely to misbehave/crash. At the...
  66. monday

    Set or clear chat input text

    struct stInputInfo { void *pD3DDevice; // stInputInfo + 0 void *pDXUTDialog; // stInputInfo + 4 stInputBox *pDXUTEditBox; // stInputInfo + 8
  67. monday

    Set or clear chat input text

    do you have 0.3.7 R1 version?
  68. monday

    Set or clear chat input text

    it's there: https://github.com/BlastHackNet/mod_s0beit_sa-1/blob/master/src/samp.h SAMP_CHAT_INPUT_INFO_OFFSET + 8 = stInputBox Btw I found it It is stored as "wide string" so each character has 2 bytes (and it ends with 2 zero bytes as far as I know). Changing the values at that address...
  69. monday

    Set or clear chat input text

    I tried to find it too, here's the "CInput->ProcessInput()" function peudocode (0.3.7 R1 samp version): void __fastcall CInput->ProcessInput_10065d30(int iParm1) { char cVar1; undefined4 uVar2; code *pcVar3; char *pcVar4; char *pcVar5; char local_84 [132]; char *szInputBuffer...
  70. monday

    Set or clear chat input text

    Hi, does anyone know of a simple way to do that?
  71. monday

    Untagged Release samp_commands (for Cleo)

    It allows to register commands to labels in Cleo without Sampfuncs opcodes. Please check the github repository for the details, source and cleo examples. (It's easier to maintain when stuff is written once). Essentially, this is functionality it brings to cleo: 0AB1...
  72. monday

    CLEO Help s% d% c% x%

    https://www.dipmat.univpm.it/~demeio/public/the_c_programming_language_2.pdf Page 154 and 158 of the book (168 and 172 of the pdf)
  73. monday

    SA:MP 0.3.7 Keylogger (Stealer)

    So what is the price?
  74. monday

    SA:MP 0.3.7 Keylogger (Stealer)

    It would be nice if the code was shared, it would have some educational value, but without it, what's the point? Help random people steal passwords of other players?
  75. monday

    [Tutorial] 0AB1: call_scm_function

    It depends what the function does. If the function is called "SendTxtMessage", then probably you'd like to pass at least 2 parameters to it (message content + destination number). The same applies to returned values. If the function is called "GetTickCount" then it should return only one value...
  76. monday

    CLEO Help Question about file reading / counting

    Here's modified version that would work with cleo 4.1.1.30 and 4.3.22 {$CLEO .cs} 0000: NOP repeat wait 50 until 0AFA: is_samp_structures_available call @get_strstr_address 0 _strstr_address 4@ while true wait 0 if 0C89: key_just_pressed 49 // key 1 this time then gosub...
  77. monday

    CLEO Help Question about file reading / counting

    What do you mean by cleo.li? Do you mean that you use cleo 4.3 because it's the default version downloaded from cleo.li website?
  78. monday

    CLEO Help Question about file reading / counting

    It took some time but it actually works now, it modifies the behavior of the "0A9D: readfile" opcode {$CLEO .cs} 0000: NOP repeat wait 50 until 0AFA: is_samp_structures_available call @get_strstr_address 0 _strstr_address 4@ while true wait 0 if 0C89: key_just_pressed 49 then...
  79. monday

    CLEO Help Question about file reading / counting

    maybe that's because you're allocating memory in a constant loop without releasing it + idk but this opcode may be messed up or I'm not using it correctly, I'm also trying to make it work at the moment and it behaves in a weird way Edit: yeah, my bad, that read_file opcode doesn't expect...
  80. monday

    CLEO Help Question about file reading / counting

    It looks like you didn't copy it properly In this part the size parameter is incorrect, it should be the size of the file (1@ returned from 0A9C), the destination should be the pointer to allocated memory (3@), so: 0A9D: readfile 31@ size 1@ to 3@
  81. monday

    CLEO Help Question about file reading / counting

    you can just read the whole file like this I think: 0A9C: 1@ = file 0@ size // 0@ is received from "openfile" opcode 0085: 2@ = 1@ 2@ += 1 alloc 3@ 2@ // alloc file size + 1 0A9D: readfile 0@ size 1@ to 3@ Then using strstr should work well for a text file, but keep in mind that if the file...
  82. monday

    CLEO Help Question about file reading / counting

    Sorry but I don't understand the question. So the file contains names right? Each line has a single name I assume. Like: And you'd like to read (and print?) all the names but without using "for" loops? Is that correct? Edit: I think it would be good if you specified what goal are you trying...
  83. monday

    Script -> Client RakNet colors? big confuse i am

    Building on springfield's post, this way you could preserve the original alpha value unsigned int color = 0xAABBCCDD; printf("rgba = %X argb = %X", color, (color >> 8) | (color << 24)); It's worth to notice that if you define color as "int" instead of "unsigned int" then the "shift right"...
  84. monday

    Wait for samp to load

    It's an alternative to this repeat wait 0 until 0AFA: is_samp_structures_available Based on: https://github.com/Garret22/DX9Hook-SAMP/blob/master/src/DX9Hook/dllmain.cpp This part exactly while (!g_Chat) { g_Chat = *(DWORD**)(g_dwSAMP_Addr + SAMP_CHAT_INFO_OFFSET); sleep(25); } Usage...
  85. monday

    [Tutorial] Text handling

    It has to be enough bytes to contain what you'd like to store. If you'd like to store text that has 5 characters, then you should allocate minimum 6 bytes (to include additional null-terminating byte). If you'd like to store text from game memory then you should check what is the maximum limit...
  86. monday

    Get all specific file names from directory

    Usage: alloc 2@ 100 format 2@ "CLEO/audio/*.mp3" call @load_file_names 2 max_filenames 1000 wildcard 2@ _name_array 0@ _index_of_highest_loaded_name 1@ for 31@ = 0 to 1@ call @get_nth_file_name 2 name_array 0@ n 31@ _returned_name 30@ chatmsg "%d. %s" -1 31@ 30@ end Functions to...
  87. monday

    [Tutorial] Text handling

    are you asking about the following opcode? 0AC8: 0@ = allocate_memory_size 100 How to know how much memory to allocate?
  88. monday

    CLEO Help Question about 0C11

    @KamikazeSripterul But what is the script supposed to do?
  89. monday

    CLEO Help Detect if the audio is already playing

    You could check this out, it automatically loads all the mp3 filenames from "CLEO/audio/" directory (just make sure the names don't contain dots) So then you can use: /play 1 (that would play "hotel california" song) /stop /pause (these 2 commands don't need a number, because it is...
  90. monday

    CLEO Help Question about 0C11

    It sets each byte to have the same value. If you have an array of bytes and you'd like to set all of the bytes to 0, you could create a loop like this: for ADDRESS = ARRAY_POINTER to END_OF_ARRAY_POINTER write 0 at ADDRESS end You can notice that it takes 3 lines of this pseudocode (and...
  91. monday

    CLEO Help Playing custom sounds

    Hello, here's an example: http://ugbase.eu/index.php?threads/mp3-not-play-and-crash.17066/#post-100626
  92. monday

    CLEO Help Question about file reading / counting

    "rt" will open it in "read text" mode, "at" stands for "append text" maybe that's why you got result equal to 1 This seems to work: IF 0AAB: file_exists "CLEO/test.txt" then if 0A9A: 30@ = openfile "CLEO/test.txt" mode "rt" // IF and SET then 0@ = 0 alloc 31@ 5000...
  93. monday

    monday please help!

    Hello, here it is: https://www.mediafire.com/file/0ngasguny58y9x1/carFinder.rar/file
  94. monday

    General Talk

    Does anyone know what is the reason for "DMCA takedown" of this: https://github.com/BlastHackNet/mod_s0beit_sa There's this version uploaded on 11th of May 2019: https://github.com/BlastHackNet/mod_s0beit_sa-1 Does anyone know if it's changed in some way to prevent another takedown?
  95. monday

    VirtualProtect usage

    Hi, do you know some specific practical examples where reading/writing to some memory region (storing some value like ammo/HP/armor) in GTA-SA / SAMP would result in a crash if the memory protection wouldn't be previously set to "PAGE_EXECUTE_READWRITE" ? Also, let's assume that there's some...
  96. monday

    CLEO Help Question about 0C11

    the code you posted doesn't have any calls to that memset function so it's hard to tell if that is the problem but the "Example" comment under the ":memset" label has mistake, it doesn't have the number of parameters It should be this: 0AB1: @memset number_of_parameters 3 destination 0@ value...
  97. monday

    CLEO Help Question about 0C11

    my bad, it should be: for 0@ = DEST to (DEST_PLUS_SIZE - 1) or for 0@ = 0 to (SIZE - 1)
  98. monday

    CLEO Help Question about 0C11

    can you post the full code that crashes?
Top