springfield link said:
Am, i don't understand nothing from this code, and i think has nothing to do with i want...
i want to add on/off key to this cleo...
{$CLEO .cs}
0662: "TEST"
0000:
while true
wait 0
0AA2: 0@ = load_library "samp.dll"
000A: 0@ += 0x13B50
0A8D: 1@ = read_mem 0@ size 2 vp 0
0A8C: write_memory 0@ size 2 value 0xC390 vp 1
end
Edit: I open Freecam from opcode to see on/off activation and try this and when i put "caca" i crash
{$CLEO .cs}
0662: "TEST"
0000:
:THREAD_90
wait 0
if
0ADC: test_cheat "CACA"
else_jump @THREAD_321
0B12: 30@ = 30@ XOR 1
if
30@ == 1
:THREAD_321
if
30@ == 1
else_jump @THREAD_90
wait 0
0AA2: 0@ = load_library "samp.dll"
000A: 0@ += 0x13B50
0A8D: 1@ = read_mem 0@ size 2 vp 0
0A8C: write_memory 0@ size 2 value 0xC390 vp 1
return
Edit2: This work, is a script springfield do for me (i luv u) and i edited, so now i want how to do without sampfuncs?
{$VERSION 3.1.0000}
{$CLEO .cs}
//-------------MAIN---------------
0000: NOP
thread "SPRINGFIELD"
wait 3000
0B34: samp register_client_command "caca" to_label @SPRINGFIELD_118
:SPRINGFIELD_49
wait 0
if
31@ == 1
else_jump @SPRINGFIELD_111
:SPRINGFIELD_71
wait 0
0AA2: 0@ = load_library "samp.dll"
000A: 0@ += 0x13B50
0A8D: 1@ = read_mem 0@ size 2 vp 0
0A8C: write_memory 0@ size 2 value 0xC390 vp 1
else_jump @SPRINGFIELD_71
:SPRINGFIELD_111
jump @SPRINGFIELD_49
:SPRINGFIELD_118
0B12: 31@ = 31@ XOR 1
if
31@ == 1
else_jump @SPRINGFIELD_186
printf "~W~CACA ~G~ON" 1200
jump @SPRINGFIELD_217
:SPRINGFIELD_186
printf "~W~CACA ~R~OFF" 1200
:SPRINGFIELD_217
SAMP.CmdRet