CLEO Help How to randomly pick up players

CLEO related
Status
Not open for further replies.

Wolf_cmd

New member
Joined
Feb 1, 2018
Messages
2
Reaction score
0
Location
China
[font=PingFangSC-Regular,]这个问题困扰了我很长一段时间。谁能告诉我如何随机选择一名玩家? [/font][font=PingFangSC-Regular,]我见过一些类似的CLEO,但我没有得到它。我试图模仿它,但都失败了。[/font] :sadpepe: 如果能告诉我,我会很感激。 :)
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,488
Reaction score
231
Location
( ͡° ͜ʖ ͡°)
Code:
// FOR ALL PEDS     





0@ = 0
0A8D: 29@ = read_memory 0xB74490 size 4 virtual_protect 0
000A: 29@ += 0x4
0A8D: 29@ = read_memory 29@ size 4 virtual_protect 0
for 30@ = 0 to 35584 step 0x100
    0A8D: 31@ = read_memory 29@ size 1 virtual_protect 0
    000A: 29@ += 0x1
    if and
        0029:  31@ >= 0x00 
        001B:  0x80 > 31@
    then 
        if
        not 31@ = player_actor
        then
        005A: 31@ += 30@
        // GOT THE PED.
        0@ += 1
        end
    end
end
2@ = 0
0209: 1@ = random_int_in_ranges 0 0@
0A8D: 29@ = read_memory 0xB74490 size 4 virtual_protect 0
000A: 29@ += 0x4
0A8D: 29@ = read_memory 29@ size 4 virtual_protect 0
for 30@ = 0 to 35584 step 0x100
    0A8D: 31@ = read_memory 29@ size 1 virtual_protect 0
    000A: 29@ += 0x1
    if and
        0029:  31@ >= 0x00 
        001B:  0x80 > 31@
    then 
        if
        not 31@ = player_actor
        then
        005A: 31@ += 30@
        2@ += 1
            if
            2@ == 0@
            then
            // GOT THE PED.
            0@ += 1
                break
            end
        end
    end
end


31@ is now a random ped
// FOR ALL PEDS END
 

Wolf_cmd

New member
Joined
Feb 1, 2018
Messages
2
Reaction score
0
Location
China
Opcode.eXe said:
Code:
// FOR ALL PEDS     





0@ = 0
0A8D: 29@ = read_memory 0xB74490 size 4 virtual_protect 0
000A: 29@ += 0x4
0A8D: 29@ = read_memory 29@ size 4 virtual_protect 0
for 30@ = 0 to 35584 step 0x100
    0A8D: 31@ = read_memory 29@ size 1 virtual_protect 0
    000A: 29@ += 0x1
    if and
        0029:  31@ >= 0x00 
        001B:  0x80 > 31@
    then 
        if
        not 31@ = player_actor
        then
        005A: 31@ += 30@
        // GOT THE PED.
        0@ += 1
        end
    end
end
2@ = 0
0209: 1@ = random_int_in_ranges 0 0@
0A8D: 29@ = read_memory 0xB74490 size 4 virtual_protect 0
000A: 29@ += 0x4
0A8D: 29@ = read_memory 29@ size 4 virtual_protect 0
for 30@ = 0 to 35584 step 0x100
    0A8D: 31@ = read_memory 29@ size 1 virtual_protect 0
    000A: 29@ += 0x1
    if and
        0029:  31@ >= 0x00 
        001B:  0x80 > 31@
    then 
        if
        not 31@ = player_actor
        then
        005A: 31@ += 30@
        2@ += 1
            if
            2@ == 0@
            then
            // GOT THE PED.
            0@ += 1
                break
            end
        end
    end
end


31@ is now a random ped
// FOR ALL PEDS END
谢谢 :D
 
Status
Not open for further replies.
Top