Help Masked Man Checker

OP
OP
Doublesix

Doublesix

Active Member
Joined
Nov 14, 2018
Messages
44
Likes
0
Points
6
5
#21
PHP:
{$CLEO .cs}

0000: NOP

REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY


WHILE TRUE
    WAIT 0
  
IF
056D:   actor $PLAYER_ACTOR defined
THEN
wait 0
// GET ALL STREAMED PEDS 
0A8D: [email protected] = read_memory 0xB74490 size 4 virtual_protect 0
000A: [email protected] += 0x4
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
FOR [email protected] = 0 to 35584 step 0x100
    0A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0
    000A: [email protected] += 0x1
    IF AND
        0029:  [email protected] >= 0x00
        001B:  0x80 > [email protected]
    THEN
        005A: [email protected] += [email protected]
            IF AND
            803B:   [email protected] == $PLAYER_ACTOR  // (int)
            056D:   actor [email protected] defined
            THEN
                0B2B: samp [email protected] = get_player_id_by_actor_handle [email protected]
                0B36: samp [email protected] = get_player_nickname [email protected]
                00A0: store_actor $PLAYER_ACTOR position_to [email protected] [email protected] [email protected]
                00A0: store_actor [email protected] position_to [email protected] [email protected] [email protected]
                0509: [email protected] = distance_between_XY [email protected] [email protected] and_XY [email protected] [email protected]
                IF
                [email protected] <= 1.0 /// You can set distance here, max is 300.0(Float)
                THEN
                    Printf "ID: %d Nick: %s" 5000 [email protected] [email protected]
                END
           END
       END
   END
END

END
Thanks man it work, can i add any hotkey at that code?
 

Attachments

OP
OP
Doublesix

Doublesix

Active Member
Joined
Nov 14, 2018
Messages
44
Likes
0
Points
6
5
#23
Yes u can add hotkeys, also u can edit distance on this line "[email protected] <= 1.0"
I added hotkey like this, but why is freezing when i tested it?
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP

:Noname_2
wait 0
   SAMP.Available
jf @Noname_2

:Noname_15
wait 0
if and
056D:   actor $PLAYER_ACTOR defined
key_down 114
jf @Noname_292
wait 0
0A8D: [email protected] = read_memory 12010640 size 4 virtual_protect 0
[email protected] += 4
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
[email protected] = 0

:Noname_79
0A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0
[email protected] += 1
if and
  [email protected] >= 0
  128 > [email protected]
jf @Noname_267
005A: [email protected] += [email protected] // (int)
if and
803B:   not  [email protected] == $PLAYER_ACTOR // (int)
056D:   actor [email protected] defined
jf @Noname_267
[email protected] = SAMP.GetSAMPPlayerIDByActorHandle([email protected])
[email protected] = SAMP.GetPlayerNickname([email protected])
Actor.StorePos($PLAYER_ACTOR, [email protected], [email protected], [email protected])
Actor.StorePos([email protected], [email protected], [email protected], [email protected])
0509: [email protected] = distance_between_XY [email protected] [email protected] and_XY [email protected] [email protected]
if
   not [email protected] > 1.0
jf @Noname_267
printf "~w~Nickname: ~y~%s ~w~ID: ~y~%d" 5000 [email protected] [email protected]

:Noname_267
[email protected] += 256
  [email protected] > 35584
jf @Noname_79

:Noname_292
goto @Noname_15
 

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
984
Likes
75
Points
43
Location
Lithuania
Website
ugbase.eu
10
#24
PHP:
{$CLEO .cs}

0000: NOP

REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY


WHILE TRUE
    WAIT 0
  
IF
056D:   actor $PLAYER_ACTOR defined
THEN
wait 0
// GET ALL STREAMED PEDS 
0A8D: [email protected] = read_memory 0xB74490 size 4 virtual_protect 0
000A: [email protected] += 0x4
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
FOR [email protected] = 0 to 35584 step 0x100
    0A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0
    000A: [email protected] += 0x1
    IF AND
        0029:  [email protected] >= 0x00
        001B:  0x80 > [email protected]
    THEN
        005A: [email protected] += [email protected]
            IF AND
            803B:   [email protected] == $PLAYER_ACTOR  // (int)
            056D:   actor [email protected] defined
            THEN
                0B2B: samp [email protected] = get_player_id_by_actor_handle [email protected]
                0B36: samp [email protected] = get_player_nickname [email protected]
                00A0: store_actor $PLAYER_ACTOR position_to [email protected] [email protected] [email protected]
                00A0: store_actor [email protected] position_to [email protected] [email protected] [email protected]
                0509: [email protected] = distance_between_XY [email protected] [email protected] and_XY [email protected] [email protected]
                IF AND
                0AB0:   114
                [email protected] <= 1.0 /// You can set distance here, max is 300.0(Float)
                THEN
                    Printf "ID: %d Nick: %s" 5000 [email protected] [email protected]
                END
           END
       END
   END
END

END
 
OP
OP
Doublesix

Doublesix

Active Member
Joined
Nov 14, 2018
Messages
44
Likes
0
Points
6
5
#25
PHP:
{$CLEO .cs}

0000: NOP

REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY


WHILE TRUE
    WAIT 0
 
IF
056D:   actor $PLAYER_ACTOR defined
THEN
wait 0
// GET ALL STREAMED PEDS
0A8D: [email protected] = read_memory 0xB74490 size 4 virtual_protect 0
000A: [email protected] += 0x4
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
FOR [email protected] = 0 to 35584 step 0x100
    0A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0
    000A: [email protected] += 0x1
    IF AND
        0029:  [email protected] >= 0x00
        001B:  0x80 > [email protected]
    THEN
        005A: [email protected] += [email protected]
            IF AND
            803B:   [email protected] == $PLAYER_ACTOR  // (int)
            056D:   actor [email protected] defined
            THEN
                0B2B: samp [email protected] = get_player_id_by_actor_handle [email protected]
                0B36: samp [email protected] = get_player_nickname [email protected]
                00A0: store_actor $PLAYER_ACTOR position_to [email protected] [email protected] [email protected]
                00A0: store_actor [email protected] position_to [email protected] [email protected] [email protected]
                0509: [email protected] = distance_between_XY [email protected] [email protected] and_XY [email protected] [email protected]
                IF AND
                0AB0:   114
                [email protected] <= 1.0 /// You can set distance here, max is 300.0(Float)
                THEN
                    Printf "ID: %d Nick: %s" 5000 [email protected] [email protected]
                END
           END
       END
   END
END

END
Thanks bro. it work.
 
Top