CLEO Help Help with a code

CLEO related

melvinho

New member
Joined
Nov 30, 2021
Messages
3
Reaction score
0
Location
México
I want to make a cleo that reads the content of CLEO\INI\pizza.ini
For example:

[food]
cmd = pizza

So that the text "pizza" is written as a command on the server by pressing x + y
Note: the "pizza" command is foreign to the samp server.

Can anybody help me? I've been trying all afternoon ... Thanks!
 

Saam

Active member
Joined
Apr 18, 2021
Messages
111
Reaction score
62
Location
Argentina
If the command is foreign you can directly use
C++:
"0C8F: samp process_chat_input /pizza"

If you necessarily need the .ini file you must use
C++:
0AF4: 0@v = read_string_from_ini_file "cleo\config.ini" section "SectionName" key "stringKey"
 
Last edited:

melvinho

New member
Joined
Nov 30, 2021
Messages
3
Reaction score
0
Location
México
If the command is foreign you can directly use
C++:
"0C8F: samp process_chat_input /pizza"

If you necessarily need the .ini file you must use
C++:
0AF4: 0@v = read_string_from_ini_file "cleo\config.ini" section "SectionName" key "stringKey"
Thanks Sam! I used it and now it works properly!
 

HaroldGnomo

Well-known member
Joined
Jun 20, 2021
Messages
211
Reaction score
58
Location
Sahara Desert
I have downloaded some cleos that do this function but they are encrypted so I cannot know their internal workings, if you can guide me a bit with that I would appreciate it a lot!
you can use sanny builder or ask on this thread, its really good decompile scripts .cs so you can check it and learn cleo, sanny builder have a decompile tool
 
Top