- Joined
- Apr 4, 2014
- Messages
- 608
- Reaction score
- 3
I want to make a cleo that's automatically set Disable onfoot data, is there any possible way to make a NOPs in CLEO?, if it's possible, then how to use them?
TH3RM4L link said:Open mod_sa.ini and search for "SA:MP Patches".
Then find the patch you want, in this case it is disable onfoot data.
And here it is: sampPatch[] = "Disable onfoot data" &0 0 0x41E0 "" "C3"
Open Sanny Builder, search for "read samp memory" then paste the opcode.
0B2E: 3@ = read_samp_memory offset 1@ size 2@
Put the offset you want, in this case it is 0x41E0 and change the size to 2.
So we get this: 0B2E: 3@ = read_samp_memory offset 0x41E0 size 2
Now 3@ is the default value of 0x41E0, we need it if we want to turn the patch off.
Put it at the beginning of the cleo.
Let's activate it.
Open Sanny Builder and search for "write samp memory" then paste the opcode.
And here it is: 0B2D: write_samp_memory offset 1@ value 2@ size 3@
Now look at the patch and put its offset and value, also don't forget to change the size to 2.
So we get this: 0B2D: write_samp_memory offset 0x41E0 value 0xC3 size 2
Here's how to deactivate it:
0B2D: write_samp_memory offset 0x41E0 value 3@ size 2
Example:
{$CLEO}
{
sampPatch[] = "Disable onfoot data" &0 0 0x41E0 "" "C3"
}
0662: "DISABLE ONFOOT DATA"
0B2E: 3@ = read_samp_memory offset 0x41E0 size 2
:ON
wait 0
if
0ADC: "ON"
jf @ON
print "Onfoot data is now disabled" 2000
0B2D: write_samp_memory offset 0x41E0 value 0xC3 size 2
:OFF
wait 0
if
0ADC: "OFF"
jf @OFF
print "Onfoot data is now enabled" 2000
0B2D: write_samp_memory offset 0x41E0 value 3@ size 2
goto @ON
FraizeR007 link said:but this will get sync?
Flamez link said:Disable onfoot data unsync you to the server, so if you want to use CarJack mod, and you are using this Disable onfoot data, you will undetectable by admins.
FraizeR007 link said:Nice
I have 1 question.
Is this mean when i enable this through CLEO. Then i have warp hacks. vehicle warp hacks etc. car spammer. Admin won't see me teleporting through the vehicles?