15.06.2015, 15:35
Someone created CLEO hacks for my specific server..
I have the source to them an I'm wondering How I'd block against them?
I have the source to them an I'm wondering How I'd block against them?
{$CLEO} 0000: NOP 0B34: samp register_client_command "smuggle" to_label @activate 30@ = 0 :First wait 0 if 31@ == 1 then if 0AB1: @is_cp_active 0 then 0AB1: @get_cp_pos 0 1@ 2@ 3@ 00A1: put_actor $PLAYER_ACTOR at 1@ 2@ 3@ end if key_down 48 then 31@ = 0 end end jump @First :activate 0B12: 31@ = 31@ XOR 1 samp.CmdRet :is_cp_active IF 0AA2: 0@ = loadlib "samp.dll" THEN 0A8E: 1@ = 0@ + 0x212A94 0A8D: 1@ = readMem 1@ sz 4 vp 0 1@ += 0x24 0A8D: 1@ = readMem 1@ sz 4 vp 0 IF 1@ == TRUE THEN 0485: return_true ELSE 059A: return_false END 0AA3: freelib 0@ END 0AB2: ret 0 :get_cp_pos IF 0AA2: 0@ = loadlib "samp.dll" THEN 0A8E: 1@ = 0@ + 0x212A94 0A8D: 1@ = readMem 1@ sz 4 vp 0 1@ += 0xC 0A8D: 2@ = readMem 1@ sz 4 vp 0 1@ += 0x4 0A8D: 3@ = readMem 1@ sz 4 vp 0 1@ += 0x4 0A8D: 4@ = readMem 1@ sz 4 vp 0 0AA3: freelib 0@ END 0AB2: ret 3 2@ 3@ 4@
Test it yourself. See what it does. Once you know that, you can make something against it. From what I can read is that it has something to do with checkpoints, actors and perhaps, teleporting.
|
Steps:
1. You install the cleo mod yourself. 2. Test it out, understand and see what it does. 3. Construct an algorithm to counter the cleo mod. 4. Make the code in accordance with the algorithm and implement it in your gamemode. What part of all this was so hard to understand? EDIT: Soz, Overhaul was a tad bit faster. >.> |