// 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
谢谢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