Hello, I want to make this way with on off, by ordering /reload to activate and also by /reload to disable and show me the message in the chat when I activate it and when I disable it. How he is now activated.
{$CLEO}
0000:
repeat
wait 0
until 0AFA:
const
CPED = 0xB6F5F0
TYPE_1 = 0x5FC {SHOTGUNS}
TYPE_2 = 0x618 {MP5/UZI/TEC9 etc}
TYPE_3 = 0x5E0 {PISTOLS}
TYPE_4 = 0x634 {M4/AK47 etc}
end
while true
wait 0
if and
0AB0: key_pressed 1
8AB0: key_pressed 0
then
0470: 0@ = actor $PLAYER_ACTOR current_weapon
{TYPE_1}
if or
0@ == 26
0@ == 27
then
0A8D: 1@ = read_memory CPED size 4 virtual_protect 0
1@ += TYPE_1
if
0@ == 26
then
0A8C: write_memory 1@ size 4 value 4 virtual_protect 0
wait 100 ms
else
0A8C: write_memory 1@ size 4 value 7 virtual_protect 0
wait 100 ms
end
end
{TYPE_2}
if or
0@ == 28
0@ == 29
0@ == 32
then
0A8D: 1@ = read_memory CPED size 4 virtual_protect 0
1@ += TYPE_2
if
0@ == 28
then
0A8C: write_memory 1@ size 4 value 100 virtual_protect 0
wait 100 ms
else
if
0@ == 29
then
0A8C: write_memory 1@ size 4 value 30 virtual_protect 0
wait 100 ms
else
0A8C: write_memory 1@ size 4 value 100 virtual_protect 0
wait 100 ms
end
end
0000:
repeat
wait 0
until 0AFA:
const
CPED = 0xB6F5F0
TYPE_1 = 0x5FC {SHOTGUNS}
TYPE_2 = 0x618 {MP5/UZI/TEC9 etc}
TYPE_3 = 0x5E0 {PISTOLS}
TYPE_4 = 0x634 {M4/AK47 etc}
end
while true
wait 0
if and
0AB0: key_pressed 1
8AB0: key_pressed 0
then
0470: 0@ = actor $PLAYER_ACTOR current_weapon
{TYPE_1}
if or
0@ == 26
0@ == 27
then
0A8D: 1@ = read_memory CPED size 4 virtual_protect 0
1@ += TYPE_1
if
0@ == 26
then
0A8C: write_memory 1@ size 4 value 4 virtual_protect 0
wait 100 ms
else
0A8C: write_memory 1@ size 4 value 7 virtual_protect 0
wait 100 ms
end
end
{TYPE_2}
if or
0@ == 28
0@ == 29
0@ == 32
then
0A8D: 1@ = read_memory CPED size 4 virtual_protect 0
1@ += TYPE_2
if
0@ == 28
then
0A8C: write_memory 1@ size 4 value 100 virtual_protect 0
wait 100 ms
else
if
0@ == 29
then
0A8C: write_memory 1@ size 4 value 30 virtual_protect 0
wait 100 ms
else
0A8C: write_memory 1@ size 4 value 100 virtual_protect 0
wait 100 ms
end
end