help with keybinder
#1

Guys please help me out! I've been looking everywhere.

I noticed another thread about a keybinder and was wondering if there was a way to get the ID of the nearest player when fast clicking on a keyboard button.

For example, instead of having a keybind that does only "/rape", having one that does "/rape [ID of nearest player]"

I know this is possible but if someone could make this script for me little fast and tell me where/how to put it, it would be so appreciated guys, seriously. I don't know where to put it, will you guys make a AutoHotKey script? If so I guess i'll have to download that program, right?
Reply
#2

Uhm.. There isn't any program like that totally that gets ID of the nearest player, All what I can tell you is that you can make command that gets the ID of any player in range of the player who used the command position..
Reply
#3

Quote:
Originally Posted by JasonRiggs
Посмотреть сообщение
Uhm.. There isn't any program like that totally that gets ID of the nearest player, All what I can tell you is that you can make command that gets the ID of any player in range of the player who used the command position..
{$CLEO}
0000:

REPEAT
WAIT 0
UNTIL 0AFA:

WHILE TRUE
WAIT 0
IF AND
0AB0: 2
056D: actor $PLAYER_ACTOR defined
0B61: samp is_local_player_spawned
THEN
CALL @GetClosestPed 0 2@
IF 056D: actor 2@ defined
THEN
IF 0B2B: samp 3@ = get_player_id_by_actor_handle 2@
THEN say"/guard %i 200" 3@
END
END
END
END


:GetClosestPed
var
0@ : float
5@ : float
end
0@ = 600.0
1@ = -1

00A0: $PLAYER_ACTOR 2@ 3@ 4@

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
005A: 31@ += 30@

if 003B: 31@ == $PLAYER_ACTOR
then continue
end

00A0: 31@ 6@ 7@ 8@
0509: 5@ = distance_between_XY 2@ 3@ 6@ 7@

if 5@ < 0@
then
0087: 0@ = 5@
0085: 1@ = 31@
end
end
end

0AB2: ret 1 1@

This is what I'm talking about? Can you guys help me change the /guard to /rape to a working CLEO file?

And what KEY is this script hooked to?! Or isnt this what im searching for?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)