Applease
Active member
- Joined
- Jan 18, 2014
- Messages
- 40
- Reaction score
- 0
SAMP was crashed . Please help me to change key to "f2"
Code:
// This file was decompiled using sascm.ini published by GTAG
(http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//-------------MAIN---------------
thread "Syler"
wait 3000
:SYLER_14
wait 0
if and
0AB0: key_pressed 113
else_jump @SYLER_14
:SYLER_37
wait 0
if and
8AB0: not key_pressed 113
else_jump @SYLER_37
0AB1: call_scm_func @SYLER_529 0 0@
0@ += 16864
0A8D: 28@ = read_memory 0@ size 1 virtual_protect 1
0A8C: write_memory 0@ size 1 value 195 virtual_protect 1
Actor.StorePos($PLAYER_ACTOR, 25@, 26@, 27@)
0ACD: show_text_highpriority "Invisible On." time 3000
jump @SYLER_284
:SYLER_146
wait 0
Actor.StorePos($PLAYER_ACTOR, 21@, 22@, 23@)
0509: 20@ = distance_between_XY 21@ 22@ and_XY 25@ 26@
if
not 20@ > 40.1
else_jump @SYLER_284
if and
0AB0: key_pressed 113
else_jump @SYLER_146
:SYLER_221
wait 0
if and
8AB0: not key_pressed 113
else_jump @SYLER_221
0A8C: write_memory 0@ size 1 value 28@ virtual_protect 1
0ACD: show_text_highpriority "Invisible Off." time 3000
jump @SYLER_14
:SYLER_284
wait 0
0A8C: write_memory 0@ size 1 value 28@ virtual_protect 1
Actor.StorePos($PLAYER_ACTOR, 25@, 26@, 27@)
02CE: 24@ = ground_z_at 25@ 26@ 27@
24@ -= 25.0
0A96: 4@ = actor $PLAYER_ACTOR struct
4@ += 20
0A8D: 4@ = read_memory 4@ size 4 virtual_protect 0
4@ += 48
0A8C: write_memory 4@ size 4 value 25@ virtual_protect 0
4@ += 4
0A8C: write_memory 4@ size 4 value 26@ virtual_protect 0
4@ += 4
0A8C: write_memory 4@ size 4 value 24@ virtual_protect 0
wait 30
0A8C: write_memory 0@ size 1 value 195 virtual_protect 1
0A96: 4@ = actor $PLAYER_ACTOR struct
4@ += 20
0A8D: 4@ = read_memory 4@ size 4 virtual_protect 0
4@ += 48
0A8C: write_memory 4@ size 4 value 25@ virtual_protect 0
4@ += 4
0A8C: write_memory 4@ size 4 value 26@ virtual_protect 0
4@ += 4
0A8C: write_memory 4@ size 4 value 27@ virtual_protect 0
jump @SYLER_146
:SYLER_529
0AA2: 31@ = load_library "kernel32.dll" // IF and SET
0AA4: 30@ = get_proc_address "GetModuleHandleA" library 31@ // IF and SET
0AA7: call_function 30@ num_params 1 pop 0 "samp.dll" 0@
0AB2: ret 1 0@