CLEO Help Why doesn't works?

CLEO related
Status
Not open for further replies.

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
I found a plugin called "SARealTime" and works on single player but not on samp. It works changing the game time for the real time.

Springfield made the "cleo time" which shows game time and that has to make it work (sarealtime).

What can i do to "enable" the SARealTime on samp? Because it blinks changing the server time and the real time.

And how to disable the attack from a model loaded with cleo?
 

Attachments

  • RealTime.asi
    48.5 KB · Views: 21

xzytro

God
Joined
Apr 1, 2013
Messages
2,294
Reaction score
7
Can be done in cleo only with memory editing as there isn't a specific opcode for it. And i think it can be done only if 0x688 and opcode work together on it.
 

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
xzytro link said:
Can be done in cleo only with memory editing as there isn't a specific opcode for it. And i think it can be done only if 0x688 and opcode work together on it.

Hmmm, ok. Opcode helps me but it doesnt work, what is wrong? That crash my games after the bar loads.

Code:
{$CLEO .cs}
0000: NOP
wait 1000
0AA8: call_function_method 0x6A0050 0xC1B340 num_params 1 pop 0 'CRED000' 0@
0AA5: call 0x718600 2 pop 2 0@ "~1~:~1~"


WHILE TRUE
WAIT 0
    0AB1: Call @GetSystemTime 0 wYear 3@ wMonth 4@ wDayOfWeek 5@ wDay 6@ wHour 7@ wMinute 8@ wSeconds 9@ wMiliseconds 10@
    03F0: enable_text_draw 1
    0342: enable_text_draw_centered 1
    0340: set_text_draw_RGBA 180 180 180 255
    045B: draw_text_2numbers 320.0 390.0 GXT 'CRED000' numbers 8@ 9@  // ~1~:~1~
END

:GetSystemTime
0AA2: 0@ = load_library "kernel32.dll"
0AA4: 1@ = get_proc_address "GetSystemTime" library 0@
0AC8: 2@ = allocate_memory_size 32
0AA5: call 1@ params 1 pop 0 2@
0A8D: 3@ = read_memory 2@ size 2 virtual_protect 0
2@ += 2
0A8D: 4@ = read_memory 2@ size 2 virtual_protect 0
2@ += 2
0A8D: 5@ = read_memory 2@ size 2 virtual_protect 0
2@ += 2
0A8D: 6@ = read_memory 2@ size 2 virtual_protect 0
2@ += 2
0A8D: 7@ = read_memory 2@ size 2 virtual_protect 0
2@ += 2
0A8D: 8@ = read_memory 2@ size 2 virtual_protect 0
2@ += 2
0A8D: 9@ = read_memory 2@ size 2 virtual_protect 0
2@ += 2
0A8D: 10@ = read_memory 2@ size 2 virtual_protect 0
2@ -= 30
0AB2: ret 8 3@ 4@ 5@ 6@ 7@ 8@ 9@ 10@

And i modify that "0AB1: Call @GetSystemTime" with call_scm_function but doesnt work.
 

ighidouch

Active member
Joined
Dec 10, 2013
Messages
30
Reaction score
0
I have a cleo that freeze the time on 7:30 and sunny wheather, if you want something like that it's here.
 

Attachments

  • sun.cs
    17.2 KB · Views: 25
Status
Not open for further replies.
Top